python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 704941 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2734082) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2734082) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159215 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2734082'] with mtr_portfolio_ids : ['22159215'] and first list_photo_ids : [] new path : /proc/704941/ Name: python3 Umask: 0002 State: R (running) Tgid: 704941 Ngid: 0 Pid: 704941 PPid: 704940 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 704941 NSpid: 704941 NSpgid: 701006 NSsid: 701006 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98288 kB VmRSS: 98288 kB RssAnon: 59752 kB RssFile: 38536 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 57 nonvoluntary_ctxt_switches: 138 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '704941', 'Ngid': '0', 'Pid': '704941', 'PPid': '704940', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '704941', 'NSpid': '704941', 'NSpgid': '701006', 'NSsid': '701006', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98288 kB', 'VmRSS': '98288 kB', 'RssAnon': '59752 kB', 'RssFile': '38536 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '57', 'nonvoluntary_ctxt_switches': '138'} ('datou_batch_current', '704941', '1106928', '0', '1106928', '865676', '98288', b'', 'marlene', '2734082') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22159215) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (2734082 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22159215) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350741672, 'portfolio_id': 22159215}, {'photo_id': 1350741669, 'portfolio_id': 22159215}, {'photo_id': 1350741666, 'portfolio_id': 22159215}, {'photo_id': 1350741665, 'portfolio_id': 22159215}, {'photo_id': 1350741404, 'portfolio_id': 22159215}, {'photo_id': 1350741369, 'portfolio_id': 22159215}, {'photo_id': 1350741235, 'portfolio_id': 22159215}, {'photo_id': 1350741166, 'portfolio_id': 22159215}, {'photo_id': 1350741163, 'portfolio_id': 22159215}, {'photo_id': 1350741153, 'portfolio_id': 22159215}, {'photo_id': 1350741144, 'portfolio_id': 22159215}, {'photo_id': 1350741136, 'portfolio_id': 22159215}, {'photo_id': 1350741133, 'portfolio_id': 22159215}, {'photo_id': 1350741025, 'portfolio_id': 22159215}, {'photo_id': 1350740999, 'portfolio_id': 22159215}, {'photo_id': 1350740988, 'portfolio_id': 22159215}, {'photo_id': 1350740972, 'portfolio_id': 22159215}, {'photo_id': 1350740781, 'portfolio_id': 22159215}, {'photo_id': 1350740721, 'portfolio_id': 22159215}] map_portfolio_id_photo_id: {22159215: [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.015140533447265625 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 9 11:20:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22159215) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 22159215 get user id for portfolio 22159215 get sub ptf for main ptf 22159215, type 3726 and hashtags ['flou', 'Teint_Dans_La_Masse', 'Carton_brun', 'papier', 'Carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'environnement', 'metal', 'mal_croppe', 'plastique'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22159215 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','Carton_brun','papier','Carton_gris','cartonnette','kraft','autre_refus','environnement','metal','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22159215 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','Carton_brun','papier','Carton_gris','cartonnette','kraft','autre_refus','environnement','metal','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[22159215, 22159221, 3726, 0.5, 492777938, 979], [22159215, 22159222, 3726, 0.5, 2107752385, 979], [22159215, 22159223, 3726, 0.5, 2107753024, 979], [22159215, 22159224, 3726, 0.5, 492668766, 979], [22159215, 22159225, 3726, 0.5, 2107753020, 979], [22159215, 22159226, 3726, 0.5, 702398920, 979], [22159215, 22159227, 3726, 0.5, 493202403, 979], [22159215, 22159228, 3726, 0.5, 2107752406, 979], [22159215, 22159229, 3726, 0.5, 493012381, 979], [22159215, 22159230, 3726, 0.5, 492628673, 979], [22159215, 22159231, 3726, 0.5, 2107755527, 979], [22159215, 22159232, 3726, 0.5, 492725882, 979]] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22159215 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','Carton_brun','papier','Carton_gris','cartonnette','kraft','autre_refus','environnement','metal','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22159215 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','Carton_brun','papier','Carton_gris','cartonnette','kraft','autre_refus','environnement','metal','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22159215, 'sub_port_id': 22159221, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636069, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22159215, 'sub_port_id': 22159222, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636070, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}, 'Carton_brun': {'main_port_id': 22159215, 'sub_port_id': 22159223, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636071, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}, 'papier': {'main_port_id': 22159215, 'sub_port_id': 22159224, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636072, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}, 'Carton_gris': {'main_port_id': 22159215, 'sub_port_id': 22159225, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636073, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}, 'cartonnette': {'main_port_id': 22159215, 'sub_port_id': 22159226, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636074, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}, 'kraft': {'main_port_id': 22159215, 'sub_port_id': 22159227, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636075, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}, 'autre_refus': {'main_port_id': 22159215, 'sub_port_id': 22159228, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636076, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}, 'environnement': {'main_port_id': 22159215, 'sub_port_id': 22159229, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636077, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}, 'metal': {'main_port_id': 22159215, 'sub_port_id': 22159230, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636078, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}, 'mal_croppe': {'main_port_id': 22159215, 'sub_port_id': 22159231, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636079, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}, 'plastique': {'main_port_id': 22159215, 'sub_port_id': 22159232, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636080, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 20, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159221 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159221) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159222 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159222) result : ((1350741100,), (1350741102,), (1350741103,), (1350741540,), (1350741621,), (1350741623,), (1350741626,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159223 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159223) result : ((1350741654,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159224 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159224) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159225 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159225) result : ((1350741104,), (1350741551,), (1350741635,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159226 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159226) result : ((1350741106,), (1350741107,), (1350741108,), (1350741643,), (1350741645,), (1350741647,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159227 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159227) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159228 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159228) result : ((1350741544,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159229 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159229) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159230 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159230) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159231 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159231) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22159232 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22159215 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159232) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22159215) result : ((1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22159215 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','Carton_brun','papier','Carton_gris','cartonnette','kraft','autre_refus','environnement','metal','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22159215 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','Carton_brun','papier','Carton_gris','cartonnette','kraft','autre_refus','environnement','metal','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__09042025_11_15_14_10138_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[22159215, 22159233, 4417, 0.5, 492777938, 979], [22159215, 22159234, 4417, 0.5, 2107752385, 979], [22159215, 22159235, 4417, 0.5, 2107753024, 979], [22159215, 22159236, 4417, 0.5, 492668766, 979], [22159215, 22159237, 4417, 0.5, 2107753020, 979], [22159215, 22159238, 4417, 0.5, 702398920, 979], [22159215, 22159239, 4417, 0.5, 493202403, 979], [22159215, 22159240, 4417, 0.5, 2107752406, 979], [22159215, 22159241, 4417, 0.5, 493012381, 979], [22159215, 22159242, 4417, 0.5, 492628673, 979], [22159215, 22159243, 4417, 0.5, 2107755527, 979], [22159215, 22159244, 4417, 0.5, 492725882, 979]] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22159215 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','Carton_brun','papier','Carton_gris','cartonnette','kraft','autre_refus','environnement','metal','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22159215 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','Carton_brun','papier','Carton_gris','cartonnette','kraft','autre_refus','environnement','metal','mal_croppe','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22159215, 'sub_port_id': 22159233, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636081, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}, 'Teint_Dans_La_Masse': {'main_port_id': 22159215, 'sub_port_id': 22159234, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636082, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}, 'Carton_brun': {'main_port_id': 22159215, 'sub_port_id': 22159235, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636083, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}, 'papier': {'main_port_id': 22159215, 'sub_port_id': 22159236, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636084, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}, 'Carton_gris': {'main_port_id': 22159215, 'sub_port_id': 22159237, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636085, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}, 'cartonnette': {'main_port_id': 22159215, 'sub_port_id': 22159238, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636086, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}, 'kraft': {'main_port_id': 22159215, 'sub_port_id': 22159239, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636087, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}, 'autre_refus': {'main_port_id': 22159215, 'sub_port_id': 22159240, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636088, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}, 'environnement': {'main_port_id': 22159215, 'sub_port_id': 22159241, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636089, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}, 'metal': {'main_port_id': 22159215, 'sub_port_id': 22159242, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636090, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}, 'mal_croppe': {'main_port_id': 22159215, 'sub_port_id': 22159243, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636091, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}, 'plastique': {'main_port_id': 22159215, 'sub_port_id': 22159244, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14636092, 'last_updated_at': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 11, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 11, 21)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159223 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159236,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159224 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159237,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159225 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159226 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159227 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159228 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159241,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159229 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159242,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159230 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159243,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159231 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22159244,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22159232 lien utilise dans velours : https://www.fotonower.com/velours/22159233,22159234,22159235,22159236,22159237,22159238,22159239,22159240,22159241,22159242,22159243,22159244?tags=flou,Teint_Dans_La_Masse,Carton_brun,papier,Carton_gris,cartonnette,kraft,autre_refus,environnement,metal,mal_croppe,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22159215]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721] map_info['map_portfolio_photo'] : {22159215: [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721]} final : False mtd_id 4302 list_pids : [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721] Looping around the photos to save general results len do output : 1 /22159215. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741672', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741669', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741666', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741665', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741404', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741369', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741235', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741166', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741163', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741153', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741144', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741136', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741133', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741025', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740999', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740988', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740972', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740781', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740721', None, None, None, None, None, '2734082') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22159215', "{'flou': 22159221, 'Teint_Dans_La_Masse': 22159222, 'Carton_brun': 22159223, 'papier': 22159224, 'Carton_gris': 22159225, 'cartonnette': 22159226, 'kraft': 22159227, 'autre_refus': 22159228, 'environnement': 22159229, 'metal': 22159230, 'mal_croppe': 22159231, 'plastique': 22159232}", None, None, None, None, '2734082'), ('4302', '22159215', '1350741672', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741669', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741666', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741665', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741404', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741369', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741235', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741166', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741163', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741153', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741144', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741136', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741133', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741025', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740999', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740988', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740972', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740781', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740721', None, None, None, None, None, '2734082')] time used for this insertion : 0.013640165328979492 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.3138554096221924 time spend to save output : 0.013984203338623047 total time spend for step 1 : 2.3278396129608154 step2:final Wed Apr 9 11:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22159215) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 22159215 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350740781,1350740721,1350741025,1350740999,1350740988,1350740972,1350741166,1350741163,1350741153,1350741144,1350741136,1350741133,1350741404,1350741369,1350741235,1350741672,1350741669,1350741666,1350741665); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22159215]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} new output for save of step final : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721] map_info['map_portfolio_photo'] : {22159215: [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721]} final : False mtd_id 4302 list_pids : [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721] Looping around the photos to save general results len do output : 19 /1350741672.Didn't retrieve data . /1350741669.Didn't retrieve data . /1350741666.Didn't retrieve data . /1350741665.Didn't retrieve data . /1350741404.Didn't retrieve data . /1350741369.Didn't retrieve data . /1350741235.Didn't retrieve data . /1350741166.Didn't retrieve data . /1350741163.Didn't retrieve data . /1350741153.Didn't retrieve data . /1350741144.Didn't retrieve data . /1350741136.Didn't retrieve data . /1350741133.Didn't retrieve data . /1350741025.Didn't retrieve data . /1350740999.Didn't retrieve data . /1350740988.Didn't retrieve data . /1350740972.Didn't retrieve data . /1350740781.Didn't retrieve data . /1350740721.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741672', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741669', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741666', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741665', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741404', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741369', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741235', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741166', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741163', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741153', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741144', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741136', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741133', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741025', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740999', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740988', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740972', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740781', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740721', None, None, None, None, None, '2734082') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22159215', '1350741672', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741669', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741666', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741665', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741404', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741369', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741235', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741166', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741163', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741153', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741144', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741136', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741133', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350741025', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350740999', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350740988', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350740972', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350740781', '0.042563385517422996', None, None, None, None, '2734082'), ('4302', '22159215', '1350740721', '0.042563385517422996', None, None, None, None, '2734082')] time used for this insertion : 0.22021198272705078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.027106046676635742 time spend to save output : 0.22115564346313477 total time spend for step 2 : 0.2482616901397705 step3:velours_tree Wed Apr 9 11:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22159215: [{'flou': 22159221, 'Teint_Dans_La_Masse': 22159222, 'Carton_brun': 22159223, 'papier': 22159224, 'Carton_gris': 22159225, 'cartonnette': 22159226, 'kraft': 22159227, 'autre_refus': 22159228, 'environnement': 22159229, 'metal': 22159230, 'mal_croppe': 22159231, 'plastique': 22159232}]} input_args_next_step : {22159215: ()} output_args : {22159215: [{'flou': 22159221, 'Teint_Dans_La_Masse': 22159222, 'Carton_brun': 22159223, 'papier': 22159224, 'Carton_gris': 22159225, 'cartonnette': 22159226, 'kraft': 22159227, 'autre_refus': 22159228, 'environnement': 22159229, 'metal': 22159230, 'mal_croppe': 22159231, 'plastique': 22159232}]} args : 22159215 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 22159221, 'Teint_Dans_La_Masse': 22159222, 'Carton_brun': 22159223, 'papier': 22159224, 'Carton_gris': 22159225, 'cartonnette': 22159226, 'kraft': 22159227, 'autre_refus': 22159228, 'environnement': 22159229, 'metal': 22159230, 'mal_croppe': 22159231, 'plastique': 22159232},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22159215) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22159215]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.33681201934814453 time spend to save output : 0.00010752677917480469 total time spend for step 3 : 0.33691954612731934 step4:send_mail_cod Wed Apr 9 11:21:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} input_args_next_step : {1350741672: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741672 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741669 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741666 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741665 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741404 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741369 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741235 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741166 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741163 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741153 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741144 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741136 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741133 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350741025 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350740999 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350740988 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350740972 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350740781 depend.output_id : 0 input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ()} output_args : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',)} args : 1350740721 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {22159215: [{'flou': 22159221, 'Teint_Dans_La_Masse': 22159222, 'Carton_brun': 22159223, 'papier': 22159224, 'Carton_gris': 22159225, 'cartonnette': 22159226, 'kraft': 22159227, 'autre_refus': 22159228, 'environnement': 22159229, 'metal': 22159230, 'mal_croppe': 22159231, 'plastique': 22159232}]} input_args_next_step : {1350741672: ('0.042563385517422996',), 1350741669: ('0.042563385517422996',), 1350741666: ('0.042563385517422996',), 1350741665: ('0.042563385517422996',), 1350741404: ('0.042563385517422996',), 1350741369: ('0.042563385517422996',), 1350741235: ('0.042563385517422996',), 1350741166: ('0.042563385517422996',), 1350741163: ('0.042563385517422996',), 1350741153: ('0.042563385517422996',), 1350741144: ('0.042563385517422996',), 1350741136: ('0.042563385517422996',), 1350741133: ('0.042563385517422996',), 1350741025: ('0.042563385517422996',), 1350740999: ('0.042563385517422996',), 1350740988: ('0.042563385517422996',), 1350740972: ('0.042563385517422996',), 1350740781: ('0.042563385517422996',), 1350740721: ('0.042563385517422996',), 22159215: ()} output_args : {22159215: [{'flou': 22159221, 'Teint_Dans_La_Masse': 22159222, 'Carton_brun': 22159223, 'papier': 22159224, 'Carton_gris': 22159225, 'cartonnette': 22159226, 'kraft': 22159227, 'autre_refus': 22159228, 'environnement': 22159229, 'metal': 22159230, 'mal_croppe': 22159231, 'plastique': 22159232}]} args : 22159215 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :20, first value : ('0.042563385517422996',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22159215) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1350741672,1350741669,1350741666,1350741665,1350741404,1350741369,1350741235,1350741166,1350741163,1350741153,1350741144,1350741136,1350741133,1350741025,1350740999,1350740988,1350740972,1350740781,1350740721) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350740721 begin to download photo : 1350740999 begin to download photo : 1350741144 begin to download photo : 1350741235 begin to download photo : 1350741666 download finish for photo 1350740999 begin to download photo : 1350741025 download finish for photo 1350741144 download finish for photo 1350741666 begin to download photo : 1350741153 begin to download photo : 1350741669 download finish for photo 1350740721 begin to download photo : 1350740781 download finish for photo 1350741235 begin to download photo : 1350741369 download finish for photo 1350741025 begin to download photo : 1350741133 download finish for photo 1350741669 begin to download photo : 1350741672 download finish for photo 1350740781 begin to download photo : 1350740972 download finish for photo 1350741153 begin to download photo : 1350741163 download finish for photo 1350741369 begin to download photo : 1350741404 download finish for photo 1350741133 begin to download photo : 1350741136 download finish for photo 1350741672 download finish for photo 1350741163 begin to download photo : 1350741166 download finish for photo 1350741404 begin to download photo : 1350741665 download finish for photo 1350740972 begin to download photo : 1350740988 download finish for photo 1350741136 download finish for photo 1350741166 download finish for photo 1350741665 download finish for photo 1350740988 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221592211744190461/ length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P22159215_09-04-2025_11_21_01.pdf 22159221 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221592211744190461 22159226 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159226 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350741106: '1744190246_2203176_1350740781_7147a844852f44f814d20ce62dd45c29_rle_crop_3751341613_0.png', 1350741107: '1744190246_2203176_1350740781_7147a844852f44f814d20ce62dd45c29_rle_crop_3751341615_0.png', 1350741108: '1744190246_2203176_1350740721_8f6c6fad97e270be948a85fec58e0f55_rle_crop_3751341628_0.png', 1350741643: '1744190366_2205919_1350740972_ab49c952dc337a55740e3224d8610d43_rle_crop_3751343264_0.png', 1350741645: '1744190366_2205919_1350740972_ab49c952dc337a55740e3224d8610d43_rle_crop_3751343263_0.png', 1350741647: '1744190366_2205919_1350740972_ab49c952dc337a55740e3224d8610d43_rle_crop_3751343259_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0b4c3b5d24caea43fe76b9dee369e3b6_95743686.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d169754635ae6d0a8639dee9b0a62838_64238461.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/8c944a40fe2afcc6cfd61c949e5c78a5_52833008.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/da2dfd5f49df8ca603e87ae48cc49b69_491933.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/ea3351abcb1197d328f66ce3a978a8c6_62173715.png change filename to text .imagette221592261744190461/ imagette221592261744190461/1744190366_2205919_1350740972_ab49c952dc337a55740e3224d8610d43_rle_crop_3751343263_0.png.png imagette221592261744190461/1744190246_2203176_1350740721_8f6c6fad97e270be948a85fec58e0f55_rle_crop_3751341628_0.png.png imagette221592261744190461/1744190366_2205919_1350740972_ab49c952dc337a55740e3224d8610d43_rle_crop_3751343259_0.png.png imagette221592261744190461/1744190246_2203176_1350740781_7147a844852f44f814d20ce62dd45c29_rle_crop_3751341615_0.png.png imagette221592261744190461/1744190246_2203176_1350740781_7147a844852f44f814d20ce62dd45c29_rle_crop_3751341613_0.png.png imagette221592261744190461/1744190366_2205919_1350740972_ab49c952dc337a55740e3224d8610d43_rle_crop_3751343264_0.png.png imagette221592271744190462/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a3ed989f46a78ed48dbfb9c025f3dfd1_52079110.png imagette221592261744190461 22159227 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159227 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221592271744190462 22159228 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159228 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350741544: '1744190353_2616703_1350741025_1e41e6a83cccecd319cc1443ae10af44_rle_crop_3751343163_0.png'} change filename to text .imagette221592281744190462/ imagette221592281744190462/1744190353_2616703_1350741025_1e41e6a83cccecd319cc1443ae10af44_rle_crop_3751343163_0.png.png imagette221592301744190462/ imagette221592311744190462/ imagette221592321744190462/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/3f53fe5a18445793ee88315b13e8e8fb_88716774.png imagette221592281744190462 22159230 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159230 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221592301744190462 22159231 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159231 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221592311744190462 22159232 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159232 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221592321744190462 22159222 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159222 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350741100: '1744190246_2203176_1350740781_7147a844852f44f814d20ce62dd45c29_rle_crop_3751341623_0.png', 1350741102: '1744190246_2203176_1350740781_7147a844852f44f814d20ce62dd45c29_rle_crop_3751341619_0.png', 1350741103: '1744190246_2203176_1350740721_8f6c6fad97e270be948a85fec58e0f55_rle_crop_3751341635_0.png', 1350741540: '1744190353_2616703_1350741025_1e41e6a83cccecd319cc1443ae10af44_rle_crop_3751343165_0.png', 1350741621: '1744190366_2205919_1350740999_cf796c834a23ae53019b4e37a066965b_rle_crop_3751343229_0.png', 1350741623: '1744190366_2205919_1350740999_cf796c834a23ae53019b4e37a066965b_rle_crop_3751343230_0.png', 1350741626: '1744190366_2205919_1350740988_92cb7e7720f43eec994a484eebd9ed56_rle_crop_3751343250_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/c8af3f52f291526689bd83c16f05512d_29176046.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/2d23a69638b36326346985365bbf558a_87313726.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/66194b1f595a57c56e747225782d8875_85323645.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d52a36c6dd2ee4648e2b534a0533c26d_44133047.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/e1c3352bdbf4427d98935de64fb996a6_57390595.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/001e1a3269deada62787c1543b35987f_52188504.png change filename to text .imagette221592221744190462/ imagette221592221744190462/1744190366_2205919_1350740988_92cb7e7720f43eec994a484eebd9ed56_rle_crop_3751343250_0.png.png imagette221592221744190462/1744190246_2203176_1350740781_7147a844852f44f814d20ce62dd45c29_rle_crop_3751341619_0.png.png imagette221592221744190462/1744190366_2205919_1350740999_cf796c834a23ae53019b4e37a066965b_rle_crop_3751343230_0.png.png imagette221592221744190462/1744190246_2203176_1350740781_7147a844852f44f814d20ce62dd45c29_rle_crop_3751341623_0.png.png imagette221592221744190462/1744190353_2616703_1350741025_1e41e6a83cccecd319cc1443ae10af44_rle_crop_3751343165_0.png.png imagette221592221744190462/1744190366_2205919_1350740999_cf796c834a23ae53019b4e37a066965b_rle_crop_3751343229_0.png.png imagette221592221744190462/1744190246_2203176_1350740721_8f6c6fad97e270be948a85fec58e0f55_rle_crop_3751341635_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b603368d0a4be6658d637d9a3dc7a910_85456178.png imagette221592221744190462 22159223 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159223 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350741654: '1744190366_2205919_1350740988_92cb7e7720f43eec994a484eebd9ed56_rle_crop_3751343245_0.png'} change filename to text .imagette221592231744190462/ imagette221592231744190462/1744190366_2205919_1350740988_92cb7e7720f43eec994a484eebd9ed56_rle_crop_3751343245_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0fdcf7e745671f3eeeb20d2587161c18_1032003.png imagette221592231744190462 22159225 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159225 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350741104: '1744190246_2203176_1350740721_8f6c6fad97e270be948a85fec58e0f55_rle_crop_3751341633_0.png', 1350741551: '1744190353_2616703_1350741025_1e41e6a83cccecd319cc1443ae10af44_rle_crop_3751343162_0.png', 1350741635: '1744190366_2205919_1350740999_cf796c834a23ae53019b4e37a066965b_rle_crop_3751343225_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/fbc9942200aefa12eb0b94c3c74521f1_11356090.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/8567e77fc18e7696356b1e97500bf643_51530906.png change filename to text .imagette221592251744190462/ imagette221592251744190462/1744190353_2616703_1350741025_1e41e6a83cccecd319cc1443ae10af44_rle_crop_3751343162_0.png.png imagette221592251744190462/1744190366_2205919_1350740999_cf796c834a23ae53019b4e37a066965b_rle_crop_3751343225_0.png.png imagette221592251744190462/1744190246_2203176_1350740721_8f6c6fad97e270be948a85fec58e0f55_rle_crop_3751341633_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/561d009fa0532fcd17bbd4fb249982d5_13794934.png imagette221592251744190462 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22159215 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22159233,22159234,22159235,22159236,22159237,22159238,22159239,22159240,22159241,22159242,22159243,22159244?tags=flou,Teint_Dans_La_Masse,Carton_brun,papier,Carton_gris,cartonnette,kraft,autre_refus,environnement,metal,mal_croppe,plastique your option no_mail is active, we will not send the real mail to your client args[1350741672] : ('0.042563385517422996',) no score found for photo 1350741672 We are sending mail with results at report@fotonower.com args[1350741669] : ('0.042563385517422996',) no score found for photo 1350741669 We are sending mail with results at report@fotonower.com args[1350741666] : ('0.042563385517422996',) no score found for photo 1350741666 We are sending mail with results at report@fotonower.com args[1350741665] : ('0.042563385517422996',) no score found for photo 1350741665 We are sending mail with results at report@fotonower.com args[1350741404] : ('0.042563385517422996',) no score found for photo 1350741404 We are sending mail with results at report@fotonower.com args[1350741369] : ('0.042563385517422996',) no score found for photo 1350741369 We are sending mail with results at report@fotonower.com args[1350741235] : ('0.042563385517422996',) no score found for photo 1350741235 We are sending mail with results at report@fotonower.com args[1350741166] : ('0.042563385517422996',) no score found for photo 1350741166 We are sending mail with results at report@fotonower.com args[1350741163] : ('0.042563385517422996',) no score found for photo 1350741163 We are sending mail with results at report@fotonower.com args[1350741153] : ('0.042563385517422996',) no score found for photo 1350741153 We are sending mail with results at report@fotonower.com args[1350741144] : ('0.042563385517422996',) no score found for photo 1350741144 We are sending mail with results at report@fotonower.com args[1350741136] : ('0.042563385517422996',) no score found for photo 1350741136 We are sending mail with results at report@fotonower.com args[1350741133] : ('0.042563385517422996',) no score found for photo 1350741133 We are sending mail with results at report@fotonower.com args[1350741025] : ('0.042563385517422996',) no score found for photo 1350741025 We are sending mail with results at report@fotonower.com args[1350740999] : ('0.042563385517422996',) no score found for photo 1350740999 We are sending mail with results at report@fotonower.com args[1350740988] : ('0.042563385517422996',) no score found for photo 1350740988 We are sending mail with results at report@fotonower.com args[1350740972] : ('0.042563385517422996',) no score found for photo 1350740972 We are sending mail with results at report@fotonower.com args[1350740781] : ('0.042563385517422996',) no score found for photo 1350740781 We are sending mail with results at report@fotonower.com args[1350740721] : ('0.042563385517422996',) no score found for photo 1350740721 We are sending mail with results at report@fotonower.com refus_total : 0.042563385517422996 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159215 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22159215_09-04-2025_11_21_01.pdf results_Auto_P22159215_09-04-2025_11_21_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22159215_09-04-2025_11_21_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22159215','results_Auto_P22159215_09-04-2025_11_21_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22159215_09-04-2025_11_21_01.pdf','pdf','','0.2','0.042563385517422996') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22159215]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721] map_info['map_portfolio_photo'] : {22159215: [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721]} final : False mtd_id 4302 list_pids : [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741672', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741669', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741666', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741665', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741404', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741369', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741235', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741166', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741163', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741153', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741144', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741136', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741133', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741025', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740999', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740988', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740972', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740781', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740721', None, None, None, None, None, '2734082') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22159215', '1350741672', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741669', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741666', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741665', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741404', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741369', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741235', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741166', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741163', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741153', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741144', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741136', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741133', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741025', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740999', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740988', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740972', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740781', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740721', None, None, None, None, None, '2734082')] time used for this insertion : 0.01569056510925293 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.053046226501465 time spend to save output : 0.016083717346191406 total time spend for step 4 : 3.0691299438476562 step5:split_time_score Wed Apr 9 11:21:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22159215'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('22159215',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22159215) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350741666: {'path': 'temp/1744190461_704941_1350741666_d81e22024ec6e839d6b9b70432642de3.jpg', 'extension': 'jpg'}, 1350741669: {'path': 'temp/1744190461_704941_1350741669_97de398a38d7e787052e84482aa67986.jpg', 'extension': 'jpg'}, 1350741672: {'path': 'temp/1744190461_704941_1350741672_0ec3097c45b1c50d0965711571a931c8.jpg', 'extension': 'jpg'}, 1350740999: {'path': 'temp/1744190461_704941_1350740999_cf796c834a23ae53019b4e37a066965b.jpg', 'extension': 'jpg'}, 1350741025: {'path': 'temp/1744190461_704941_1350741025_1e41e6a83cccecd319cc1443ae10af44.jpg', 'extension': 'jpg'}, 1350741133: {'path': 'temp/1744190461_704941_1350741133_26051eaaa20e8e54d3373256c9b40ffb.jpg', 'extension': 'jpg'}, 1350741136: {'path': 'temp/1744190461_704941_1350741136_41c43e87e603cd2d9a7f3d27e814a3d8.jpg', 'extension': 'jpg'}, 1350741144: {'path': 'temp/1744190461_704941_1350741144_69af6335b13c12b98b38f01f9eeeecfd.jpg', 'extension': 'jpg'}, 1350741153: {'path': 'temp/1744190461_704941_1350741153_d9237e7b95ce5eefdc9860c6cf51e4d8.jpg', 'extension': 'jpg'}, 1350741163: {'path': 'temp/1744190461_704941_1350741163_dfd4f7d1ac719091cda22174cd6ff624.jpg', 'extension': 'jpg'}, 1350741166: {'path': 'temp/1744190461_704941_1350741166_c279a36793ef14b548bb8616209c259b.jpg', 'extension': 'jpg'}, 1350741235: {'path': 'temp/1744190461_704941_1350741235_8240938df2ed078197a023a89e7c506c.jpg', 'extension': 'jpg'}, 1350741369: {'path': 'temp/1744190461_704941_1350741369_0fb998f2a5937946b53d62acd0a340a9.jpg', 'extension': 'jpg'}, 1350741404: {'path': 'temp/1744190461_704941_1350741404_67d26211da3dd20aa6d5242ee3afc378.jpg', 'extension': 'jpg'}, 1350741665: {'path': 'temp/1744190461_704941_1350741665_8c58d72916e4f3d9030a16289951c8f8.jpg', 'extension': 'jpg'}, 1350740721: {'path': 'temp/1744190461_704941_1350740721_8f6c6fad97e270be948a85fec58e0f55.jpg', 'extension': 'jpg'}, 1350740781: {'path': 'temp/1744190461_704941_1350740781_7147a844852f44f814d20ce62dd45c29.jpg', 'extension': 'jpg'}, 1350740972: {'path': 'temp/1744190461_704941_1350740972_ab49c952dc337a55740e3224d8610d43.jpg', 'extension': 'jpg'}, 1350740988: {'path': 'temp/1744190461_704941_1350740988_92cb7e7720f43eec994a484eebd9ed56.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 22159215; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22159215 group by h (('11', 19),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22159215 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22159215) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22159215) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09042025 22159215 Nombre de photos uploadées : 19 / 23040 (0%) 09042025 22159215 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 09042025 22159215 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1350740781, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/7147a844852f44f814d20ce62dd45c29.jpg', 'username': None, 'uploaded_at': 1744190168, 'text': 'image_09042025_11_15_14_10137.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350740721, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/8f6c6fad97e270be948a85fec58e0f55.jpg', 'username': None, 'uploaded_at': 1744190168, 'text': 'image_09042025_11_15_35_10144.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350741025, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1e41e6a83cccecd319cc1443ae10af44.jpg', 'username': None, 'uploaded_at': 1744190227, 'text': 'image_09042025_11_15_54_10138.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350740999, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/cf796c834a23ae53019b4e37a066965b.jpg', 'username': None, 'uploaded_at': 1744190227, 'text': 'image_09042025_11_16_24_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0020911693572998047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22159215, '2025-04-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725367,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022840261459350586 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1725367 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725367, 'dashboard_run_id': 1733278, 'mtr_portfolio_id': 22156254, 'dashboard_result_id': 9940571, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22156254_09-04-2025_10_49_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22156333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22156334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22156335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22156336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22156337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22156338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22156339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22156340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22156341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22156342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22156343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22156344, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1733278, 'mtr_portfolio_id': 22157308, 'dashboard_result_id': 9940572, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22157308_09-04-2025_11_02_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22157355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22157356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22157357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22157358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22157359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22157360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22157361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22157362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22157363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22157364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22157365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22157366, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1733278, 'mtr_portfolio_id': 22158269, 'dashboard_result_id': 9940573, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22158269_09-04-2025_11_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22158273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22158274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22158275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22158276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22158277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22158278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22158279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22158280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22158281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22158282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22158283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22158284, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1733278, 'mtr_portfolio_id': 22159215, 'dashboard_result_id': 9940574, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22156254 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2733928, 'mtr_portfolio_id': 22156254, 'created_at': datetime.datetime(2025, 4, 9, 10, 49, 8), 'result': '0.05039145432587405', 'result_long': None, 'result_double': None}] Qualite : 0.05039145432587405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22156254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22156254_09-04-2025_10_49_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22156254 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22156254_09-04-2025_10_49_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22156333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22156334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22156335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22156336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22156337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22156338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22156339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22156340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22156341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22156342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22156343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22156344, 'pht': 3726}}" where mtr_portfolio_id = 22156254 and dashboard_run_id = 1733278 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22156254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9940571, 0.05039145432587405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22156254_09-04-2025_10_49_09.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22156333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22156334, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22156335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22156336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22156337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22156338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22156339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22156340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22156341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22156342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22156343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22156344, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22157308 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2733973, 'mtr_portfolio_id': 22157308, 'created_at': datetime.datetime(2025, 4, 9, 11, 2, 32), 'result': '0.05277391439860785', 'result_long': None, 'result_double': None}] Qualite : 0.05277391439860785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22157308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22157308_09-04-2025_11_02_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22157308 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22157308_09-04-2025_11_02_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22157355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22157356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22157357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22157358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22157359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22157360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22157361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22157362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22157363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22157364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22157365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22157366, 'pht': 3726}}" where mtr_portfolio_id = 22157308 and dashboard_run_id = 1733278 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22157308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9940572, 0.05277391439860785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22157308_09-04-2025_11_02_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22157355, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22157356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22157357, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22157358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22157359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22157360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22157361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22157362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22157363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22157364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22157365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22157366, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22158269 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2734031, 'mtr_portfolio_id': 22158269, 'created_at': datetime.datetime(2025, 4, 9, 11, 16, 58), 'result': '0.0515410709107821', 'result_long': None, 'result_double': None}] Qualite : 0.0515410709107821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22158269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22158269_09-04-2025_11_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22158269 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22158269_09-04-2025_11_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22158273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22158274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22158275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22158276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22158277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22158278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22158279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22158280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22158281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22158282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22158283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22158284, 'pht': 3726}}" where mtr_portfolio_id = 22158269 and dashboard_run_id = 1733278 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22158269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9940573, 0.0515410709107821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22158269_09-04-2025_11_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22158273, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22158274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22158275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22158276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22158277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22158278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22158279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22158280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22158281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22158282, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22158283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22158284, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22159215 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2734082, 'mtr_portfolio_id': 22159215, 'created_at': datetime.datetime(2025, 4, 9, 11, 21), 'result': '0.042563385517422996', 'result_long': None, 'result_double': None}] Qualite : 0.042563385517422996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22159215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22159215_09-04-2025_11_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22159215 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22159215_09-04-2025_11_21_01.pdf'}" where mtr_portfolio_id = 22159215 and dashboard_run_id = 1733278 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22159215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9940574, 0.042563385517422996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22159215_09-04-2025_11_21_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22159221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22159222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22159223, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22159224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22159225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22159226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22159227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22159228, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22159229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22159230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22159231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22159232, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22156254,22157308,22158269,22159215) result : ((1350717456,), (1350717546,), (1350717629,), (1350717697,), (1350717792,), (1350718270,), (1350718316,), (1350718361,), (1350718395,), (1350719037,), (1350719099,), (1350719178,), (1350719303,), (1350719364,), (1350719411,), (1350719817,), (1350719956,), (1350720040,), (1350720074,), (1350720214,), (1350721254,), (1350721273,), (1350721338,), (1350721528,), (1350721602,), (1350721633,), (1350721967,), (1350722019,), (1350722047,), (1350722093,), (1350722137,), (1350722351,), (1350722391,), (1350722442,), (1350722955,), (1350722986,), (1350723005,), (1350723022,), (1350723026,), (1350723060,), (1350723424,), (1350723489,), (1350723543,), (1350723598,), (1350723645,), (1350723691,), (1350724094,), (1350724141,), (1350724190,), (1350724732,), (1350724759,), (1350725055,), (1350725129,), (1350725411,), (1350725539,), (1350725566,), (1350725581,), (1350725597,), (1350725641,), (1350726071,), (1350726137,), (1350726199,), (1350726763,), (1350726830,), (1350726891,), (1350726962,), (1350727436,), (1350727492,), (1350727544,), (1350727593,), (1350727652,), (1350727695,), (1350728260,), (1350728050,), (1350728104,), (1350728157,), (1350728203,), (1350728566,), (1350728613,), (1350728931,), (1350728960,), (1350728996,), (1350729047,), (1350729096,), (1350729428,), (1350729434,), (1350729472,), (1350729475,), (1350729477,), (1350729532,), (1350729537,), (1350729543,), (1350730613,), (1350730617,), (1350730620,), (1350730630,), (1350730633,), (1350730635,), (1350730950,), (1350730954,), (1350730958,), (1350731004,), (1350731015,), (1350731017,), (1350731034,), (1350731038,), (1350731044,), (1350731166,), (1350731232,), (1350731500,), (1350731545,), (1350731625,), (1350731642,), (1350731733,), (1350732301,), (1350732340,), (1350732389,), (1350732435,), (1350732966,), (1350732977,), (1350733009,), (1350733058,), (1350733965,), (1350734015,), (1350734076,), (1350734110,), (1350734135,), (1350734168,), (1350734525,), (1350734380,), (1350734431,), (1350734484,), (1350735298,), (1350735402,), (1350735439,), (1350735489,), (1350735540,), (1350736321,), (1350736501,), (1350737021,), (1350737042,), (1350737050,), (1350737713,), (1350737767,), (1350737801,), (1350737839,), (1350737894,), (1350737924,), (1350738187,), (1350738258,), (1350738294,), (1350738327,), (1350738522,), (1350738525,), (1350738532,), (1350738536,), (1350738540,), (1350738562,), (1350738564,), (1350738570,), (1350738580,), (1350738584,), (1350738588,), (1350738607,), (1350738610,), (1350738616,), (1350738683,), (1350739047,), (1350739056,), (1350739160,), (1350739252,), (1350739600,), (1350739614,), (1350739620,), (1350739944,), (1350739955,), (1350739984,), (1350739998,), (1350740007,), (1350740099,), (1350740102,), (1350740105,), (1350740110,), (1350740116,), (1350740120,), (1350740354,), (1350740356,), (1350740359,), (1350740409,), (1350740412,), (1350740792,), (1350740721,), (1350740781,), (1350740972,), (1350740988,), (1350740999,), (1350741025,), (1350741133,), (1350741136,), (1350741144,), (1350741153,), (1350741163,), (1350741166,), (1350741235,), (1350741369,), (1350741404,), (1350741665,), (1350741666,), (1350741669,), (1350741672,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09042025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22159215]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721] map_info['map_portfolio_photo'] : {22159215: [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721]} final : True mtd_id 4302 list_pids : [1350741672, 1350741669, 1350741666, 1350741665, 1350741404, 1350741369, 1350741235, 1350741166, 1350741163, 1350741153, 1350741144, 1350741136, 1350741133, 1350741025, 1350740999, 1350740988, 1350740972, 1350740781, 1350740721] Looping around the photos to save general results len do output : 1 /22159215Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741672', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741669', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741666', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741665', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741404', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741369', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741235', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741166', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741163', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741153', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741144', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741136', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741133', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350741025', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740999', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740988', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740972', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740781', None, None, None, None, None, '2734082') ('4302', None, None, None, None, None, None, None, '2734082') ('4302', '22159215', '1350740721', None, None, None, None, None, '2734082') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22159215', 'None', None, None, None, None, '2734082'), ('4302', '22159215', '1350741672', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741669', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741666', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741665', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741404', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741369', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741235', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741166', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741163', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741153', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741144', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741136', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741133', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350741025', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740999', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740988', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740972', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740781', None, None, None, None, None, '2734082'), ('4302', '22159215', '1350740721', None, None, None, None, None, '2734082')] time used for this insertion : 3.0573790073394775 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34222936630249023 time spend to save output : 3.05770206451416 total time spend for step 5 : 3.3999314308166504 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (2734082) 2.48user 2.14system 0:12.61elapsed 36%CPU (0avgtext+0avgdata 161464maxresident)k 656inputs+13016outputs (19major+73103minor)pagefaults 0swaps