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 : 1653406 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 (3481009) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3481009) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802632 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3481009'] with mtr_portfolio_ids : ['25802632'] and first list_photo_ids : [] new path : /proc/1653406/ Name: python3 Umask: 0002 State: R (running) Tgid: 1653406 Ngid: 0 Pid: 1653406 PPid: 1653405 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1653406 NSpid: 1653406 NSpgid: 1651202 NSsid: 1651202 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98988 kB VmRSS: 98988 kB RssAnon: 59816 kB RssFile: 39172 kB RssShmem: 0 kB VmData: 865716 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 52 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1653406', 'Ngid': '0', 'Pid': '1653406', 'PPid': '1653405', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1653406', 'NSpid': '1653406', 'NSpgid': '1651202', 'NSsid': '1651202', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98988 kB', 'VmRSS': '98988 kB', 'RssAnon': '59816 kB', 'RssFile': '39172 kB', 'RssShmem': '0 kB', 'VmData': '865716 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '52', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '1653406', '1106964', '0', '1106964', '865716', '98988', b'', 'marlene', '3481009') 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 (25802632) 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 (3481009 ) ) 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 (25802632) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1375798757, 'portfolio_id': 25802632}, {'photo_id': 1375798755, 'portfolio_id': 25802632}, {'photo_id': 1375798753, 'portfolio_id': 25802632}, {'photo_id': 1375798751, 'portfolio_id': 25802632}, {'photo_id': 1375798748, 'portfolio_id': 25802632}, {'photo_id': 1375798737, 'portfolio_id': 25802632}, {'photo_id': 1375798734, 'portfolio_id': 25802632}, {'photo_id': 1375798732, 'portfolio_id': 25802632}, {'photo_id': 1375798730, 'portfolio_id': 25802632}, {'photo_id': 1375798727, 'portfolio_id': 25802632}, {'photo_id': 1375798724, 'portfolio_id': 25802632}, {'photo_id': 1375798719, 'portfolio_id': 25802632}, {'photo_id': 1375798717, 'portfolio_id': 25802632}, {'photo_id': 1375798716, 'portfolio_id': 25802632}, {'photo_id': 1375798713, 'portfolio_id': 25802632}, {'photo_id': 1375798710, 'portfolio_id': 25802632}, {'photo_id': 1375798708, 'portfolio_id': 25802632}, {'photo_id': 1375798696, 'portfolio_id': 25802632}, {'photo_id': 1375798693, 'portfolio_id': 25802632}, {'photo_id': 1375798690, 'portfolio_id': 25802632}, {'photo_id': 1375798687, 'portfolio_id': 25802632}, {'photo_id': 1375798684, 'portfolio_id': 25802632}, {'photo_id': 1375798682, 'portfolio_id': 25802632}, {'photo_id': 1375798668, 'portfolio_id': 25802632}, {'photo_id': 1375798663, 'portfolio_id': 25802632}, {'photo_id': 1375798661, 'portfolio_id': 25802632}, {'photo_id': 1375798656, 'portfolio_id': 25802632}, {'photo_id': 1375798647, 'portfolio_id': 25802632}, {'photo_id': 1375798644, 'portfolio_id': 25802632}, {'photo_id': 1375798631, 'portfolio_id': 25802632}, {'photo_id': 1375798627, 'portfolio_id': 25802632}, {'photo_id': 1375798624, 'portfolio_id': 25802632}, {'photo_id': 1375798622, 'portfolio_id': 25802632}, {'photo_id': 1375798620, 'portfolio_id': 25802632}, {'photo_id': 1375798601, 'portfolio_id': 25802632}, {'photo_id': 1375798597, 'portfolio_id': 25802632}, {'photo_id': 1375798593, 'portfolio_id': 25802632}, {'photo_id': 1375798589, 'portfolio_id': 25802632}, {'photo_id': 1375798586, 'portfolio_id': 25802632}, {'photo_id': 1375798565, 'portfolio_id': 25802632}, {'photo_id': 1375798563, 'portfolio_id': 25802632}, {'photo_id': 1375798561, 'portfolio_id': 25802632}, {'photo_id': 1375798559, 'portfolio_id': 25802632}, {'photo_id': 1375798507, 'portfolio_id': 25802632}, {'photo_id': 1375798490, 'portfolio_id': 25802632}, {'photo_id': 1375798472, 'portfolio_id': 25802632}, {'photo_id': 1375798252, 'portfolio_id': 25802632}, {'photo_id': 1375798249, 'portfolio_id': 25802632}, {'photo_id': 1375798101, 'portfolio_id': 25802632}, {'photo_id': 1375798075, 'portfolio_id': 25802632}, {'photo_id': 1375798052, 'portfolio_id': 25802632}, {'photo_id': 1375798026, 'portfolio_id': 25802632}, {'photo_id': 1375797628, 'portfolio_id': 25802632}] map_portfolio_id_photo_id: {25802632: [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682, 1375798668, 1375798663, 1375798661, 1375798656, 1375798647, 1375798644, 1375798631, 1375798627, 1375798624, 1375798622, 1375798620, 1375798601, 1375798597, 1375798593, 1375798589, 1375798586, 1375798565, 1375798563, 1375798561, 1375798559, 1375798507, 1375798490, 1375798472, 1375798252, 1375798249, 1375798101, 1375798075, 1375798052, 1375798026, 1375797628]} ##### 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.01619887351989746 #### 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 Aug 8 05:14:56 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 (25802632) 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 : 25802632 get user id for portfolio 25802632 get sub ptf for main ptf 25802632, type 3726 and hashtags ['Teint_Dans_La_Masse', 'cartonnette', 'Carton_brun', 'mal_croppe', 'papier', 'metal', 'kraft', 'flou', 'Carton_gris', 'autre_refus', 'plastique', 'environnement'] 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`=25802632 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','Carton_brun','mal_croppe','papier','metal','kraft','flou','Carton_gris','autre_refus','plastique','environnement')) 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`=25802632 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','Carton_brun','mal_croppe','papier','metal','kraft','flou','Carton_gris','autre_refus','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 25802632, 'sub_port_id': 25802634, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388949, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}, 'papier': {'main_port_id': 25802632, 'sub_port_id': 25802635, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388950, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}, 'Carton_brun': {'main_port_id': 25802632, 'sub_port_id': 25802636, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388951, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}, 'plastique': {'main_port_id': 25802632, 'sub_port_id': 25802637, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388952, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}, 'environnement': {'main_port_id': 25802632, 'sub_port_id': 25802638, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388953, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}, 'Carton_gris': {'main_port_id': 25802632, 'sub_port_id': 25802639, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388954, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}, 'autre_refus': {'main_port_id': 25802632, 'sub_port_id': 25802640, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388955, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}, 'kraft': {'main_port_id': 25802632, 'sub_port_id': 25802641, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388956, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}, 'mal_croppe': {'main_port_id': 25802632, 'sub_port_id': 25802642, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388957, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 25802632, 'sub_port_id': 25802643, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388958, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}, 'cartonnette': {'main_port_id': 25802632, 'sub_port_id': 25802644, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388959, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}, 'flou': {'main_port_id': 25802632, 'sub_port_id': 25802645, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388960, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25802634 , 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=25802632 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 (25802634) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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 25802635 , 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=25802632 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 (25802635) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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 25802636 , 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=25802632 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 (25802636) result : ((1375798649,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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 25802637 , 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=25802632 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 (25802637) result : ((1375798554,), (1375798555,), (1375798556,), (1375798557,), (1375798618,), (1375798652,), (1375798653,), (1375798654,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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 25802638 , 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=25802632 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 (25802638) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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 25802639 , 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=25802632 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 (25802639) result : ((1375798616,), (1375798679,), (1375798680,), (1375798681,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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 25802640 , 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=25802632 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 (25802640) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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 25802641 , 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=25802632 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 (25802641) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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 25802642 , 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=25802632 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 (25802642) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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 25802643 , 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=25802632 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 (25802643) result : ((1375798553,), (1375798614,), (1375798615,), (1375798648,), (1375798676,), (1375798677,), (1375798678,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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 25802644 , 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=25802632 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 (25802644) result : ((1375798617,), (1375798743,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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 25802645 , 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=25802632 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 (25802645) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25802632) result : ((1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) 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`=25802632 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','Carton_brun','mal_croppe','papier','metal','kraft','flou','Carton_gris','autre_refus','plastique','environnement')) 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`=25802632 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','Carton_brun','mal_croppe','papier','metal','kraft','flou','Carton_gris','autre_refus','plastique','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 25802632, 'sub_port_id': 25802646, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388961, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}, 'papier': {'main_port_id': 25802632, 'sub_port_id': 25802647, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388962, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}, 'Carton_brun': {'main_port_id': 25802632, 'sub_port_id': 25802648, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388963, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}, 'plastique': {'main_port_id': 25802632, 'sub_port_id': 25802649, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388964, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}, 'environnement': {'main_port_id': 25802632, 'sub_port_id': 25802650, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388965, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}, 'Carton_gris': {'main_port_id': 25802632, 'sub_port_id': 25802651, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388966, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}, 'autre_refus': {'main_port_id': 25802632, 'sub_port_id': 25802652, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388967, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}, 'kraft': {'main_port_id': 25802632, 'sub_port_id': 25802653, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388968, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}, 'mal_croppe': {'main_port_id': 25802632, 'sub_port_id': 25802654, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388969, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25802632, 'sub_port_id': 25802655, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388970, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}, 'cartonnette': {'main_port_id': 25802632, 'sub_port_id': 25802656, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388971, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 6, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}, 'flou': {'main_port_id': 25802632, 'sub_port_id': 25802657, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17388972, 'last_updated_at': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 5, 13), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 5, 6, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802646,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802634 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802647,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802635 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802648,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802636 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802649,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802637 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802650,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802638 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802651,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802639 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802652,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802640 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802653,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802641 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802654,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802642 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802655,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802643 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802656,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802644 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25802657,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25802645 lien utilise dans velours : https://www.fotonower.com/velours/25802646,25802647,25802648,25802649,25802650,25802651,25802652,25802653,25802654,25802655,25802656,25802657?tags=metal,papier,Carton_brun,plastique,environnement,Carton_gris,autre_refus,kraft,mal_croppe,Teint_Dans_La_Masse,cartonnette,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25802632]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682] map_info['map_portfolio_photo'] : {25802632: [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682, 1375798668, 1375798663, 1375798661, 1375798656, 1375798647, 1375798644, 1375798631, 1375798627, 1375798624, 1375798622, 1375798620, 1375798601, 1375798597, 1375798593, 1375798589, 1375798586, 1375798565, 1375798563, 1375798561, 1375798559, 1375798507, 1375798490, 1375798472, 1375798252, 1375798249, 1375798101, 1375798075, 1375798052, 1375798026, 1375797628]} final : False mtd_id 4302 list_pids : [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682] Looping around the photos to save general results len do output : 1 /25802632. 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, '3481009') ('4302', '25802632', '1375798757', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798755', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798753', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798751', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798748', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798737', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798734', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798732', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798730', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798727', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798724', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798719', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798717', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798716', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798713', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798710', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798708', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798696', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798693', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798690', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798687', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798684', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798682', None, None, None, None, None, '3481009') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '25802632', "{'metal': 25802634, 'papier': 25802635, 'Carton_brun': 25802636, 'plastique': 25802637, 'environnement': 25802638, 'Carton_gris': 25802639, 'autre_refus': 25802640, 'kraft': 25802641, 'mal_croppe': 25802642, 'Teint_Dans_La_Masse': 25802643, 'cartonnette': 25802644, 'flou': 25802645}", None, None, None, None, '3481009'), ('4302', '25802632', '1375798757', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798755', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798753', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798751', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798748', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798737', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798734', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798732', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798730', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798727', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798724', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798719', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798717', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798716', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798713', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798710', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798708', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798696', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798693', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798690', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798687', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798684', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798682', None, None, None, None, None, '3481009')] time used for this insertion : 0.4744546413421631 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5610527992248535 time spend to save output : 0.4748194217681885 total time spend for step 1 : 2.035872220993042 step2:final Fri Aug 8 05:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (25802632) 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 25802632 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1375797628,1375798101,1375798075,1375798052,1375798026,1375798252,1375798249,1375798507,1375798490,1375798472,1375798565,1375798563,1375798561,1375798559,1375798601,1375798597,1375798593,1375798589,1375798586,1375798737,1375798631,1375798734,1375798627,1375798624,1375798732,1375798622,1375798668,1375798719,1375798620,1375798663,1375798717,1375798661,1375798716,1375798713,1375798656,1375798710,1375798647,1375798708,1375798644,1375798696,1375798693,1375798690,1375798687,1375798684,1375798682,1375798730,1375798727,1375798724,1375798757,1375798755,1375798753,1375798751,1375798748); 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([25802632]) Inside saveOutput : final : False verbose : True original output for save of step final : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} new output for save of step final : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682] map_info['map_portfolio_photo'] : {25802632: [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682, 1375798668, 1375798663, 1375798661, 1375798656, 1375798647, 1375798644, 1375798631, 1375798627, 1375798624, 1375798622, 1375798620, 1375798601, 1375798597, 1375798593, 1375798589, 1375798586, 1375798565, 1375798563, 1375798561, 1375798559, 1375798507, 1375798490, 1375798472, 1375798252, 1375798249, 1375798101, 1375798075, 1375798052, 1375798026, 1375797628]} final : False mtd_id 4302 list_pids : [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682] Looping around the photos to save general results len do output : 23 /1375798757.Didn't retrieve data . /1375798755.Didn't retrieve data . /1375798753.Didn't retrieve data . /1375798751.Didn't retrieve data . /1375798748.Didn't retrieve data . /1375798737.Didn't retrieve data . /1375798734.Didn't retrieve data . /1375798732.Didn't retrieve data . /1375798730.Didn't retrieve data . /1375798727.Didn't retrieve data . /1375798724.Didn't retrieve data . /1375798719.Didn't retrieve data . /1375798717.Didn't retrieve data . /1375798716.Didn't retrieve data . /1375798713.Didn't retrieve data . /1375798710.Didn't retrieve data . /1375798708.Didn't retrieve data . /1375798696.Didn't retrieve data . /1375798693.Didn't retrieve data . /1375798690.Didn't retrieve data . /1375798687.Didn't retrieve data . /1375798684.Didn't retrieve data . /1375798682.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, '3481009') ('4302', '25802632', '1375798757', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798755', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798753', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798751', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798748', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798737', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798734', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798732', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798730', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798727', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798724', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798719', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798717', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798716', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798713', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798710', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798708', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798696', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798693', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798690', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798687', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798684', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798682', None, None, None, None, None, '3481009') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 69 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', '25802632', '1375798757', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798755', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798753', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798751', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798748', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798737', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798734', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798732', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798730', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798727', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798724', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798719', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798717', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798716', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798713', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798710', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798708', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798696', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798693', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798690', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798687', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798684', '0.0413326942254565', None, None, None, None, '3481009'), ('4302', '25802632', '1375798682', '0.0413326942254565', None, None, None, None, '3481009')] time used for this insertion : 0.0257265567779541 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06681108474731445 time spend to save output : 0.026670217514038086 total time spend for step 2 : 0.09348130226135254 step3:velours_tree Fri Aug 8 05:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {25802632: [{'metal': 25802634, 'papier': 25802635, 'Carton_brun': 25802636, 'plastique': 25802637, 'environnement': 25802638, 'Carton_gris': 25802639, 'autre_refus': 25802640, 'kraft': 25802641, 'mal_croppe': 25802642, 'Teint_Dans_La_Masse': 25802643, 'cartonnette': 25802644, 'flou': 25802645}]} input_args_next_step : {25802632: ()} output_args : {25802632: [{'metal': 25802634, 'papier': 25802635, 'Carton_brun': 25802636, 'plastique': 25802637, 'environnement': 25802638, 'Carton_gris': 25802639, 'autre_refus': 25802640, 'kraft': 25802641, 'mal_croppe': 25802642, 'Teint_Dans_La_Masse': 25802643, 'cartonnette': 25802644, 'flou': 25802645}]} args : 25802632 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 : ({'metal': 25802634, 'papier': 25802635, 'Carton_brun': 25802636, 'plastique': 25802637, 'environnement': 25802638, 'Carton_gris': 25802639, 'autre_refus': 25802640, 'kraft': 25802641, 'mal_croppe': 25802642, 'Teint_Dans_La_Masse': 25802643, 'cartonnette': 25802644, 'flou': 25802645},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25802632) 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([25802632]) 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.27106714248657227 time spend to save output : 4.863739013671875e-05 total time spend for step 3 : 0.271115779876709 step4:send_mail_cod Fri Aug 8 05:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} input_args_next_step : {1375798757: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798757 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798755 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798753 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798751 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798748 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798737 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798734 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798732 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798730 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798727 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798724 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798719 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798717 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798716 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798713 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798710 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798708 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798696 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798693 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798690 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798687 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798684 depend.output_id : 0 input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ()} output_args : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',)} args : 1375798682 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 : {25802632: [{'metal': 25802634, 'papier': 25802635, 'Carton_brun': 25802636, 'plastique': 25802637, 'environnement': 25802638, 'Carton_gris': 25802639, 'autre_refus': 25802640, 'kraft': 25802641, 'mal_croppe': 25802642, 'Teint_Dans_La_Masse': 25802643, 'cartonnette': 25802644, 'flou': 25802645}]} input_args_next_step : {1375798757: ('0.0413326942254565',), 1375798755: ('0.0413326942254565',), 1375798753: ('0.0413326942254565',), 1375798751: ('0.0413326942254565',), 1375798748: ('0.0413326942254565',), 1375798737: ('0.0413326942254565',), 1375798734: ('0.0413326942254565',), 1375798732: ('0.0413326942254565',), 1375798730: ('0.0413326942254565',), 1375798727: ('0.0413326942254565',), 1375798724: ('0.0413326942254565',), 1375798719: ('0.0413326942254565',), 1375798717: ('0.0413326942254565',), 1375798716: ('0.0413326942254565',), 1375798713: ('0.0413326942254565',), 1375798710: ('0.0413326942254565',), 1375798708: ('0.0413326942254565',), 1375798696: ('0.0413326942254565',), 1375798693: ('0.0413326942254565',), 1375798690: ('0.0413326942254565',), 1375798687: ('0.0413326942254565',), 1375798684: ('0.0413326942254565',), 1375798682: ('0.0413326942254565',), 25802632: ()} output_args : {25802632: [{'metal': 25802634, 'papier': 25802635, 'Carton_brun': 25802636, 'plastique': 25802637, 'environnement': 25802638, 'Carton_gris': 25802639, 'autre_refus': 25802640, 'kraft': 25802641, 'mal_croppe': 25802642, 'Teint_Dans_La_Masse': 25802643, 'cartonnette': 25802644, 'flou': 25802645}]} args : 25802632 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 :24, first value : ('0.0413326942254565',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25802632) 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 (1375798757,1375798755,1375798753,1375798751,1375798748,1375798737,1375798734,1375798732,1375798730,1375798727,1375798724,1375798719,1375798717,1375798716,1375798713,1375798710,1375798708,1375798696,1375798693,1375798690,1375798687,1375798684,1375798682) Found this number of photos: 23 ##### Call download_photos : nb_thread : 5 begin to download photo : 1375798682 begin to download photo : 1375798696 begin to download photo : 1375798717 begin to download photo : 1375798732 begin to download photo : 1375798753 download finish for photo 1375798732 begin to download photo : 1375798734 download finish for photo 1375798717 begin to download photo : 1375798719 download finish for photo 1375798696 begin to download photo : 1375798708 download finish for photo 1375798682 begin to download photo : 1375798684 download finish for photo 1375798719 begin to download photo : 1375798724 download finish for photo 1375798734 begin to download photo : 1375798737 download finish for photo 1375798708 begin to download photo : 1375798710 download finish for photo 1375798753 begin to download photo : 1375798755 download finish for photo 1375798684 begin to download photo : 1375798687 download finish for photo 1375798737 begin to download photo : 1375798748 download finish for photo 1375798724 begin to download photo : 1375798727 download finish for photo 1375798710 begin to download photo : 1375798713 download finish for photo 1375798687 begin to download photo : 1375798690 download finish for photo 1375798755 begin to download photo : 1375798757 download finish for photo 1375798727 begin to download photo : 1375798730 download finish for photo 1375798690 begin to download photo : 1375798693 download finish for photo 1375798748 begin to download photo : 1375798751 download finish for photo 1375798757 download finish for photo 1375798713 begin to download photo : 1375798716 download finish for photo 1375798751 download finish for photo 1375798730 download finish for photo 1375798693 download finish for photo 1375798716 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette258026341754622899/ length of list_filenames : 23 ; length of list_pids : 23 ; length of list_args : 23 results_Auto_P25802632_08-08-2025_05_14_59.pdf 25802634 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=25802634 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258026341754622899 25802637 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=25802637 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375798554: '1754622444_2671999_1375798252_98823113a0248385669ad22f6cefb691_rle_crop_3906765198_0.png', 1375798555: '1754622444_2671999_1375798252_98823113a0248385669ad22f6cefb691_rle_crop_3906765201_0.png', 1375798556: '1754622444_2671999_1375798052_cc46f77e5aa929ee436aaa243272bf79_rle_crop_3906765220_0.png', 1375798557: '1754622444_2671999_1375798026_4cf603a1096595a4d03985e81f5859d6_rle_crop_3906765228_0.png', 1375798618: '1754622566_2675409_1375798559_6c2d2d15ee9644a6c31428d2592e5a1a_rle_crop_3906765331_0.png', 1375798652: '1754622637_1642295_1375798507_2a6b5a043a4c968fe07ede45ec368ba2_rle_crop_3906765402_0.png', 1375798653: '1754622637_1642295_1375798249_94c07cfa317f75b5746bda829cb6a389_rle_crop_3906765419_0.png', 1375798654: '1754622637_1642295_1375798249_94c07cfa317f75b5746bda829cb6a389_rle_crop_3906765424_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/af4a7328b57cfa7404d020566f7dd6fa_90867693.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/8b9d9b8c2d5ec9494bc5ecfda6129e6b_92519862.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/18f3064873ad4d01b0ebd762d51d14ae_40469955.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/c3be2b1376c6f21f2f5467ee9b33f2cf_69048404.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/a44eaa8c33755c787566abf264338325_99583238.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/39479f4797c329a3c961f7f3c66f2d65_37436873.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/3c8220a3e64dc1faabc36e4739be5993_32339135.png change filename to text .imagette258026371754622899/ imagette258026371754622899/1754622444_2671999_1375798026_4cf603a1096595a4d03985e81f5859d6_rle_crop_3906765228_0.png.png imagette258026371754622899/1754622444_2671999_1375798252_98823113a0248385669ad22f6cefb691_rle_crop_3906765201_0.png.png imagette258026371754622899/1754622444_2671999_1375798252_98823113a0248385669ad22f6cefb691_rle_crop_3906765198_0.png.png imagette258026371754622899/1754622637_1642295_1375798249_94c07cfa317f75b5746bda829cb6a389_rle_crop_3906765419_0.png.png imagette258026371754622899/1754622444_2671999_1375798052_cc46f77e5aa929ee436aaa243272bf79_rle_crop_3906765220_0.png.png imagette258026371754622899/1754622637_1642295_1375798249_94c07cfa317f75b5746bda829cb6a389_rle_crop_3906765424_0.png.png imagette258026371754622899/1754622566_2675409_1375798559_6c2d2d15ee9644a6c31428d2592e5a1a_rle_crop_3906765331_0.png.png imagette258026371754622899/1754622637_1642295_1375798507_2a6b5a043a4c968fe07ede45ec368ba2_rle_crop_3906765402_0.png.png imagette258026401754622899/ imagette258026411754622899/ imagette258026421754622899/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/8f5df60dca043597fa13ac6b59ab3e60_76534621.png imagette258026371754622899 25802640 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=25802640 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258026401754622899 25802641 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=25802641 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258026411754622899 25802642 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=25802642 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258026421754622899 25802644 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=25802644 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375798617: '1754622566_2675409_1375798559_6c2d2d15ee9644a6c31428d2592e5a1a_rle_crop_3906765326_0.png', 1375798743: '1754622807_2683447_1375798656_84f0978e2e873eb2bc84a638b2951443_rle_crop_3906765593_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/10c7063ad0343fb8c8a0ada2b95a49cd_31673855.png change filename to text .imagette258026441754622899/ imagette258026441754622899/1754622807_2683447_1375798656_84f0978e2e873eb2bc84a638b2951443_rle_crop_3906765593_0.png.png imagette258026441754622899/1754622566_2675409_1375798559_6c2d2d15ee9644a6c31428d2592e5a1a_rle_crop_3906765326_0.png.png imagette258026451754622900/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/7f545c2b828fa377618b2c5a117ec25e_94710964.png imagette258026441754622899 25802645 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=25802645 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258026451754622900 25802636 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=25802636 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375798649: '1754622637_1642295_1375798507_2a6b5a043a4c968fe07ede45ec368ba2_rle_crop_3906765400_0.png'} change filename to text .imagette258026361754622900/ imagette258026361754622900/1754622637_1642295_1375798507_2a6b5a043a4c968fe07ede45ec368ba2_rle_crop_3906765400_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/d6536493f8f2006ec6e40b41e0f5a179_21832498.png imagette258026361754622900 25802639 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=25802639 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375798616: '1754622566_2675409_1375798561_e8cf21c8c172a13485df5c089eef3f6f_rle_crop_3906765313_0.png', 1375798679: '1754622687_2678949_1375798597_436dc99c43cd4895e586f73737e88bdb_rle_crop_3906765500_0.png', 1375798680: '1754622687_2678949_1375798597_436dc99c43cd4895e586f73737e88bdb_rle_crop_3906765501_0.png', 1375798681: '1754622687_2678949_1375798589_c7de48e91adaad17e81ae384086b4a7b_rle_crop_3906765526_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/9c9a9397059a18bb461543697995f61c_64350669.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/b99e24ba93ee009b9af09cf3034531d5_15490162.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/1eb0a1ed9f4e9e166607d1f24feaa5b5_13416398.png change filename to text .imagette258026391754622900/ imagette258026391754622900/1754622687_2678949_1375798597_436dc99c43cd4895e586f73737e88bdb_rle_crop_3906765501_0.png.png imagette258026391754622900/1754622687_2678949_1375798589_c7de48e91adaad17e81ae384086b4a7b_rle_crop_3906765526_0.png.png imagette258026391754622900/1754622687_2678949_1375798597_436dc99c43cd4895e586f73737e88bdb_rle_crop_3906765500_0.png.png imagette258026391754622900/1754622566_2675409_1375798561_e8cf21c8c172a13485df5c089eef3f6f_rle_crop_3906765313_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/c886cbedce12c9732e22b5c79e7c13fb_67292590.png imagette258026391754622900 25802643 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=25802643 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375798553: '1754622444_2671999_1375798252_98823113a0248385669ad22f6cefb691_rle_crop_3906765202_0.png', 1375798614: '1754622566_2675409_1375798561_e8cf21c8c172a13485df5c089eef3f6f_rle_crop_3906765314_0.png', 1375798615: '1754622566_2675409_1375798559_6c2d2d15ee9644a6c31428d2592e5a1a_rle_crop_3906765328_0.png', 1375798648: '1754622637_1642295_1375798507_2a6b5a043a4c968fe07ede45ec368ba2_rle_crop_3906765404_0.png', 1375798676: '1754622687_2678949_1375798597_436dc99c43cd4895e586f73737e88bdb_rle_crop_3906765507_0.png', 1375798677: '1754622687_2678949_1375798597_436dc99c43cd4895e586f73737e88bdb_rle_crop_3906765506_0.png', 1375798678: '1754622687_2678949_1375798593_c7d0cc76e522fdc2d246e56d5ab23cb9_rle_crop_3906765514_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/7d9de326413efb586aa6c7996c7ea3f1_92184175.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/2c8f37552840611e60f607dd1ff4bbfa_40897837.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/f927c682f73dc4125a50872e6042653e_55121228.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/3fd287be8dbb525aacd25301eba2db1b_72699046.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/3395c87d98b370625e7cd2f22f48f0cb_64368009.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/6713f991c0752e5c85fa45ea32205d88_35186120.png change filename to text .imagette258026431754622900/ imagette258026431754622900/1754622444_2671999_1375798252_98823113a0248385669ad22f6cefb691_rle_crop_3906765202_0.png.png imagette258026431754622900/1754622566_2675409_1375798559_6c2d2d15ee9644a6c31428d2592e5a1a_rle_crop_3906765328_0.png.png imagette258026431754622900/1754622637_1642295_1375798507_2a6b5a043a4c968fe07ede45ec368ba2_rle_crop_3906765404_0.png.png imagette258026431754622900/1754622566_2675409_1375798561_e8cf21c8c172a13485df5c089eef3f6f_rle_crop_3906765314_0.png.png imagette258026431754622900/1754622687_2678949_1375798593_c7d0cc76e522fdc2d246e56d5ab23cb9_rle_crop_3906765514_0.png.png imagette258026431754622900/1754622687_2678949_1375798597_436dc99c43cd4895e586f73737e88bdb_rle_crop_3906765506_0.png.png imagette258026431754622900/1754622687_2678949_1375798597_436dc99c43cd4895e586f73737e88bdb_rle_crop_3906765507_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/d70e2a891c0e229a435d305c9ab72fe9_7024270.png imagette258026431754622900 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25802632 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25802646,25802647,25802648,25802649,25802650,25802651,25802652,25802653,25802654,25802655,25802656,25802657?tags=metal,papier,Carton_brun,plastique,environnement,Carton_gris,autre_refus,kraft,mal_croppe,Teint_Dans_La_Masse,cartonnette,flou your option no_mail is active, we will not send the real mail to your client args[1375798757] : ('0.0413326942254565',) no score found for photo 1375798757 We are sending mail with results at report@fotonower.com args[1375798755] : ('0.0413326942254565',) no score found for photo 1375798755 We are sending mail with results at report@fotonower.com args[1375798753] : ('0.0413326942254565',) no score found for photo 1375798753 We are sending mail with results at report@fotonower.com args[1375798751] : ('0.0413326942254565',) no score found for photo 1375798751 We are sending mail with results at report@fotonower.com args[1375798748] : ('0.0413326942254565',) no score found for photo 1375798748 We are sending mail with results at report@fotonower.com args[1375798737] : ('0.0413326942254565',) no score found for photo 1375798737 We are sending mail with results at report@fotonower.com args[1375798734] : ('0.0413326942254565',) no score found for photo 1375798734 We are sending mail with results at report@fotonower.com args[1375798732] : ('0.0413326942254565',) no score found for photo 1375798732 We are sending mail with results at report@fotonower.com args[1375798730] : ('0.0413326942254565',) no score found for photo 1375798730 We are sending mail with results at report@fotonower.com args[1375798727] : ('0.0413326942254565',) no score found for photo 1375798727 We are sending mail with results at report@fotonower.com args[1375798724] : ('0.0413326942254565',) no score found for photo 1375798724 We are sending mail with results at report@fotonower.com args[1375798719] : ('0.0413326942254565',) no score found for photo 1375798719 We are sending mail with results at report@fotonower.com args[1375798717] : ('0.0413326942254565',) no score found for photo 1375798717 We are sending mail with results at report@fotonower.com args[1375798716] : ('0.0413326942254565',) no score found for photo 1375798716 We are sending mail with results at report@fotonower.com args[1375798713] : ('0.0413326942254565',) no score found for photo 1375798713 We are sending mail with results at report@fotonower.com args[1375798710] : ('0.0413326942254565',) no score found for photo 1375798710 We are sending mail with results at report@fotonower.com args[1375798708] : ('0.0413326942254565',) no score found for photo 1375798708 We are sending mail with results at report@fotonower.com args[1375798696] : ('0.0413326942254565',) no score found for photo 1375798696 We are sending mail with results at report@fotonower.com args[1375798693] : ('0.0413326942254565',) no score found for photo 1375798693 We are sending mail with results at report@fotonower.com args[1375798690] : ('0.0413326942254565',) no score found for photo 1375798690 We are sending mail with results at report@fotonower.com args[1375798687] : ('0.0413326942254565',) no score found for photo 1375798687 We are sending mail with results at report@fotonower.com args[1375798684] : ('0.0413326942254565',) no score found for photo 1375798684 We are sending mail with results at report@fotonower.com args[1375798682] : ('0.0413326942254565',) no score found for photo 1375798682 We are sending mail with results at report@fotonower.com refus_total : 0.0413326942254565 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=25802632 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_P25802632_08-08-2025_05_14_59.pdf results_Auto_P25802632_08-08-2025_05_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802632_08-08-2025_05_14_59.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','25802632','results_Auto_P25802632_08-08-2025_05_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802632_08-08-2025_05_14_59.pdf','pdf','','0.24','0.0413326942254565') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25802632]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682] map_info['map_portfolio_photo'] : {25802632: [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682, 1375798668, 1375798663, 1375798661, 1375798656, 1375798647, 1375798644, 1375798631, 1375798627, 1375798624, 1375798622, 1375798620, 1375798601, 1375798597, 1375798593, 1375798589, 1375798586, 1375798565, 1375798563, 1375798561, 1375798559, 1375798507, 1375798490, 1375798472, 1375798252, 1375798249, 1375798101, 1375798075, 1375798052, 1375798026, 1375797628]} final : False mtd_id 4302 list_pids : [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682] 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, '3481009') ('4302', '25802632', '1375798757', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798755', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798753', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798751', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798748', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798737', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798734', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798732', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798730', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798727', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798724', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798719', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798717', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798716', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798713', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798710', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798708', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798696', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798693', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798690', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798687', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798684', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798682', None, None, None, None, None, '3481009') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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', '25802632', '1375798757', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798755', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798753', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798751', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798748', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798737', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798734', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798732', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798730', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798727', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798724', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798719', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798717', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798716', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798713', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798710', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798708', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798696', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798693', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798690', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798687', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798684', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798682', None, None, None, None, None, '3481009')] time used for this insertion : 0.176285982131958 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.335281133651733 time spend to save output : 0.17659735679626465 total time spend for step 4 : 6.511878490447998 step5:split_time_score Fri Aug 8 05:15:05 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 : ['25802632'] 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 : [('25802632',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25802632) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1375798753: {'path': 'temp/1754622898_1653406_1375798753_9ca7376c70d0bc0b033bca90334f5acc.jpg', 'extension': 'jpg'}, 1375798755: {'path': 'temp/1754622898_1653406_1375798755_9a59f421f850fdcc15f95afe06c1b7be.jpg', 'extension': 'jpg'}, 1375798757: {'path': 'temp/1754622898_1653406_1375798757_544966bc37c6df6cc6a0029617c73f95.jpg', 'extension': 'jpg'}, 1375798732: {'path': 'temp/1754622898_1653406_1375798732_b95992e79a05e03dc52a4243c94b9aef.jpg', 'extension': 'jpg'}, 1375798734: {'path': 'temp/1754622898_1653406_1375798734_9d9a3f252b7bfa2644e468284302b9bc.jpg', 'extension': 'jpg'}, 1375798737: {'path': 'temp/1754622898_1653406_1375798737_ca0eafdb7a7d04312dbacf5f07cb8bb1.jpg', 'extension': 'jpg'}, 1375798748: {'path': 'temp/1754622898_1653406_1375798748_b30a4a6533b09ff6432aa008b5e93c90.jpg', 'extension': 'jpg'}, 1375798751: {'path': 'temp/1754622898_1653406_1375798751_7c300a21a613e0c5325b322557a9d972.jpg', 'extension': 'jpg'}, 1375798717: {'path': 'temp/1754622898_1653406_1375798717_68c0e3f1ece18082b4a200cfa7d50903.jpg', 'extension': 'jpg'}, 1375798719: {'path': 'temp/1754622898_1653406_1375798719_e777bae8d6712e48e849d90ed5ad4da7.jpg', 'extension': 'jpg'}, 1375798724: {'path': 'temp/1754622898_1653406_1375798724_bcacd9fd2873c3ba6df7571286f93692.jpg', 'extension': 'jpg'}, 1375798727: {'path': 'temp/1754622898_1653406_1375798727_dc28930edc3d5133f3ae84532a1ed18c.jpg', 'extension': 'jpg'}, 1375798730: {'path': 'temp/1754622898_1653406_1375798730_5e271d0c05c715da7e26fade9ff9980c.jpg', 'extension': 'jpg'}, 1375798682: {'path': 'temp/1754622898_1653406_1375798682_cba751786ff42b614bd34ada8c45a08e.jpg', 'extension': 'jpg'}, 1375798684: {'path': 'temp/1754622898_1653406_1375798684_fedf9831b49a4761ce57653b0590b4a8.jpg', 'extension': 'jpg'}, 1375798687: {'path': 'temp/1754622898_1653406_1375798687_806f6ccee6acfe71f368cfe5267c40f7.jpg', 'extension': 'jpg'}, 1375798690: {'path': 'temp/1754622898_1653406_1375798690_c8317aacf24a180e8443d9fb50cd0f52.jpg', 'extension': 'jpg'}, 1375798693: {'path': 'temp/1754622898_1653406_1375798693_d307c1de9a5b8959c732e88f492f5d5b.jpg', 'extension': 'jpg'}, 1375798696: {'path': 'temp/1754622898_1653406_1375798696_05b634d079f446cf9350026fa3d5b1d6.jpg', 'extension': 'jpg'}, 1375798708: {'path': 'temp/1754622898_1653406_1375798708_23b17931c9ac24233a43ac1ac95db909.jpg', 'extension': 'jpg'}, 1375798710: {'path': 'temp/1754622898_1653406_1375798710_c3fa5a118b1aacaaa69d9aa07cb91305.jpg', 'extension': 'jpg'}, 1375798713: {'path': 'temp/1754622898_1653406_1375798713_b74ca4d9d478494542534c3551055011.jpg', 'extension': 'jpg'}, 1375798716: {'path': 'temp/1754622898_1653406_1375798716_b0c87604a02e27ec08e901659106ec41.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 = 25802632; (('arc_en_ciel_jrm_live',), ('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 = 25802632 group by h (('05', 53),) 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=25802632 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 (25802632) 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 (25802632) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08082025 25802632 Nombre de photos uploadées : 53 / 23040 (0%) 08082025 25802632 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 08082025 25802632 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1375797628, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/77d2c45d2e761535a95b3a1c7c20ca62.jpg', 'username': None, 'uploaded_at': 1754622247, 'text': 'image_08082025_05_02_54_10138.jpg'}, {'photo_id': 1375798101, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/5d03481ec3f86f09859c76556e7e4127.jpg', 'username': None, 'uploaded_at': 1754622312, 'text': 'image_08082025_05_03_04_10150.jpg'}, {'photo_id': 1375798075, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/32ab179cf60c4b396213e30476d0777e.jpg', 'username': None, 'uploaded_at': 1754622312, 'text': 'image_08082025_05_04_04_010148m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1375798052, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/cc46f77e5aa929ee436aaa243272bf79.jpg', 'username': None, 'uploaded_at': 1754622312, 'text': 'image_08082025_05_04_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002315044403076172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25802632, '2025-08-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-08' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2085247,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20432066917419434 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= 2085247 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25799827, 'dashboard_result_id': 13768084, '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_P25799827_08-08-2025_00_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799839, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25799927, 'dashboard_result_id': 13768085, '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_P25799927_08-08-2025_00_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799958, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25800110, 'dashboard_result_id': 13768086, '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_P25800110_08-08-2025_00_47_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25800112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800123, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25800322, 'dashboard_result_id': 13768087, '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_P25800322_08-08-2025_01_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800334, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25800662, 'dashboard_result_id': 13768088, '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_P25800662_08-08-2025_01_49_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800675, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25800775, 'dashboard_result_id': 13768089, '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_P25800775_08-08-2025_02_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25800776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800787, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25801008, 'dashboard_result_id': 13768090, '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_P25801008_08-08-2025_02_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801023, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25801368, 'dashboard_result_id': 13768091, '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_P25801368_08-08-2025_02_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801381, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25801481, 'dashboard_result_id': 13768092, '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_P25801481_08-08-2025_02_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801494, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25801571, 'dashboard_result_id': 13768093, '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_P25801571_08-08-2025_03_02_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801583, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25801970, 'dashboard_result_id': 13768094, '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_P25801970_08-08-2025_03_36_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801982, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25802109, 'dashboard_result_id': 13768095, '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_P25802109_08-08-2025_04_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802123, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2093734, 'mtr_portfolio_id': 25802632, 'dashboard_result_id': 13768096, '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_P25802632_08-08-2025_05_10_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25802634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802645, 'pht': 3726}}"}] 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 = 25799827 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': 3480390, 'mtr_portfolio_id': 25799827, 'created_at': datetime.datetime(2025, 8, 8, 0, 16, 31), 'result': '0.09979469037252053', 'result_long': None, 'result_double': None}] Qualite : 0.09979469037252053 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25799827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799827_08-08-2025_00_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25799827 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_P25799827_08-08-2025_00_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799839, 'pht': 3726}}" where mtr_portfolio_id = 25799827 and dashboard_run_id = 2093734 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`=25799827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768084, 0.09979469037252053, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799827_08-08-2025_00_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799839, '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 = 25799927 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': 3480403, 'mtr_portfolio_id': 25799927, 'created_at': datetime.datetime(2025, 8, 8, 0, 32, 57), 'result': '0.059587379092336044', 'result_long': None, 'result_double': None}] Qualite : 0.059587379092336044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25799927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799927_08-08-2025_00_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25799927 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_P25799927_08-08-2025_00_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799958, 'pht': 3726}}" where mtr_portfolio_id = 25799927 and dashboard_run_id = 2093734 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`=25799927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768085, 0.059587379092336044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799927_08-08-2025_00_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799958, '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 = 25800110 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': 3480435, 'mtr_portfolio_id': 25800110, 'created_at': datetime.datetime(2025, 8, 8, 0, 47), 'result': '0.1798647083655333', 'result_long': None, 'result_double': None}] Qualite : 0.1798647083655333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800110_08-08-2025_00_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800110 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_P25800110_08-08-2025_00_47_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25800112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800123, 'pht': 3726}}" where mtr_portfolio_id = 25800110 and dashboard_run_id = 2093734 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`=25800110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768086, 0.1798647083655333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800110_08-08-2025_00_47_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25800112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800123, '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 = 25800322 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': 3480474, 'mtr_portfolio_id': 25800322, 'created_at': datetime.datetime(2025, 8, 8, 1, 32, 58), 'result': '0.12666235646319696', 'result_long': None, 'result_double': None}] Qualite : 0.12666235646319696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800322 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800322_08-08-2025_01_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800322 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_P25800322_08-08-2025_01_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800334, 'pht': 3726}}" where mtr_portfolio_id = 25800322 and dashboard_run_id = 2093734 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`=25800322 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768087, 0.12666235646319696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800322_08-08-2025_01_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800334, '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 = 25800662 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': 3480562, 'mtr_portfolio_id': 25800662, 'created_at': datetime.datetime(2025, 8, 8, 1, 49), 'result': '0.042249612763709726', 'result_long': None, 'result_double': None}] Qualite : 0.042249612763709726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800662_08-08-2025_01_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800662 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_P25800662_08-08-2025_01_49_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800675, 'pht': 3726}}" where mtr_portfolio_id = 25800662 and dashboard_run_id = 2093734 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`=25800662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768088, 0.042249612763709726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800662_08-08-2025_01_49_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800675, '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 = 25800775 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': 3480587, 'mtr_portfolio_id': 25800775, 'created_at': datetime.datetime(2025, 8, 8, 2, 4, 59), 'result': '0.035763394118270876', 'result_long': None, 'result_double': None}] Qualite : 0.035763394118270876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800775_08-08-2025_02_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800775 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_P25800775_08-08-2025_02_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25800776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800787, 'pht': 3726}}" where mtr_portfolio_id = 25800775 and dashboard_run_id = 2093734 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`=25800775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768089, 0.035763394118270876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800775_08-08-2025_02_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25800776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800787, '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 = 25801008 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': 3480648, 'mtr_portfolio_id': 25801008, 'created_at': datetime.datetime(2025, 8, 8, 2, 16, 58), 'result': '0.0623854119578064', 'result_long': None, 'result_double': None}] Qualite : 0.0623854119578064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801008_08-08-2025_02_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801008 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_P25801008_08-08-2025_02_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801023, 'pht': 3726}}" where mtr_portfolio_id = 25801008 and dashboard_run_id = 2093734 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`=25801008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768090, 0.0623854119578064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801008_08-08-2025_02_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801023, '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 = 25801368 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': 3480678, 'mtr_portfolio_id': 25801368, 'created_at': datetime.datetime(2025, 8, 8, 2, 34, 59), 'result': '0.058163930809467225', 'result_long': None, 'result_double': None}] Qualite : 0.058163930809467225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801368_08-08-2025_02_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801368 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_P25801368_08-08-2025_02_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801381, 'pht': 3726}}" where mtr_portfolio_id = 25801368 and dashboard_run_id = 2093734 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`=25801368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768091, 0.058163930809467225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801368_08-08-2025_02_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801381, '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 = 25801481 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': 3480706, 'mtr_portfolio_id': 25801481, 'created_at': datetime.datetime(2025, 8, 8, 2, 50, 31), 'result': '0.19000420461687445', 'result_long': None, 'result_double': None}] Qualite : 0.19000420461687445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801481_08-08-2025_02_50_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801481 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_P25801481_08-08-2025_02_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801494, 'pht': 3726}}" where mtr_portfolio_id = 25801481 and dashboard_run_id = 2093734 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`=25801481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768092, 0.19000420461687445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801481_08-08-2025_02_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801494, '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 = 25801571 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': 3480734, 'mtr_portfolio_id': 25801571, 'created_at': datetime.datetime(2025, 8, 8, 3, 2, 29), 'result': '0.03534131412552654', 'result_long': None, 'result_double': None}] Qualite : 0.03534131412552654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801571_08-08-2025_03_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801571 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_P25801571_08-08-2025_03_02_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801583, 'pht': 3726}}" where mtr_portfolio_id = 25801571 and dashboard_run_id = 2093734 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`=25801571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768093, 0.03534131412552654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801571_08-08-2025_03_02_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801583, '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 = 25801970 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': 3480811, 'mtr_portfolio_id': 25801970, 'created_at': datetime.datetime(2025, 8, 8, 3, 36, 58), 'result': '0.07121941165480151', 'result_long': None, 'result_double': None}] Qualite : 0.07121941165480151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801970 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801970_08-08-2025_03_36_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801970 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_P25801970_08-08-2025_03_36_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801982, 'pht': 3726}}" where mtr_portfolio_id = 25801970 and dashboard_run_id = 2093734 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`=25801970 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768094, 0.07121941165480151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801970_08-08-2025_03_36_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801982, '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 = 25802109 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': 3480855, 'mtr_portfolio_id': 25802109, 'created_at': datetime.datetime(2025, 8, 8, 4, 5), 'result': '0.07652594118949221', 'result_long': None, 'result_double': None}] Qualite : 0.07652594118949221 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25802109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802109_08-08-2025_04_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25802109 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_P25802109_08-08-2025_04_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802123, 'pht': 3726}}" where mtr_portfolio_id = 25802109 and dashboard_run_id = 2093734 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`=25802109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768095, 0.07652594118949221, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802109_08-08-2025_04_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802123, '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 = 25802632 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': 3481009, 'mtr_portfolio_id': 25802632, 'created_at': datetime.datetime(2025, 8, 8, 5, 14, 58), 'result': '0.0413326942254565', 'result_long': None, 'result_double': None}] Qualite : 0.0413326942254565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25802632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802632_08-08-2025_05_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25802632 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_P25802632_08-08-2025_05_14_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25802634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802645, 'pht': 3726}}" where mtr_portfolio_id = 25802632 and dashboard_run_id = 2093737 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`=25802632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13768096, 0.0413326942254565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802632_08-08-2025_05_14_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25802634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802645, '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 (25799827,25799927,25800110,25800322,25800662,25800775,25801008,25801368,25801481,25801571,25801970,25802109,25802632) result : ((1375774972,), (1375774992,), (1375775015,), (1375775058,), (1375775136,), (1375775191,), (1375775202,), (1375775411,), (1375775410,), (1375775461,), (1375775462,), (1375775578,), (1375775637,), (1375775667,), (1375775864,), (1375775889,), (1375775890,), (1375775904,), (1375775947,), (1375775975,), (1375775977,), (1375776093,), (1375776090,), (1375776092,), (1375776222,), (1375776273,), (1375776302,), (1375776434,), (1375776499,), (1375776501,), (1375776516,), (1375776518,), (1375776523,), (1375776543,), (1375776546,), (1375776570,), (1375776591,), (1375776593,), (1375776618,), (1375776646,), (1375776694,), (1375776696,), (1375776754,), (1375776815,), (1375776853,), (1375776877,), (1375776909,), (1375776910,), (1375776977,), (1375776978,), (1375781039,), (1375781057,), (1375781145,), (1375781147,), (1375781162,), (1375781252,), (1375781275,), (1375781294,), (1375781316,), (1375781318,), (1375781382,), (1375781408,), (1375781412,), (1375781453,), (1375781514,), (1375781516,), (1375781541,), (1375781542,), (1375781568,), (1375781582,), (1375781583,), (1375781675,), (1375781676,), (1375781724,), (1375781745,), (1375781748,), (1375781774,), (1375781776,), (1375781835,), (1375782143,), (1375782856,), (1375782880,), (1375785041,), (1375785066,), (1375786986,), (1375786987,), (1375787002,), (1375787025,), (1375787026,), (1375787093,), (1375787112,), (1375787217,), (1375787236,), (1375787238,), (1375787242,), (1375787343,), (1375787387,), (1375787433,), (1375787498,), (1375787517,), (1375787538,), (1375787575,), (1375787578,), (1375787581,), (1375787721,), (1375787722,), (1375787742,), (1375787743,), (1375787794,), (1375787913,), (1375787953,), (1375787954,), (1375787980,), (1375787981,), (1375787983,), (1375787988,), (1375788008,), (1375788010,), (1375788083,), (1375788154,), (1375788549,), (1375789049,), (1375791171,), (1375791189,), (1375791222,), (1375791224,), (1375791268,), (1375791314,), (1375791357,), (1375791359,), (1375791539,), (1375791822,), (1375791825,), (1375791837,), (1375791838,), (1375791840,), (1375791895,), (1375791924,), (1375791941,), (1375791969,), (1375791996,), (1375792021,), (1375792048,), (1375792959,), (1375793540,), (1375794182,), (1375794555,), (1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08082025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25802632]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682] map_info['map_portfolio_photo'] : {25802632: [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682, 1375798668, 1375798663, 1375798661, 1375798656, 1375798647, 1375798644, 1375798631, 1375798627, 1375798624, 1375798622, 1375798620, 1375798601, 1375798597, 1375798593, 1375798589, 1375798586, 1375798565, 1375798563, 1375798561, 1375798559, 1375798507, 1375798490, 1375798472, 1375798252, 1375798249, 1375798101, 1375798075, 1375798052, 1375798026, 1375797628]} final : True mtd_id 4302 list_pids : [1375798757, 1375798755, 1375798753, 1375798751, 1375798748, 1375798737, 1375798734, 1375798732, 1375798730, 1375798727, 1375798724, 1375798719, 1375798717, 1375798716, 1375798713, 1375798710, 1375798708, 1375798696, 1375798693, 1375798690, 1375798687, 1375798684, 1375798682] Looping around the photos to save general results len do output : 1 /25802632Didn'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, '3481009') ('4302', '25802632', '1375798757', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798755', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798753', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798751', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798748', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798737', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798734', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798732', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798730', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798727', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798724', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798719', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798717', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798716', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798713', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798710', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798708', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798696', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798693', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798690', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798687', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798684', None, None, None, None, None, '3481009') ('4302', None, None, None, None, None, None, None, '3481009') ('4302', '25802632', '1375798682', None, None, None, None, None, '3481009') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '25802632', 'None', None, None, None, None, '3481009'), ('4302', '25802632', '1375798757', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798755', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798753', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798751', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798748', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798737', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798734', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798732', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798730', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798727', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798724', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798719', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798717', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798716', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798713', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798710', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798708', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798696', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798693', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798690', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798687', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798684', None, None, None, None, None, '3481009'), ('4302', '25802632', '1375798682', None, None, None, None, None, '3481009')] time used for this insertion : 0.019879817962646484 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3665406703948975 time spend to save output : 0.02017354965209961 total time spend for step 5 : 1.386714220046997 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 (3481009) 2.23user 2.63system 0:11.64elapsed 41%CPU (0avgtext+0avgdata 167600maxresident)k 24inputs+15552outputs (0major+76820minor)pagefaults 0swaps