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 : 1821089 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 (2762896) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2762896) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437036 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2762896'] with mtr_portfolio_ids : ['22437036'] and first list_photo_ids : [] new path : /proc/1821089/ Name: python3 Umask: 0002 State: R (running) Tgid: 1821089 Ngid: 0 Pid: 1821089 PPid: 1821088 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1821089 NSpid: 1821089 NSpgid: 1818807 NSsid: 1818807 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97224 kB VmRSS: 97224 kB RssAnon: 59804 kB RssFile: 37420 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 77 nonvoluntary_ctxt_switches: 171 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1821089', 'Ngid': '0', 'Pid': '1821089', 'PPid': '1821088', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1821089', 'NSpid': '1821089', 'NSpgid': '1818807', 'NSsid': '1818807', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97224 kB', 'VmRSS': '97224 kB', 'RssAnon': '59804 kB', 'RssFile': '37420 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '77', 'nonvoluntary_ctxt_switches': '171'} ('datou_batch_current', '1821089', '1106936', '0', '1106936', '865684', '97224', b'', 'marlene', '2762896') 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 (22437036) 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 (2762896 ) ) 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 (22437036) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353770680, 'portfolio_id': 22437036}, {'photo_id': 1353770629, 'portfolio_id': 22437036}, {'photo_id': 1353770570, 'portfolio_id': 22437036}, {'photo_id': 1353770523, 'portfolio_id': 22437036}, {'photo_id': 1353770038, 'portfolio_id': 22437036}, {'photo_id': 1353769988, 'portfolio_id': 22437036}, {'photo_id': 1353769937, 'portfolio_id': 22437036}, {'photo_id': 1353769887, 'portfolio_id': 22437036}, {'photo_id': 1353769837, 'portfolio_id': 22437036}, {'photo_id': 1353769782, 'portfolio_id': 22437036}, {'photo_id': 1353769260, 'portfolio_id': 22437036}, {'photo_id': 1353769242, 'portfolio_id': 22437036}, {'photo_id': 1353769214, 'portfolio_id': 22437036}, {'photo_id': 1353769165, 'portfolio_id': 22437036}, {'photo_id': 1353769124, 'portfolio_id': 22437036}, {'photo_id': 1353768526, 'portfolio_id': 22437036}, {'photo_id': 1353768480, 'portfolio_id': 22437036}, {'photo_id': 1353767872, 'portfolio_id': 22437036}, {'photo_id': 1353767659, 'portfolio_id': 22437036}, {'photo_id': 1353767504, 'portfolio_id': 22437036}, {'photo_id': 1353767419, 'portfolio_id': 22437036}, {'photo_id': 1353767338, 'portfolio_id': 22437036}, {'photo_id': 1353767251, 'portfolio_id': 22437036}, {'photo_id': 1353766033, 'portfolio_id': 22437036}, {'photo_id': 1353765945, 'portfolio_id': 22437036}] map_portfolio_id_photo_id: {22437036: [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945]} ##### 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.014473676681518555 #### 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 Fri Apr 25 15:06:57 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 (22437036) 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 : 22437036 get user id for portfolio 22437036 get sub ptf for main ptf 22437036, type 3726 and hashtags ['papier', 'kraft', 'environnement', 'autre_refus', 'Carton_brun', 'metal', 'Carton_gris', 'cartonnette', 'flou', 'plastique', 'mal_croppe', 'Teint_Dans_La_Masse'] 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`=22437036 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','environnement','autre_refus','Carton_brun','metal','Carton_gris','cartonnette','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) 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`=22437036 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','environnement','autre_refus','Carton_brun','metal','Carton_gris','cartonnette','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25042025_15_00_13_10274_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__25042025_15_00_13_10274_3726_Teint_Dans_La_Masse_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)[[22437036, 22437065, 3726, 0.5, 492668766, 979], [22437036, 22437066, 3726, 0.5, 493202403, 979], [22437036, 22437067, 3726, 0.5, 493012381, 979], [22437036, 22437068, 3726, 0.5, 2107752406, 979], [22437036, 22437069, 3726, 0.5, 2107753024, 979], [22437036, 22437070, 3726, 0.5, 492628673, 979], [22437036, 22437071, 3726, 0.5, 2107753020, 979], [22437036, 22437072, 3726, 0.5, 702398920, 979], [22437036, 22437073, 3726, 0.5, 492777938, 979], [22437036, 22437074, 3726, 0.5, 492725882, 979], [22437036, 22437075, 3726, 0.5, 2107755527, 979], [22437036, 22437076, 3726, 0.5, 2107752385, 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`=22437036 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','environnement','autre_refus','Carton_brun','metal','Carton_gris','cartonnette','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) 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`=22437036 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','environnement','autre_refus','Carton_brun','metal','Carton_gris','cartonnette','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22437036, 'sub_port_id': 22437065, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882703, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}, 'kraft': {'main_port_id': 22437036, 'sub_port_id': 22437066, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882704, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}, 'environnement': {'main_port_id': 22437036, 'sub_port_id': 22437067, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882705, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}, 'autre_refus': {'main_port_id': 22437036, 'sub_port_id': 22437068, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882706, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}, 'Carton_brun': {'main_port_id': 22437036, 'sub_port_id': 22437069, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882707, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}, 'metal': {'main_port_id': 22437036, 'sub_port_id': 22437070, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882708, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}, 'Carton_gris': {'main_port_id': 22437036, 'sub_port_id': 22437071, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882709, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}, 'cartonnette': {'main_port_id': 22437036, 'sub_port_id': 22437072, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882710, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}, 'flou': {'main_port_id': 22437036, 'sub_port_id': 22437073, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882711, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}, 'plastique': {'main_port_id': 22437036, 'sub_port_id': 22437074, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882712, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}, 'mal_croppe': {'main_port_id': 22437036, 'sub_port_id': 22437075, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882713, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22437036, 'sub_port_id': 22437076, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882714, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22437065 , 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=22437036 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 (22437065) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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 22437066 , 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=22437036 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 (22437066) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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 22437067 , 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=22437036 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 (22437067) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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 22437068 , 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=22437036 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 (22437068) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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 22437069 , 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=22437036 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 (22437069) result : ((1353768785,), (1353768787,), (1353770597,), (1353770600,), (1353770885,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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 22437070 , 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=22437036 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 (22437070) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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 22437071 , 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=22437036 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 (22437071) result : ((1353770577,), (1353770580,), (1353770879,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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 22437072 , 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=22437036 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 (22437072) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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 22437073 , 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=22437036 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 (22437073) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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 22437074 , 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=22437036 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 (22437074) result : ((1353770614,), (1353770617,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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 22437075 , 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=22437036 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 (22437075) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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 22437076 , 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=22437036 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 (22437076) result : ((1353770560,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22437036) result : ((1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) 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`=22437036 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','environnement','autre_refus','Carton_brun','metal','Carton_gris','cartonnette','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) 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`=22437036 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','environnement','autre_refus','Carton_brun','metal','Carton_gris','cartonnette','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_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__25042025_15_00_13_10274_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25042025_15_00_13_10274_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__25042025_15_00_13_10274_4417_Teint_Dans_La_Masse_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)[[22437036, 22437077, 4417, 0.5, 492668766, 979], [22437036, 22437078, 4417, 0.5, 493202403, 979], [22437036, 22437079, 4417, 0.5, 493012381, 979], [22437036, 22437080, 4417, 0.5, 2107752406, 979], [22437036, 22437081, 4417, 0.5, 2107753024, 979], [22437036, 22437082, 4417, 0.5, 492628673, 979], [22437036, 22437083, 4417, 0.5, 2107753020, 979], [22437036, 22437084, 4417, 0.5, 702398920, 979], [22437036, 22437085, 4417, 0.5, 492777938, 979], [22437036, 22437086, 4417, 0.5, 492725882, 979], [22437036, 22437087, 4417, 0.5, 2107755527, 979], [22437036, 22437088, 4417, 0.5, 2107752385, 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`=22437036 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','environnement','autre_refus','Carton_brun','metal','Carton_gris','cartonnette','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) 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`=22437036 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','kraft','environnement','autre_refus','Carton_brun','metal','Carton_gris','cartonnette','flou','plastique','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22437036, 'sub_port_id': 22437077, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882715, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}, 'kraft': {'main_port_id': 22437036, 'sub_port_id': 22437078, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882716, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}, 'environnement': {'main_port_id': 22437036, 'sub_port_id': 22437079, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882717, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}, 'autre_refus': {'main_port_id': 22437036, 'sub_port_id': 22437080, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882718, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}, 'Carton_brun': {'main_port_id': 22437036, 'sub_port_id': 22437081, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882719, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}, 'metal': {'main_port_id': 22437036, 'sub_port_id': 22437082, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882720, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}, 'Carton_gris': {'main_port_id': 22437036, 'sub_port_id': 22437083, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882721, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}, 'cartonnette': {'main_port_id': 22437036, 'sub_port_id': 22437084, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882722, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}, 'flou': {'main_port_id': 22437036, 'sub_port_id': 22437085, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882723, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}, 'plastique': {'main_port_id': 22437036, 'sub_port_id': 22437086, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882724, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}, 'mal_croppe': {'main_port_id': 22437036, 'sub_port_id': 22437087, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882725, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22437036, 'sub_port_id': 22437088, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14882726, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 6, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437071 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437072 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437085,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437073 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437086,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437074 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437087,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437075 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437088,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437076 lien utilise dans velours : https://www.fotonower.com/velours/22437077,22437078,22437079,22437080,22437081,22437082,22437083,22437084,22437085,22437086,22437087,22437088?tags=papier,kraft,environnement,autre_refus,Carton_brun,metal,Carton_gris,cartonnette,flou,plastique,mal_croppe,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22437036]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945] map_info['map_portfolio_photo'] : {22437036: [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945]} final : False mtd_id 4302 list_pids : [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945] Looping around the photos to save general results len do output : 1 /22437036. 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, '2762896') ('4302', '22437036', '1353770680', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770629', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770570', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770523', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770038', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769988', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769937', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769887', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769837', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769782', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769260', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769242', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769214', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769165', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769124', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353768526', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353768480', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767872', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767659', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767504', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767419', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767338', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767251', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353766033', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353765945', None, None, None, None, None, '2762896') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '22437036', "{'papier': 22437065, 'kraft': 22437066, 'environnement': 22437067, 'autre_refus': 22437068, 'Carton_brun': 22437069, 'metal': 22437070, 'Carton_gris': 22437071, 'cartonnette': 22437072, 'flou': 22437073, 'plastique': 22437074, 'mal_croppe': 22437075, 'Teint_Dans_La_Masse': 22437076}", None, None, None, None, '2762896'), ('4302', '22437036', '1353770680', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770629', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770570', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770523', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770038', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769988', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769937', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769887', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769837', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769782', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769260', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769242', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769214', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769165', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769124', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353768526', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353768480', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767872', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767659', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767504', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767419', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767338', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767251', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353766033', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353765945', None, None, None, None, None, '2762896')] time used for this insertion : 0.01924872398376465 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0654778480529785 time spend to save output : 0.01967334747314453 total time spend for step 1 : 2.085151195526123 step2:final Fri Apr 25 15:06:59 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 (22437036) 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 22437036 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353766033,1353765945,1353767872,1353767659,1353767504,1353767419,1353767338,1353767251,1353768526,1353768480,1353769260,1353769242,1353769214,1353769165,1353769124,1353770038,1353769988,1353769937,1353769887,1353769837,1353769782,1353770680,1353770629,1353770570,1353770523); 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([22437036]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} new output for save of step final : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945] map_info['map_portfolio_photo'] : {22437036: [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945]} final : False mtd_id 4302 list_pids : [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945] Looping around the photos to save general results len do output : 25 /1353770680.Didn't retrieve data . /1353770629.Didn't retrieve data . /1353770570.Didn't retrieve data . /1353770523.Didn't retrieve data . /1353770038.Didn't retrieve data . /1353769988.Didn't retrieve data . /1353769937.Didn't retrieve data . /1353769887.Didn't retrieve data . /1353769837.Didn't retrieve data . /1353769782.Didn't retrieve data . /1353769260.Didn't retrieve data . /1353769242.Didn't retrieve data . /1353769214.Didn't retrieve data . /1353769165.Didn't retrieve data . /1353769124.Didn't retrieve data . /1353768526.Didn't retrieve data . /1353768480.Didn't retrieve data . /1353767872.Didn't retrieve data . /1353767659.Didn't retrieve data . /1353767504.Didn't retrieve data . /1353767419.Didn't retrieve data . /1353767338.Didn't retrieve data . /1353767251.Didn't retrieve data . /1353766033.Didn't retrieve data . /1353765945.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, '2762896') ('4302', '22437036', '1353770680', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770629', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770570', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770523', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770038', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769988', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769937', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769887', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769837', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769782', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769260', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769242', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769214', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769165', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769124', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353768526', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353768480', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767872', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767659', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767504', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767419', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767338', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767251', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353766033', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353765945', None, None, None, None, None, '2762896') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 75 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', '22437036', '1353770680', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353770629', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353770570', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353770523', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353770038', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353769988', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353769937', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353769887', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353769837', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353769782', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353769260', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353769242', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353769214', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353769165', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353769124', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353768526', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353768480', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353767872', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353767659', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353767504', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353767419', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353767338', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353767251', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353766033', '0.08839848062389945', None, None, None, None, '2762896'), ('4302', '22437036', '1353765945', '0.08839848062389945', None, None, None, None, '2762896')] time used for this insertion : 0.01865696907043457 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07120132446289062 time spend to save output : 0.019742250442504883 total time spend for step 2 : 0.09094357490539551 step3:velours_tree Fri Apr 25 15:06:59 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 : {22437036: [{'papier': 22437065, 'kraft': 22437066, 'environnement': 22437067, 'autre_refus': 22437068, 'Carton_brun': 22437069, 'metal': 22437070, 'Carton_gris': 22437071, 'cartonnette': 22437072, 'flou': 22437073, 'plastique': 22437074, 'mal_croppe': 22437075, 'Teint_Dans_La_Masse': 22437076}]} input_args_next_step : {22437036: ()} output_args : {22437036: [{'papier': 22437065, 'kraft': 22437066, 'environnement': 22437067, 'autre_refus': 22437068, 'Carton_brun': 22437069, 'metal': 22437070, 'Carton_gris': 22437071, 'cartonnette': 22437072, 'flou': 22437073, 'plastique': 22437074, 'mal_croppe': 22437075, 'Teint_Dans_La_Masse': 22437076}]} args : 22437036 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 : ({'papier': 22437065, 'kraft': 22437066, 'environnement': 22437067, 'autre_refus': 22437068, 'Carton_brun': 22437069, 'metal': 22437070, 'Carton_gris': 22437071, 'cartonnette': 22437072, 'flou': 22437073, 'plastique': 22437074, 'mal_croppe': 22437075, 'Teint_Dans_La_Masse': 22437076},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22437036) 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([22437036]) 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.4221651554107666 time spend to save output : 7.462501525878906e-05 total time spend for step 3 : 0.4222397804260254 step4:send_mail_cod Fri Apr 25 15:06:59 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 : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} input_args_next_step : {1353770680: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353770680 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353770629 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353770570 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353770523 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353770038 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353769988 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353769937 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353769887 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353769837 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353769782 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353769260 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353769242 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353769214 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353769165 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353769124 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353768526 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353768480 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353767872 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353767659 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353767504 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353767419 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353767338 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353767251 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353766033 depend.output_id : 0 input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ()} output_args : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',)} args : 1353765945 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 : {22437036: [{'papier': 22437065, 'kraft': 22437066, 'environnement': 22437067, 'autre_refus': 22437068, 'Carton_brun': 22437069, 'metal': 22437070, 'Carton_gris': 22437071, 'cartonnette': 22437072, 'flou': 22437073, 'plastique': 22437074, 'mal_croppe': 22437075, 'Teint_Dans_La_Masse': 22437076}]} input_args_next_step : {1353770680: ('0.08839848062389945',), 1353770629: ('0.08839848062389945',), 1353770570: ('0.08839848062389945',), 1353770523: ('0.08839848062389945',), 1353770038: ('0.08839848062389945',), 1353769988: ('0.08839848062389945',), 1353769937: ('0.08839848062389945',), 1353769887: ('0.08839848062389945',), 1353769837: ('0.08839848062389945',), 1353769782: ('0.08839848062389945',), 1353769260: ('0.08839848062389945',), 1353769242: ('0.08839848062389945',), 1353769214: ('0.08839848062389945',), 1353769165: ('0.08839848062389945',), 1353769124: ('0.08839848062389945',), 1353768526: ('0.08839848062389945',), 1353768480: ('0.08839848062389945',), 1353767872: ('0.08839848062389945',), 1353767659: ('0.08839848062389945',), 1353767504: ('0.08839848062389945',), 1353767419: ('0.08839848062389945',), 1353767338: ('0.08839848062389945',), 1353767251: ('0.08839848062389945',), 1353766033: ('0.08839848062389945',), 1353765945: ('0.08839848062389945',), 22437036: ()} output_args : {22437036: [{'papier': 22437065, 'kraft': 22437066, 'environnement': 22437067, 'autre_refus': 22437068, 'Carton_brun': 22437069, 'metal': 22437070, 'Carton_gris': 22437071, 'cartonnette': 22437072, 'flou': 22437073, 'plastique': 22437074, 'mal_croppe': 22437075, 'Teint_Dans_La_Masse': 22437076}]} args : 22437036 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 :26, first value : ('0.08839848062389945',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22437036) 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 (1353770680,1353770629,1353770570,1353770523,1353770038,1353769988,1353769937,1353769887,1353769837,1353769782,1353769260,1353769242,1353769214,1353769165,1353769124,1353768526,1353768480,1353767872,1353767659,1353767504,1353767419,1353767338,1353767251,1353766033,1353765945) Found this number of photos: 25 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353765945 begin to download photo : 1353767659 begin to download photo : 1353769214 begin to download photo : 1353769937 begin to download photo : 1353770680 download finish for photo 1353767659 begin to download photo : 1353767872 download finish for photo 1353770680 download finish for photo 1353769937 begin to download photo : 1353769988 download finish for photo 1353765945 begin to download photo : 1353766033 download finish for photo 1353769214 begin to download photo : 1353769242 download finish for photo 1353767872 begin to download photo : 1353768480 download finish for photo 1353769988 begin to download photo : 1353770038 download finish for photo 1353766033 begin to download photo : 1353767251 download finish for photo 1353769242 begin to download photo : 1353769260 download finish for photo 1353768480 begin to download photo : 1353768526 download finish for photo 1353770038 begin to download photo : 1353770523 download finish for photo 1353767251 begin to download photo : 1353767338 download finish for photo 1353769260 begin to download photo : 1353769782 download finish for photo 1353770523 begin to download photo : 1353770570 download finish for photo 1353768526 begin to download photo : 1353769124 download finish for photo 1353767338 begin to download photo : 1353767419 download finish for photo 1353769782 begin to download photo : 1353769837 download finish for photo 1353769124 begin to download photo : 1353769165 download finish for photo 1353770570 begin to download photo : 1353770629 download finish for photo 1353767419 begin to download photo : 1353767504 download finish for photo 1353769837 begin to download photo : 1353769887 download finish for photo 1353770629 download finish for photo 1353769165 download finish for photo 1353769887 download finish for photo 1353767504 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette224370661745586420/ imagette224370681745586420/ imagette224370701745586420/ imagette224370721745586420/ imagette224370731745586420/ length of list_filenames : 25 ; length of list_pids : 25 ; length of list_args : 25 results_Auto_P22437036_25-04-2025_15_07_00.pdf 22437066 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=22437066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224370661745586420 22437068 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=22437068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224370681745586420 22437070 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=22437070 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224370701745586420 22437072 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=22437072 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224370721745586420 22437073 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=22437073 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224370731745586420 22437074 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=22437074 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353770614: '1745586343_1941825_1353769242_4ed0ab43dd75ff7d9500a05b344c9b04_rle_crop_3770065685_0.png', 1353770617: '1745586343_1941825_1353769124_64a002c6f4a3467174b44a27d373cfb4_rle_crop_3770065725_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/26be45d0691a96b18b845f1636b4aaff_64498407.png change filename to text .imagette224370741745586420/ imagette224370741745586420/1745586343_1941825_1353769242_4ed0ab43dd75ff7d9500a05b344c9b04_rle_crop_3770065685_0.png.png imagette224370741745586420/1745586343_1941825_1353769124_64a002c6f4a3467174b44a27d373cfb4_rle_crop_3770065725_0.png.png imagette224370751745586420/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ea05246619fac906f009e6f68ca69b31_11825271.png imagette224370741745586420 22437075 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=22437075 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224370751745586420 22437069 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=22437069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353768785: '1745586194_2037957_1353765945_0f75be3365251586cc303bb93fbe8ded_rle_crop_3770063821_0.png', 1353768787: '1745586194_2037957_1353765945_0f75be3365251586cc303bb93fbe8ded_rle_crop_3770063818_0.png', 1353770597: '1745586343_1941825_1353769165_c27a71673823850ab98560e13549137d_rle_crop_3770065704_0.png', 1353770600: '1745586343_1941825_1353769165_c27a71673823850ab98560e13549137d_rle_crop_3770065706_0.png', 1353770885: '1745586373_2039546_1353768480_8e78e6b15945f19246ee8b83b5b9671b_rle_crop_3770065870_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/521a2df61fd5dcfb15473f521c4c787a_14883318.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c644954a81c10419628e9bbe472571a4_99118845.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/6c4b8d160cf98b59febf9c59877dd13b_21415618.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7c293a1f93e64df7f9553f3c60b75c8c_23513431.png change filename to text .imagette224370691745586420/ imagette224370691745586420/1745586373_2039546_1353768480_8e78e6b15945f19246ee8b83b5b9671b_rle_crop_3770065870_0.png.png imagette224370691745586420/1745586194_2037957_1353765945_0f75be3365251586cc303bb93fbe8ded_rle_crop_3770063821_0.png.png imagette224370691745586420/1745586343_1941825_1353769165_c27a71673823850ab98560e13549137d_rle_crop_3770065706_0.png.png imagette224370691745586420/1745586343_1941825_1353769165_c27a71673823850ab98560e13549137d_rle_crop_3770065704_0.png.png imagette224370691745586420/1745586194_2037957_1353765945_0f75be3365251586cc303bb93fbe8ded_rle_crop_3770063818_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/53bdb4a0a97861e021a7dbc830dec917_3322315.png imagette224370691745586420 22437071 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=22437071 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353770577: '1745586343_1941825_1353769242_4ed0ab43dd75ff7d9500a05b344c9b04_rle_crop_3770065682_0.png', 1353770580: '1745586343_1941825_1353769165_c27a71673823850ab98560e13549137d_rle_crop_3770065703_0.png', 1353770879: '1745586373_2039546_1353768480_8e78e6b15945f19246ee8b83b5b9671b_rle_crop_3770065864_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e7ccb978ea96ed12fbc994241310284b_46830658.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/38c94266760c67c96ad1b5201d727331_88336271.png change filename to text .imagette224370711745586421/ imagette224370711745586421/1745586343_1941825_1353769165_c27a71673823850ab98560e13549137d_rle_crop_3770065703_0.png.png imagette224370711745586421/1745586343_1941825_1353769242_4ed0ab43dd75ff7d9500a05b344c9b04_rle_crop_3770065682_0.png.png imagette224370711745586421/1745586373_2039546_1353768480_8e78e6b15945f19246ee8b83b5b9671b_rle_crop_3770065864_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ed6d64804c4f7d3fcc0df03e41999234_47056609.png imagette224370711745586421 22437076 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=22437076 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353770560: '1745586343_1941825_1353769124_64a002c6f4a3467174b44a27d373cfb4_rle_crop_3770065723_0.png'} change filename to text .imagette224370761745586421/ imagette224370761745586421/1745586343_1941825_1353769124_64a002c6f4a3467174b44a27d373cfb4_rle_crop_3770065723_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e09cf6d829d42ca0ca0fa44db98a22d4_91154304.png imagette224370761745586421 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22437036 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22437077,22437078,22437079,22437080,22437081,22437082,22437083,22437084,22437085,22437086,22437087,22437088?tags=papier,kraft,environnement,autre_refus,Carton_brun,metal,Carton_gris,cartonnette,flou,plastique,mal_croppe,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1353770680] : ('0.08839848062389945',) no score found for photo 1353770680 We are sending mail with results at report@fotonower.com args[1353770629] : ('0.08839848062389945',) no score found for photo 1353770629 We are sending mail with results at report@fotonower.com args[1353770570] : ('0.08839848062389945',) no score found for photo 1353770570 We are sending mail with results at report@fotonower.com args[1353770523] : ('0.08839848062389945',) no score found for photo 1353770523 We are sending mail with results at report@fotonower.com args[1353770038] : ('0.08839848062389945',) no score found for photo 1353770038 We are sending mail with results at report@fotonower.com args[1353769988] : ('0.08839848062389945',) no score found for photo 1353769988 We are sending mail with results at report@fotonower.com args[1353769937] : ('0.08839848062389945',) no score found for photo 1353769937 We are sending mail with results at report@fotonower.com args[1353769887] : ('0.08839848062389945',) no score found for photo 1353769887 We are sending mail with results at report@fotonower.com args[1353769837] : ('0.08839848062389945',) no score found for photo 1353769837 We are sending mail with results at report@fotonower.com args[1353769782] : ('0.08839848062389945',) no score found for photo 1353769782 We are sending mail with results at report@fotonower.com args[1353769260] : ('0.08839848062389945',) no score found for photo 1353769260 We are sending mail with results at report@fotonower.com args[1353769242] : ('0.08839848062389945',) no score found for photo 1353769242 We are sending mail with results at report@fotonower.com args[1353769214] : ('0.08839848062389945',) no score found for photo 1353769214 We are sending mail with results at report@fotonower.com args[1353769165] : ('0.08839848062389945',) no score found for photo 1353769165 We are sending mail with results at report@fotonower.com args[1353769124] : ('0.08839848062389945',) no score found for photo 1353769124 We are sending mail with results at report@fotonower.com args[1353768526] : ('0.08839848062389945',) no score found for photo 1353768526 We are sending mail with results at report@fotonower.com args[1353768480] : ('0.08839848062389945',) no score found for photo 1353768480 We are sending mail with results at report@fotonower.com args[1353767872] : ('0.08839848062389945',) no score found for photo 1353767872 We are sending mail with results at report@fotonower.com args[1353767659] : ('0.08839848062389945',) no score found for photo 1353767659 We are sending mail with results at report@fotonower.com args[1353767504] : ('0.08839848062389945',) no score found for photo 1353767504 We are sending mail with results at report@fotonower.com args[1353767419] : ('0.08839848062389945',) no score found for photo 1353767419 We are sending mail with results at report@fotonower.com args[1353767338] : ('0.08839848062389945',) no score found for photo 1353767338 We are sending mail with results at report@fotonower.com args[1353767251] : ('0.08839848062389945',) no score found for photo 1353767251 We are sending mail with results at report@fotonower.com args[1353766033] : ('0.08839848062389945',) no score found for photo 1353766033 We are sending mail with results at report@fotonower.com args[1353765945] : ('0.08839848062389945',) no score found for photo 1353765945 We are sending mail with results at report@fotonower.com refus_total : 0.08839848062389945 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=22437036 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_P22437036_25-04-2025_15_07_00.pdf results_Auto_P22437036_25-04-2025_15_07_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437036_25-04-2025_15_07_00.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','22437036','results_Auto_P22437036_25-04-2025_15_07_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437036_25-04-2025_15_07_00.pdf','pdf','','0.25','0.08839848062389945') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22437036]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945] map_info['map_portfolio_photo'] : {22437036: [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945]} final : False mtd_id 4302 list_pids : [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945] 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, '2762896') ('4302', '22437036', '1353770680', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770629', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770570', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770523', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770038', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769988', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769937', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769887', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769837', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769782', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769260', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769242', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769214', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769165', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769124', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353768526', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353768480', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767872', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767659', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767504', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767419', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767338', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767251', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353766033', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353765945', None, None, None, None, None, '2762896') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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', '22437036', '1353770680', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770629', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770570', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770523', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770038', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769988', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769937', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769887', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769837', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769782', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769260', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769242', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769214', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769165', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769124', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353768526', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353768480', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767872', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767659', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767504', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767419', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767338', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767251', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353766033', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353765945', None, None, None, None, None, '2762896')] time used for this insertion : 0.01864790916442871 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2902474403381348 time spend to save output : 0.019003868103027344 total time spend for step 4 : 3.309251308441162 step5:split_time_score Fri Apr 25 15:07:03 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 : ['22437036'] 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 : [('22437036',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22437036) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353770680: {'path': 'temp/1745586419_1821089_1353770680_acfa4cdb085d51957ab07e682990eae1.jpg', 'extension': 'jpg'}, 1353769937: {'path': 'temp/1745586419_1821089_1353769937_710bbb031d610761440aff176971e6b5.jpg', 'extension': 'jpg'}, 1353769988: {'path': 'temp/1745586419_1821089_1353769988_fb42f47ad643761e169329aa4ceffc00.jpg', 'extension': 'jpg'}, 1353770038: {'path': 'temp/1745586419_1821089_1353770038_fa58cfe97ad50516f1a27443801dd907.jpg', 'extension': 'jpg'}, 1353770523: {'path': 'temp/1745586419_1821089_1353770523_effe100002fe4b28f3f3c519d0bd75a1.jpg', 'extension': 'jpg'}, 1353770570: {'path': 'temp/1745586419_1821089_1353770570_ae7279abd5322d1afc9b5037be871028.jpg', 'extension': 'jpg'}, 1353770629: {'path': 'temp/1745586419_1821089_1353770629_ad0ce8b3cc26552ade6716ed311d2a55.jpg', 'extension': 'jpg'}, 1353767659: {'path': 'temp/1745586419_1821089_1353767659_2c2e26281141991034bd121032356c6b.jpg', 'extension': 'jpg'}, 1353767872: {'path': 'temp/1745586419_1821089_1353767872_50fb6cf7491ed1251895007c9ac3b0c0.jpg', 'extension': 'jpg'}, 1353768480: {'path': 'temp/1745586419_1821089_1353768480_8e78e6b15945f19246ee8b83b5b9671b.jpg', 'extension': 'jpg'}, 1353768526: {'path': 'temp/1745586419_1821089_1353768526_8a7ea557b44cc4c0cf5ddda1d7d7b218.jpg', 'extension': 'jpg'}, 1353769124: {'path': 'temp/1745586419_1821089_1353769124_64a002c6f4a3467174b44a27d373cfb4.jpg', 'extension': 'jpg'}, 1353769165: {'path': 'temp/1745586419_1821089_1353769165_c27a71673823850ab98560e13549137d.jpg', 'extension': 'jpg'}, 1353769214: {'path': 'temp/1745586419_1821089_1353769214_509bb5d675dfabd71c833a288074086b.jpg', 'extension': 'jpg'}, 1353769242: {'path': 'temp/1745586419_1821089_1353769242_4ed0ab43dd75ff7d9500a05b344c9b04.jpg', 'extension': 'jpg'}, 1353769260: {'path': 'temp/1745586419_1821089_1353769260_40b93918cef00e052fa1bcf6fe4a8d82.jpg', 'extension': 'jpg'}, 1353769782: {'path': 'temp/1745586419_1821089_1353769782_cea1c99cca3dca4ca656d66f1555bea8.jpg', 'extension': 'jpg'}, 1353769837: {'path': 'temp/1745586419_1821089_1353769837_26c84a8e6dd756809a8395d6dcd45434.jpg', 'extension': 'jpg'}, 1353769887: {'path': 'temp/1745586419_1821089_1353769887_b83098d1a4cc88531ee4dda0f4a8aeff.jpg', 'extension': 'jpg'}, 1353765945: {'path': 'temp/1745586419_1821089_1353765945_0f75be3365251586cc303bb93fbe8ded.jpg', 'extension': 'jpg'}, 1353766033: {'path': 'temp/1745586419_1821089_1353766033_08a2172a718bd40bbb2140ac1ea63204.jpg', 'extension': 'jpg'}, 1353767251: {'path': 'temp/1745586419_1821089_1353767251_f64db3ed543cac47c420d7b637dc9da4.jpg', 'extension': 'jpg'}, 1353767338: {'path': 'temp/1745586419_1821089_1353767338_d1cfa96d7e15da36a4fa6cf16223d48c.jpg', 'extension': 'jpg'}, 1353767419: {'path': 'temp/1745586419_1821089_1353767419_aaf0c764af992fb94315ee7e3e173921.jpg', 'extension': 'jpg'}, 1353767504: {'path': 'temp/1745586419_1821089_1353767504_a78bee84bdbc87a8ef88b188ea28fd76.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 = 22437036; (('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 = 22437036 group by h (('15', 25),) 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=22437036 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 (22437036) 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 (22437036) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25042025 22437036 Nombre de photos uploadées : 25 / 23040 (0%) 25042025 22437036 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 25042025 22437036 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1353766033, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/08a2172a718bd40bbb2140ac1ea63204.jpg', 'username': None, 'uploaded_at': 1745586072, 'text': 'image_25042025_15_00_13_010273m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353765945, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0f75be3365251586cc303bb93fbe8ded.jpg', 'username': None, 'uploaded_at': 1745586072, 'text': 'image_25042025_15_00_44_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353767872, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/50fb6cf7491ed1251895007c9ac3b0c0.jpg', 'username': None, 'uploaded_at': 1745586127, 'text': 'image_25042025_15_00_54_10137.jpg'}, {'photo_id': 1353767659, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/2c2e26281141991034bd121032356c6b.jpg', 'username': None, 'uploaded_at': 1745586127, 'text': 'image_25042025_15_01_04_10149.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 1.2636184692382812e-05 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002315998077392578 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22437036, '2025-04-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1747621,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02375507354736328 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= 1747621 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757301, 'mtr_portfolio_id': 22434806, 'dashboard_result_id': 10106064, '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_P22434806_25-04-2025_14_35_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22434822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22434823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22434824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22434825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22434826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22434827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22434828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22434829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22434830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22434831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22434832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22434833, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757301, 'mtr_portfolio_id': 22435288, 'dashboard_result_id': 10106065, '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_P22435288_25-04-2025_14_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22435315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22435316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22435317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22435318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22435319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22435320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22435321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22435322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22435323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22435324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22435325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22435326, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757301, 'mtr_portfolio_id': 22436117, 'dashboard_result_id': 10106066, '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_P22436117_25-04-2025_15_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22436135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22436136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22436137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22436138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22436139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22436140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22436141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22436142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22436143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22436144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22436145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22436146, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757301, 'mtr_portfolio_id': 22437036, 'dashboard_result_id': 10106067, '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 = 22434806 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': 2762707, 'mtr_portfolio_id': 22434806, 'created_at': datetime.datetime(2025, 4, 25, 14, 35, 1), 'result': '0.06111119666581846', 'result_long': None, 'result_double': None}] Qualite : 0.06111119666581846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22434806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22434806_25-04-2025_14_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22434806 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_P22434806_25-04-2025_14_35_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22434822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22434823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22434824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22434825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22434826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22434827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22434828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22434829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22434830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22434831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22434832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22434833, 'pht': 3726}}" where mtr_portfolio_id = 22434806 and dashboard_run_id = 1757301 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`=22434806 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10106064, 0.06111119666581846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22434806_25-04-2025_14_35_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22434822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22434823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22434824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22434825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22434826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22434827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22434828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22434829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22434830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22434831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22434832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22434833, '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 = 22435288 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': 2762763, 'mtr_portfolio_id': 22435288, 'created_at': datetime.datetime(2025, 4, 25, 14, 48, 59), 'result': '0.05598256966510362', 'result_long': None, 'result_double': None}] Qualite : 0.05598256966510362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22435288 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22435288_25-04-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22435288 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_P22435288_25-04-2025_14_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22435315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22435316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22435317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22435318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22435319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22435320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22435321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22435322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22435323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22435324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22435325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22435326, 'pht': 3726}}" where mtr_portfolio_id = 22435288 and dashboard_run_id = 1757301 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`=22435288 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10106065, 0.05598256966510362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22435288_25-04-2025_14_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22435315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22435316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22435317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22435318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22435319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22435320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22435321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22435322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22435323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22435324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22435325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22435326, '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 = 22436117 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': 2762808, 'mtr_portfolio_id': 22436117, 'created_at': datetime.datetime(2025, 4, 25, 15, 2, 30), 'result': '0.05231415321779242', 'result_long': None, 'result_double': None}] Qualite : 0.05231415321779242 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22436117 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22436117_25-04-2025_15_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22436117 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_P22436117_25-04-2025_15_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22436135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22436136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22436137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22436138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22436139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22436140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22436141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22436142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22436143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22436144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22436145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22436146, 'pht': 3726}}" where mtr_portfolio_id = 22436117 and dashboard_run_id = 1757301 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`=22436117 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10106066, 0.05231415321779242, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22436117_25-04-2025_15_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22436135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22436136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22436137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22436138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22436139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22436140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22436141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22436142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22436143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22436144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22436145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22436146, '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 = 22437036 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': 2762896, 'mtr_portfolio_id': 22437036, 'created_at': datetime.datetime(2025, 4, 25, 15, 6, 59), 'result': '0.08839848062389945', 'result_long': None, 'result_double': None}] Qualite : 0.08839848062389945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22437036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437036_25-04-2025_15_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22437036 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_P22437036_25-04-2025_15_07_00.pdf'}" where mtr_portfolio_id = 22437036 and dashboard_run_id = 1757301 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`=22437036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10106067, 0.08839848062389945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437036_25-04-2025_15_07_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22437065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437076, '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 (22434806,22435288,22436117,22437036) result : ((1353725442,), (1353725467,), (1353725513,), (1353725573,), (1353725940,), (1353725941,), (1353725944,), (1353726391,), (1353726419,), (1353726448,), (1353726478,), (1353726509,), (1353728142,), (1353729517,), (1353729714,), (1353735099,), (1353735140,), (1353735657,), (1353735739,), (1353735816,), (1353736910,), (1353737034,), (1353737167,), (1353737324,), (1353739654,), (1353738924,), (1353739072,), (1353739195,), (1353739334,), (1353739541,), (1353740474,), (1353740643,), (1353740741,), (1353740773,), (1353740825,), (1353740991,), (1353740993,), (1353740996,), (1353741647,), (1353741700,), (1353741755,), (1353741834,), (1353741889,), (1353741936,), (1353742485,), (1353742545,), (1353742596,), (1353742646,), (1353742697,), (1353743328,), (1353743393,), (1353743422,), (1353743429,), (1353744555,), (1353744561,), (1353744563,), (1353744595,), (1353744892,), (1353745167,), (1353746483,), (1353746604,), (1353746759,), (1353747039,), (1353747161,), (1353748219,), (1353748269,), (1353748343,), (1353748434,), (1353748506,), (1353748678,), (1353749636,), (1353749741,), (1353749836,), (1353749925,), (1353750101,), (1353750496,), (1353751503,), (1353751616,), (1353751731,), (1353751862,), (1353753030,), (1353753144,), (1353753247,), (1353753336,), (1353753421,), (1353753527,), (1353754169,), (1353754171,), (1353754174,), (1353754761,), (1353754803,), (1353754833,), (1353755185,), (1353755189,), (1353755192,), (1353755194,), (1353756002,), (1353755601,), (1353755729,), (1353755784,), (1353755879,), (1353755943,), (1353756308,), (1353756336,), (1353756366,), (1353756403,), (1353756656,), (1353756663,), (1353756672,), (1353756717,), (1353756749,), (1353756779,), (1353757179,), (1353757204,), (1353757234,), (1353757263,), (1353757307,), (1353758061,), (1353758165,), (1353758280,), (1353758380,), (1353758488,), (1353758601,), (1353759173,), (1353759249,), (1353759290,), (1353759776,), (1353759800,), (1353759820,), (1353759835,), (1353759862,), (1353759889,), (1353760297,), (1353760330,), (1353760636,), (1353760707,), (1353760769,), (1353760813,), (1353760957,), (1353760959,), (1353760961,), (1353761561,), (1353761620,), (1353761674,), (1353761729,), (1353761786,), (1353761888,), (1353762187,), (1353762226,), (1353762277,), (1353762325,), (1353762830,), (1353762860,), (1353762890,), (1353762923,), (1353762978,), (1353763519,), (1353763575,), (1353763628,), (1353763683,), (1353763734,), (1353764515,), (1353766126,), (1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25042025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22437036]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945] map_info['map_portfolio_photo'] : {22437036: [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945]} final : True mtd_id 4302 list_pids : [1353770680, 1353770629, 1353770570, 1353770523, 1353770038, 1353769988, 1353769937, 1353769887, 1353769837, 1353769782, 1353769260, 1353769242, 1353769214, 1353769165, 1353769124, 1353768526, 1353768480, 1353767872, 1353767659, 1353767504, 1353767419, 1353767338, 1353767251, 1353766033, 1353765945] Looping around the photos to save general results len do output : 1 /22437036Didn'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, '2762896') ('4302', '22437036', '1353770680', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770629', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770570', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770523', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353770038', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769988', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769937', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769887', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769837', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769782', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769260', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769242', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769214', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769165', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353769124', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353768526', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353768480', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767872', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767659', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767504', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767419', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767338', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353767251', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353766033', None, None, None, None, None, '2762896') ('4302', None, None, None, None, None, None, None, '2762896') ('4302', '22437036', '1353765945', None, None, None, None, None, '2762896') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '22437036', 'None', None, None, None, None, '2762896'), ('4302', '22437036', '1353770680', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770629', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770570', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770523', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353770038', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769988', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769937', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769887', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769837', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769782', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769260', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769242', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769214', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769165', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353769124', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353768526', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353768480', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767872', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767659', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767504', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767419', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767338', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353767251', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353766033', None, None, None, None, None, '2762896'), ('4302', '22437036', '1353765945', None, None, None, None, None, '2762896')] time used for this insertion : 0.018552303314208984 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34505796432495117 time spend to save output : 0.018883943557739258 total time spend for step 5 : 0.36394190788269043 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 (2762896) 2.72user 2.26system 0:08.30elapsed 60%CPU (0avgtext+0avgdata 159772maxresident)k 24216inputs+16272outputs (190major+78377minor)pagefaults 0swaps