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 : 3597984 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 (2801080) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2801080) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751196 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2801080'] with mtr_portfolio_ids : ['22751196'] and first list_photo_ids : [] new path : /proc/3597984/ Name: python3 Umask: 0002 State: R (running) Tgid: 3597984 Ngid: 0 Pid: 3597984 PPid: 3597983 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3597984 NSpid: 3597984 NSpgid: 3596112 NSsid: 3596112 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98996 kB VmRSS: 98996 kB RssAnon: 60192 kB RssFile: 38804 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3597984', 'Ngid': '0', 'Pid': '3597984', 'PPid': '3597983', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3597984', 'NSpid': '3597984', 'NSpgid': '3596112', 'NSsid': '3596112', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98996 kB', 'VmRSS': '98996 kB', 'RssAnon': '60192 kB', 'RssFile': '38804 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '3597984', '1107228', '0', '1107228', '865976', '98996', b'', 'marlene', '2801080') 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 (22751196) 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 (2801080 ) ) 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 (22751196) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1356610522, 'portfolio_id': 22751196}, {'photo_id': 1356610520, 'portfolio_id': 22751196}, {'photo_id': 1356610518, 'portfolio_id': 22751196}, {'photo_id': 1356610516, 'portfolio_id': 22751196}, {'photo_id': 1356610498, 'portfolio_id': 22751196}, {'photo_id': 1356610496, 'portfolio_id': 22751196}, {'photo_id': 1356610493, 'portfolio_id': 22751196}, {'photo_id': 1356610490, 'portfolio_id': 22751196}, {'photo_id': 1356610488, 'portfolio_id': 22751196}, {'photo_id': 1356610486, 'portfolio_id': 22751196}, {'photo_id': 1356610459, 'portfolio_id': 22751196}, {'photo_id': 1356610457, 'portfolio_id': 22751196}, {'photo_id': 1356610456, 'portfolio_id': 22751196}, {'photo_id': 1356610455, 'portfolio_id': 22751196}, {'photo_id': 1356610390, 'portfolio_id': 22751196}, {'photo_id': 1356610388, 'portfolio_id': 22751196}, {'photo_id': 1356610386, 'portfolio_id': 22751196}, {'photo_id': 1356610385, 'portfolio_id': 22751196}, {'photo_id': 1356610384, 'portfolio_id': 22751196}, {'photo_id': 1356610352, 'portfolio_id': 22751196}, {'photo_id': 1356610351, 'portfolio_id': 22751196}, {'photo_id': 1356610349, 'portfolio_id': 22751196}, {'photo_id': 1356610348, 'portfolio_id': 22751196}, {'photo_id': 1356610347, 'portfolio_id': 22751196}, {'photo_id': 1356610346, 'portfolio_id': 22751196}, {'photo_id': 1356610243, 'portfolio_id': 22751196}, {'photo_id': 1356610222, 'portfolio_id': 22751196}, {'photo_id': 1356610205, 'portfolio_id': 22751196}, {'photo_id': 1356610203, 'portfolio_id': 22751196}, {'photo_id': 1356610012, 'portfolio_id': 22751196}, {'photo_id': 1356609986, 'portfolio_id': 22751196}, {'photo_id': 1356609960, 'portfolio_id': 22751196}, {'photo_id': 1356609957, 'portfolio_id': 22751196}, {'photo_id': 1356609956, 'portfolio_id': 22751196}, {'photo_id': 1356609955, 'portfolio_id': 22751196}, {'photo_id': 1356609917, 'portfolio_id': 22751196}, {'photo_id': 1356609916, 'portfolio_id': 22751196}, {'photo_id': 1356609915, 'portfolio_id': 22751196}, {'photo_id': 1356609913, 'portfolio_id': 22751196}, {'photo_id': 1356609875, 'portfolio_id': 22751196}, {'photo_id': 1356609873, 'portfolio_id': 22751196}, {'photo_id': 1356609871, 'portfolio_id': 22751196}, {'photo_id': 1356609869, 'portfolio_id': 22751196}, {'photo_id': 1356609865, 'portfolio_id': 22751196}, {'photo_id': 1356609855, 'portfolio_id': 22751196}, {'photo_id': 1356609841, 'portfolio_id': 22751196}, {'photo_id': 1356609839, 'portfolio_id': 22751196}, {'photo_id': 1356609836, 'portfolio_id': 22751196}, {'photo_id': 1356609831, 'portfolio_id': 22751196}, {'photo_id': 1356609825, 'portfolio_id': 22751196}, {'photo_id': 1356609804, 'portfolio_id': 22751196}, {'photo_id': 1356609796, 'portfolio_id': 22751196}, {'photo_id': 1356609795, 'portfolio_id': 22751196}, {'photo_id': 1356609791, 'portfolio_id': 22751196}, {'photo_id': 1356609789, 'portfolio_id': 22751196}, {'photo_id': 1356609771, 'portfolio_id': 22751196}, {'photo_id': 1356609767, 'portfolio_id': 22751196}, {'photo_id': 1356609765, 'portfolio_id': 22751196}, {'photo_id': 1356609763, 'portfolio_id': 22751196}, {'photo_id': 1356609761, 'portfolio_id': 22751196}, {'photo_id': 1356609759, 'portfolio_id': 22751196}, {'photo_id': 1356609736, 'portfolio_id': 22751196}, {'photo_id': 1356609733, 'portfolio_id': 22751196}, {'photo_id': 1356609730, 'portfolio_id': 22751196}] map_portfolio_id_photo_id: {22751196: [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346, 1356610243, 1356610222, 1356610205, 1356610203, 1356610012, 1356609986, 1356609960, 1356609957, 1356609956, 1356609955, 1356609917, 1356609916, 1356609915, 1356609913, 1356609875, 1356609873, 1356609871, 1356609869, 1356609865, 1356609855, 1356609841, 1356609839, 1356609836, 1356609831, 1356609825, 1356609804, 1356609796, 1356609795, 1356609791, 1356609789, 1356609771, 1356609767, 1356609765, 1356609763, 1356609761, 1356609759, 1356609736, 1356609733, 1356609730]} ##### 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.015508890151977539 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed May 7 06: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22751196) 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 : 22751196 get user id for portfolio 22751196 get sub ptf for main ptf 22751196, type 3726 and hashtags ['environnement', 'flou', 'cartonnette', 'kraft', 'mal_croppe', 'autre_refus', 'papier', 'plastique', 'Teint_Dans_La_Masse', 'Carton_brun', 'metal', 'Carton_gris'] 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`=22751196 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','cartonnette','kraft','mal_croppe','autre_refus','papier','plastique','Teint_Dans_La_Masse','Carton_brun','metal','Carton_gris')) 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`=22751196 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','cartonnette','kraft','mal_croppe','autre_refus','papier','plastique','Teint_Dans_La_Masse','Carton_brun','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22751196, 'sub_port_id': 22751203, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164298, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}, 'autre_refus': {'main_port_id': 22751196, 'sub_port_id': 22751204, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164299, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}, 'Carton_brun': {'main_port_id': 22751196, 'sub_port_id': 22751205, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164300, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}, 'flou': {'main_port_id': 22751196, 'sub_port_id': 22751206, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164301, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}, 'papier': {'main_port_id': 22751196, 'sub_port_id': 22751207, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164302, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}, 'metal': {'main_port_id': 22751196, 'sub_port_id': 22751208, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164303, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}, 'mal_croppe': {'main_port_id': 22751196, 'sub_port_id': 22751209, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164304, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}, 'kraft': {'main_port_id': 22751196, 'sub_port_id': 22751210, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164305, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22751196, 'sub_port_id': 22751211, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164306, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}, 'Carton_gris': {'main_port_id': 22751196, 'sub_port_id': 22751212, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164307, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}, 'environnement': {'main_port_id': 22751196, 'sub_port_id': 22751213, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164308, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}, 'cartonnette': {'main_port_id': 22751196, 'sub_port_id': 22751214, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164309, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22751203 , 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=22751196 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 (22751203) result : ((1356609952,), (1356609953,), (1356610583,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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 22751204 , 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=22751196 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 (22751204) result : ((1356610542,), (1356610543,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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 22751205 , 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=22751196 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 (22751205) result : ((1356609950,), (1356610544,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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 22751206 , 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=22751196 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 (22751206) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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 22751207 , 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=22751196 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 (22751207) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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 22751208 , 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=22751196 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 (22751208) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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 22751209 , 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=22751196 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 (22751209) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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 22751210 , 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=22751196 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 (22751210) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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 22751211 , 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=22751196 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 (22751211) result : ((1356609805,), (1356609806,), (1356609807,), (1356609939,), (1356609940,), (1356609941,), (1356610537,), (1356610538,), (1356610539,), (1356610540,), (1356610541,), (1356610579,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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 22751212 , 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=22751196 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 (22751212) result : ((1356609808,), (1356609888,), (1356609944,), (1356609945,), (1356609946,), (1356609947,), (1356610546,), (1356610580,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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 22751213 , 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=22751196 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 (22751213) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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 22751214 , 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=22751196 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 (22751214) result : ((1356609812,), (1356609892,), (1356609893,), (1356609894,), (1356609895,), (1356609948,), (1356609949,), (1356610547,), (1356610581,), (1356610582,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22751196) result : ((1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) 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`=22751196 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','cartonnette','kraft','mal_croppe','autre_refus','papier','plastique','Teint_Dans_La_Masse','Carton_brun','metal','Carton_gris')) 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`=22751196 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','cartonnette','kraft','mal_croppe','autre_refus','papier','plastique','Teint_Dans_La_Masse','Carton_brun','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22751196, 'sub_port_id': 22751215, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164310, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}, 'autre_refus': {'main_port_id': 22751196, 'sub_port_id': 22751216, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164311, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}, 'Carton_brun': {'main_port_id': 22751196, 'sub_port_id': 22751217, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164312, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}, 'flou': {'main_port_id': 22751196, 'sub_port_id': 22751218, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164313, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}, 'papier': {'main_port_id': 22751196, 'sub_port_id': 22751219, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164314, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}, 'metal': {'main_port_id': 22751196, 'sub_port_id': 22751220, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164315, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}, 'mal_croppe': {'main_port_id': 22751196, 'sub_port_id': 22751221, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164316, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}, 'kraft': {'main_port_id': 22751196, 'sub_port_id': 22751222, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164317, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22751196, 'sub_port_id': 22751223, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164318, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}, 'Carton_gris': {'main_port_id': 22751196, 'sub_port_id': 22751224, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164319, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}, 'environnement': {'main_port_id': 22751196, 'sub_port_id': 22751225, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164320, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}, 'cartonnette': {'main_port_id': 22751196, 'sub_port_id': 22751226, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15164321, 'last_updated_at': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 6, 8, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 6, 2, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751216,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751204 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751217,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751205 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751218,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751206 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751219,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751207 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751220,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751208 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751221,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751209 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751222,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751210 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751223,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751211 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22751226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22751214 lien utilise dans velours : https://www.fotonower.com/velours/22751215,22751216,22751217,22751218,22751219,22751220,22751221,22751222,22751223,22751224,22751225,22751226?tags=plastique,autre_refus,Carton_brun,flou,papier,metal,mal_croppe,kraft,Teint_Dans_La_Masse,Carton_gris,environnement,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22751196]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346] map_info['map_portfolio_photo'] : {22751196: [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346, 1356610243, 1356610222, 1356610205, 1356610203, 1356610012, 1356609986, 1356609960, 1356609957, 1356609956, 1356609955, 1356609917, 1356609916, 1356609915, 1356609913, 1356609875, 1356609873, 1356609871, 1356609869, 1356609865, 1356609855, 1356609841, 1356609839, 1356609836, 1356609831, 1356609825, 1356609804, 1356609796, 1356609795, 1356609791, 1356609789, 1356609771, 1356609767, 1356609765, 1356609763, 1356609761, 1356609759, 1356609736, 1356609733, 1356609730]} final : False mtd_id 4302 list_pids : [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346] Looping around the photos to save general results len do output : 1 /22751196. 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, '2801080') ('4302', '22751196', '1356610522', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610520', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610518', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610516', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610498', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610496', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610493', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610490', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610488', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610486', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610459', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610457', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610456', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610455', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610390', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610388', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610386', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610385', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610384', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610352', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610351', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610349', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610348', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610347', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610346', None, None, None, None, None, '2801080') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22751196', "{'plastique': 22751203, 'autre_refus': 22751204, 'Carton_brun': 22751205, 'flou': 22751206, 'papier': 22751207, 'metal': 22751208, 'mal_croppe': 22751209, 'kraft': 22751210, 'Teint_Dans_La_Masse': 22751211, 'Carton_gris': 22751212, 'environnement': 22751213, 'cartonnette': 22751214}", None, None, None, None, '2801080'), ('4302', '22751196', '1356610522', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610520', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610518', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610516', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610498', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610496', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610493', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610490', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610488', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610486', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610459', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610457', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610456', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610455', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610390', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610388', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610386', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610385', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610384', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610352', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610351', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610349', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610348', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610347', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610346', None, None, None, None, None, '2801080')] time used for this insertion : 0.023098468780517578 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3951714038848877 time spend to save output : 0.02348613739013672 total time spend for step 1 : 1.4186575412750244 step2:final Wed May 7 06:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22751196) 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 22751196 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356609736,1356609733,1356609730,1356609771,1356609767,1356609765,1356609763,1356609761,1356609759,1356609804,1356609796,1356609795,1356609791,1356609789,1356609841,1356609839,1356609836,1356609831,1356609825,1356609875,1356609873,1356609871,1356609869,1356609865,1356609855,1356609917,1356609916,1356609915,1356609913,1356610012,1356609986,1356609960,1356609957,1356609956,1356609955,1356610243,1356610222,1356610205,1356610203,1356610352,1356610351,1356610349,1356610348,1356610347,1356610346,1356610390,1356610388,1356610386,1356610385,1356610384,1356610459,1356610457,1356610456,1356610455,1356610498,1356610496,1356610493,1356610490,1356610488,1356610486,1356610522,1356610520,1356610518,1356610516); 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([22751196]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} new output for save of step final : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346] map_info['map_portfolio_photo'] : {22751196: [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346, 1356610243, 1356610222, 1356610205, 1356610203, 1356610012, 1356609986, 1356609960, 1356609957, 1356609956, 1356609955, 1356609917, 1356609916, 1356609915, 1356609913, 1356609875, 1356609873, 1356609871, 1356609869, 1356609865, 1356609855, 1356609841, 1356609839, 1356609836, 1356609831, 1356609825, 1356609804, 1356609796, 1356609795, 1356609791, 1356609789, 1356609771, 1356609767, 1356609765, 1356609763, 1356609761, 1356609759, 1356609736, 1356609733, 1356609730]} final : False mtd_id 4302 list_pids : [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346] Looping around the photos to save general results len do output : 25 /1356610522.Didn't retrieve data . /1356610520.Didn't retrieve data . /1356610518.Didn't retrieve data . /1356610516.Didn't retrieve data . /1356610498.Didn't retrieve data . /1356610496.Didn't retrieve data . /1356610493.Didn't retrieve data . /1356610490.Didn't retrieve data . /1356610488.Didn't retrieve data . /1356610486.Didn't retrieve data . /1356610459.Didn't retrieve data . /1356610457.Didn't retrieve data . /1356610456.Didn't retrieve data . /1356610455.Didn't retrieve data . /1356610390.Didn't retrieve data . /1356610388.Didn't retrieve data . /1356610386.Didn't retrieve data . /1356610385.Didn't retrieve data . /1356610384.Didn't retrieve data . /1356610352.Didn't retrieve data . /1356610351.Didn't retrieve data . /1356610349.Didn't retrieve data . /1356610348.Didn't retrieve data . /1356610347.Didn't retrieve data . /1356610346.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, '2801080') ('4302', '22751196', '1356610522', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610520', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610518', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610516', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610498', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610496', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610493', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610490', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610488', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610486', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610459', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610457', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610456', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610455', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610390', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610388', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610386', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610385', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610384', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610352', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610351', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610349', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610348', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610347', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610346', None, None, None, None, None, '2801080') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 75 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22751196', '1356610522', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610520', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610518', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610516', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610498', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610496', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610493', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610490', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610488', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610486', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610459', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610457', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610456', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610455', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610390', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610388', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610386', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610385', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610384', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610352', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610351', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610349', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610348', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610347', '0.04711358640138695', None, None, None, None, '2801080'), ('4302', '22751196', '1356610346', '0.04711358640138695', None, None, None, None, '2801080')] time used for this insertion : 0.01659536361694336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0680549144744873 time spend to save output : 0.017776966094970703 total time spend for step 2 : 0.08583188056945801 step3:velours_tree Wed May 7 06:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22751196: [{'plastique': 22751203, 'autre_refus': 22751204, 'Carton_brun': 22751205, 'flou': 22751206, 'papier': 22751207, 'metal': 22751208, 'mal_croppe': 22751209, 'kraft': 22751210, 'Teint_Dans_La_Masse': 22751211, 'Carton_gris': 22751212, 'environnement': 22751213, 'cartonnette': 22751214}]} input_args_next_step : {22751196: ()} output_args : {22751196: [{'plastique': 22751203, 'autre_refus': 22751204, 'Carton_brun': 22751205, 'flou': 22751206, 'papier': 22751207, 'metal': 22751208, 'mal_croppe': 22751209, 'kraft': 22751210, 'Teint_Dans_La_Masse': 22751211, 'Carton_gris': 22751212, 'environnement': 22751213, 'cartonnette': 22751214}]} args : 22751196 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 : ({'plastique': 22751203, 'autre_refus': 22751204, 'Carton_brun': 22751205, 'flou': 22751206, 'papier': 22751207, 'metal': 22751208, 'mal_croppe': 22751209, 'kraft': 22751210, 'Teint_Dans_La_Masse': 22751211, 'Carton_gris': 22751212, 'environnement': 22751213, 'cartonnette': 22751214},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22751196) 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([22751196]) 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.32854461669921875 time spend to save output : 6.127357482910156e-05 total time spend for step 3 : 0.32860589027404785 step4:send_mail_cod Wed May 7 06:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} input_args_next_step : {1356610522: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610522 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610520 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610518 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610516 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610498 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610496 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610493 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610490 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610488 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610486 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610459 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610457 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610456 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610455 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610390 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610388 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610386 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610385 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610384 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610352 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610351 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610349 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610348 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610347 depend.output_id : 0 input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ()} output_args : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',)} args : 1356610346 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 : {22751196: [{'plastique': 22751203, 'autre_refus': 22751204, 'Carton_brun': 22751205, 'flou': 22751206, 'papier': 22751207, 'metal': 22751208, 'mal_croppe': 22751209, 'kraft': 22751210, 'Teint_Dans_La_Masse': 22751211, 'Carton_gris': 22751212, 'environnement': 22751213, 'cartonnette': 22751214}]} input_args_next_step : {1356610522: ('0.04711358640138695',), 1356610520: ('0.04711358640138695',), 1356610518: ('0.04711358640138695',), 1356610516: ('0.04711358640138695',), 1356610498: ('0.04711358640138695',), 1356610496: ('0.04711358640138695',), 1356610493: ('0.04711358640138695',), 1356610490: ('0.04711358640138695',), 1356610488: ('0.04711358640138695',), 1356610486: ('0.04711358640138695',), 1356610459: ('0.04711358640138695',), 1356610457: ('0.04711358640138695',), 1356610456: ('0.04711358640138695',), 1356610455: ('0.04711358640138695',), 1356610390: ('0.04711358640138695',), 1356610388: ('0.04711358640138695',), 1356610386: ('0.04711358640138695',), 1356610385: ('0.04711358640138695',), 1356610384: ('0.04711358640138695',), 1356610352: ('0.04711358640138695',), 1356610351: ('0.04711358640138695',), 1356610349: ('0.04711358640138695',), 1356610348: ('0.04711358640138695',), 1356610347: ('0.04711358640138695',), 1356610346: ('0.04711358640138695',), 22751196: ()} output_args : {22751196: [{'plastique': 22751203, 'autre_refus': 22751204, 'Carton_brun': 22751205, 'flou': 22751206, 'papier': 22751207, 'metal': 22751208, 'mal_croppe': 22751209, 'kraft': 22751210, 'Teint_Dans_La_Masse': 22751211, 'Carton_gris': 22751212, 'environnement': 22751213, 'cartonnette': 22751214}]} args : 22751196 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :26, first value : ('0.04711358640138695',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22751196) 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 (1356610522,1356610520,1356610518,1356610516,1356610498,1356610496,1356610493,1356610490,1356610488,1356610486,1356610459,1356610457,1356610456,1356610455,1356610390,1356610388,1356610386,1356610385,1356610384,1356610352,1356610351,1356610349,1356610348,1356610347,1356610346) Found this number of photos: 25 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356610346 begin to download photo : 1356610384 begin to download photo : 1356610456 begin to download photo : 1356610493 begin to download photo : 1356610522 download finish for photo 1356610456 begin to download photo : 1356610457 download finish for photo 1356610522 download finish for photo 1356610384 begin to download photo : 1356610385 download finish for photo 1356610346 begin to download photo : 1356610347 download finish for photo 1356610493 begin to download photo : 1356610496 download finish for photo 1356610457 begin to download photo : 1356610459 download finish for photo 1356610385 begin to download photo : 1356610386 download finish for photo 1356610496 begin to download photo : 1356610498 download finish for photo 1356610347 begin to download photo : 1356610348 download finish for photo 1356610386 begin to download photo : 1356610388 download finish for photo 1356610459 begin to download photo : 1356610486 download finish for photo 1356610498 begin to download photo : 1356610516 download finish for photo 1356610348 begin to download photo : 1356610349 download finish for photo 1356610516 begin to download photo : 1356610518 download finish for photo 1356610388 begin to download photo : 1356610390 download finish for photo 1356610486 begin to download photo : 1356610488 download finish for photo 1356610349 begin to download photo : 1356610351 download finish for photo 1356610390 begin to download photo : 1356610455 download finish for photo 1356610518 begin to download photo : 1356610520 download finish for photo 1356610488 begin to download photo : 1356610490 download finish for photo 1356610455 download finish for photo 1356610520 download finish for photo 1356610490 download finish for photo 1356610351 begin to download photo : 1356610352 download finish for photo 1356610352 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 25 ; length of list_pids : 25 ; length of list_args : 25 results_Auto_P22751196_07-05-2025_06_15_03.pdf 22751203 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=22751203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356609952: '1746590773_2231287_1356609765_ef4f7c66797d5987cc303c309b88c51c_rle_crop_3788014018_0.png', 1356609953: '1746590773_2231287_1356609759_73e8d33248eb83e96f212c2c23c0fba6_rle_crop_3788014059_0.png', 1356610583: '1746591251_2237103_1356610384_ceb1f4c8703c83674a98e18cb692d91e_rle_crop_3788015578_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/95faf6181edb8cb007608718c9ddf3e4_19757163.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/944800266a9d691caee6f90a5837f275_451187.png change filename to text .imagette227512031746591303/ imagette227512031746591303/1746590773_2231287_1356609765_ef4f7c66797d5987cc303c309b88c51c_rle_crop_3788014018_0.png.png imagette227512031746591303/1746591251_2237103_1356610384_ceb1f4c8703c83674a98e18cb692d91e_rle_crop_3788015578_0.png.png imagette227512031746591303/1746590773_2231287_1356609759_73e8d33248eb83e96f212c2c23c0fba6_rle_crop_3788014059_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/857de854bdfa6cadf5b719e58d130b49_32333501.png imagette227512031746591303 22751204 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=22751204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356610542: '1746591193_2236579_1356610222_b75e0d48ea9fdca47c87bc60666fbc0a_rle_crop_3788015402_0.png', 1356610543: '1746591193_2236579_1356610222_b75e0d48ea9fdca47c87bc60666fbc0a_rle_crop_3788015404_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ba6b5badfdef62114bb7d4ac7590973d_65988904.png change filename to text .imagette227512041746591303/ imagette227512041746591303/1746591193_2236579_1356610222_b75e0d48ea9fdca47c87bc60666fbc0a_rle_crop_3788015402_0.png.png imagette227512041746591303/1746591193_2236579_1356610222_b75e0d48ea9fdca47c87bc60666fbc0a_rle_crop_3788015404_0.png.png imagette227512061746591303/ imagette227512081746591303/ imagette227512091746591303/ imagette227512101746591303/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a3dc68502c0e8cf962f11a29ae318071_59515934.png imagette227512041746591303 22751206 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=22751206 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227512061746591303 22751208 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=22751208 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227512081746591303 22751209 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=22751209 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227512091746591303 22751210 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=22751210 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227512101746591303 22751214 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=22751214 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356609812: '1746590606_272352_1356609730_c8a474737b9f85e9942b03fbf88f6ce8_rle_crop_3788011261_0.png', 1356609892: '1746590725_275108_1356609796_de8395c4b8387c0757fd2e6ba7bc80ea_rle_crop_3788011855_0.png', 1356609893: '1746590725_275108_1356609795_60b5841dca40a03b4105a8ae1b1b7496_rle_crop_3788011866_0.png', 1356609894: '1746590725_275108_1356609791_e6dc91937e45f501874a6a1806d8ecf2_rle_crop_3788011881_0.png', 1356609895: '1746590725_275108_1356609791_e6dc91937e45f501874a6a1806d8ecf2_rle_crop_3788011882_0.png', 1356609948: '1746590773_2231287_1356609804_a913c2792a926e569ebb9cfc009494b1_rle_crop_3788014005_0.png', 1356609949: '1746590773_2231287_1356609763_c941f1293c328f25da7034c10f9e741f_rle_crop_3788014026_0.png', 1356610547: '1746591193_2236579_1356610222_b75e0d48ea9fdca47c87bc60666fbc0a_rle_crop_3788015408_0.png', 1356610581: '1746591251_2237103_1356610385_c68d4fee90679573f78116b8c42e55c5_rle_crop_3788015562_0.png', 1356610582: '1746591251_2237103_1356610384_ceb1f4c8703c83674a98e18cb692d91e_rle_crop_3788015581_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/636045fcbc6665dacdb6760be9a722d9_58375133.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/2542f66ea256923c8dcff2d737eb6db0_20901617.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/fdb035426419f2b241b7663584976550_77282017.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a2f62c6640d0bcb8c267d8e8700ba09f_29429126.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d5a155a0ed97bddc7f626b9499038289_52043172.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/27b10bf306ca2b0e99ed3f4783528832_25315513.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f1e08885b5b67c91a24daa31b430812c_64880802.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1ca36f47769461f7f2326f49b6271f30_99622499.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a5965bfecf794b3617aa1f51730e4185_13678757.png change filename to text .imagette227512141746591303/ imagette227512141746591303/1746590773_2231287_1356609763_c941f1293c328f25da7034c10f9e741f_rle_crop_3788014026_0.png.png imagette227512141746591303/1746590725_275108_1356609791_e6dc91937e45f501874a6a1806d8ecf2_rle_crop_3788011881_0.png.png imagette227512141746591303/1746591251_2237103_1356610384_ceb1f4c8703c83674a98e18cb692d91e_rle_crop_3788015581_0.png.png imagette227512141746591303/1746590725_275108_1356609796_de8395c4b8387c0757fd2e6ba7bc80ea_rle_crop_3788011855_0.png.png imagette227512141746591303/1746590606_272352_1356609730_c8a474737b9f85e9942b03fbf88f6ce8_rle_crop_3788011261_0.png.png imagette227512141746591303/1746591193_2236579_1356610222_b75e0d48ea9fdca47c87bc60666fbc0a_rle_crop_3788015408_0.png.png imagette227512141746591303/1746590773_2231287_1356609804_a913c2792a926e569ebb9cfc009494b1_rle_crop_3788014005_0.png.png imagette227512141746591303/1746590725_275108_1356609795_60b5841dca40a03b4105a8ae1b1b7496_rle_crop_3788011866_0.png.png imagette227512141746591303/1746591251_2237103_1356610385_c68d4fee90679573f78116b8c42e55c5_rle_crop_3788015562_0.png.png imagette227512141746591303/1746590725_275108_1356609791_e6dc91937e45f501874a6a1806d8ecf2_rle_crop_3788011882_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/52566168b6b6c91673653f42bb7e35f2_36165748.png imagette227512141746591303 22751205 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=22751205 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356609950: '1746590773_2231287_1356609761_c9d47e902e01450487f8ffbfee27028b_rle_crop_3788014045_0.png', 1356610544: '1746591205_282866_1356610456_edd527503dafab7da8117bac557dcf93_rle_crop_3788015383_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f5382de54aac9d03684b48904963f58a_50857002.png change filename to text .imagette227512051746591304/ imagette227512051746591304/1746591205_282866_1356610456_edd527503dafab7da8117bac557dcf93_rle_crop_3788015383_0.png.png imagette227512051746591304/1746590773_2231287_1356609761_c9d47e902e01450487f8ffbfee27028b_rle_crop_3788014045_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f6d5953cf6cf3af5de0a5be8638f26d2_1512739.png imagette227512051746591304 22751211 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=22751211 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356609805: '1746590606_272352_1356609736_82034ff6a8d9a7b2a7c766987104ef62_rle_crop_3788011214_0.png', 1356609806: '1746590606_272352_1356609733_fdfe04c1cc0d113faf2befe90c1861a2_rle_crop_3788011240_0.png', 1356609807: '1746590606_272352_1356609730_c8a474737b9f85e9942b03fbf88f6ce8_rle_crop_3788011262_0.png', 1356609939: '1746590773_2231287_1356609765_ef4f7c66797d5987cc303c309b88c51c_rle_crop_3788014016_0.png', 1356609940: '1746590773_2231287_1356609759_73e8d33248eb83e96f212c2c23c0fba6_rle_crop_3788014057_0.png', 1356609941: '1746590773_2231287_1356609759_73e8d33248eb83e96f212c2c23c0fba6_rle_crop_3788014055_0.png', 1356610537: '1746591205_282866_1356610456_edd527503dafab7da8117bac557dcf93_rle_crop_3788015388_0.png', 1356610538: '1746591205_282866_1356610456_edd527503dafab7da8117bac557dcf93_rle_crop_3788015387_0.png', 1356610539: '1746591205_282866_1356610455_7dbf5f0d1fdfdf932854f7a4703f834b_rle_crop_3788015394_0.png', 1356610540: '1746591193_2236579_1356610222_b75e0d48ea9fdca47c87bc60666fbc0a_rle_crop_3788015410_0.png', 1356610541: '1746591193_2236579_1356610222_b75e0d48ea9fdca47c87bc60666fbc0a_rle_crop_3788015414_0.png', 1356610579: '1746591251_2237103_1356610384_ceb1f4c8703c83674a98e18cb692d91e_rle_crop_3788015582_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/cc7262279a9c61ebf41d82761f579eb5_35676279.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ec38e28287406b328652b6737d12fe53_17120995.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/55b81ca31f1990f65eabbd0378782b4c_61855642.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/62cd6040f6994ea2cdddb3b131553555_54508876.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a158b5631533ace6a7799560a8954e58_43187280.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/88fc29d43b0d729dbb2bd96c9a83eb7f_60749728.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/b0cad5b0182c5e3a16088a142bf2d92d_45478358.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1ff469cdad4aa25799b5ed66b78989f0_27946213.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ee03bbf4deb8d173c0a218b68ce4ef06_27944277.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/07dc25c6345bc1c0601eb8aa93be7188_31869916.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d0e6c4c0afd0927ed59a1ba6680184d2_85959492.png change filename to text .imagette227512111746591304/ imagette227512111746591304/1746590606_272352_1356609730_c8a474737b9f85e9942b03fbf88f6ce8_rle_crop_3788011262_0.png.png imagette227512111746591304/1746590606_272352_1356609736_82034ff6a8d9a7b2a7c766987104ef62_rle_crop_3788011214_0.png.png imagette227512111746591304/1746590606_272352_1356609733_fdfe04c1cc0d113faf2befe90c1861a2_rle_crop_3788011240_0.png.png imagette227512111746591304/1746591193_2236579_1356610222_b75e0d48ea9fdca47c87bc60666fbc0a_rle_crop_3788015414_0.png.png imagette227512111746591304/1746591193_2236579_1356610222_b75e0d48ea9fdca47c87bc60666fbc0a_rle_crop_3788015410_0.png.png imagette227512111746591304/1746590773_2231287_1356609765_ef4f7c66797d5987cc303c309b88c51c_rle_crop_3788014016_0.png.png imagette227512111746591304/1746591205_282866_1356610456_edd527503dafab7da8117bac557dcf93_rle_crop_3788015387_0.png.png imagette227512111746591304/1746591205_282866_1356610455_7dbf5f0d1fdfdf932854f7a4703f834b_rle_crop_3788015394_0.png.png imagette227512111746591304/1746591251_2237103_1356610384_ceb1f4c8703c83674a98e18cb692d91e_rle_crop_3788015582_0.png.png imagette227512111746591304/1746590773_2231287_1356609759_73e8d33248eb83e96f212c2c23c0fba6_rle_crop_3788014057_0.png.png imagette227512111746591304/1746590773_2231287_1356609759_73e8d33248eb83e96f212c2c23c0fba6_rle_crop_3788014055_0.png.png imagette227512111746591304/1746591205_282866_1356610456_edd527503dafab7da8117bac557dcf93_rle_crop_3788015388_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/adc598f24a04767ce8bec5141ddb6663_26695364.png imagette227512111746591304 22751212 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=22751212 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356609808: '1746590606_272352_1356609730_c8a474737b9f85e9942b03fbf88f6ce8_rle_crop_3788011265_0.png', 1356609888: '1746590725_275108_1356609789_d760304e036bef834fefad6ab0b631f8_rle_crop_3788011894_0.png', 1356609944: '1746590773_2231287_1356609763_c941f1293c328f25da7034c10f9e741f_rle_crop_3788014031_0.png', 1356609945: '1746590773_2231287_1356609763_c941f1293c328f25da7034c10f9e741f_rle_crop_3788014029_0.png', 1356609946: '1746590773_2231287_1356609761_c9d47e902e01450487f8ffbfee27028b_rle_crop_3788014038_0.png', 1356609947: '1746590773_2231287_1356609759_73e8d33248eb83e96f212c2c23c0fba6_rle_crop_3788014052_0.png', 1356610546: '1746591193_2236579_1356610352_c21cc2a17f85fdf372a1033f9d707887_rle_crop_3788015379_0.png', 1356610580: '1746591251_2237103_1356610388_ab743c0bb0cd274ce33aeb304b69fd15_rle_crop_3788015540_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a00ab04b3da61e84dfd954fadae773c8_24780586.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/612f15f926f6201b1a761a815236927e_23179700.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4022c7f335a7e5a4bc7ebc7414338e8d_26587187.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/50b130f71411b82fb904b9cd24e9a2aa_72839836.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d9eede66bc7a38853350321292c88183_22570678.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/03057f943948a275c55f344a09c1e725_4462490.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/eac63246a5dcac73dd25aab5eb15e816_22614535.png change filename to text .imagette227512121746591305/ imagette227512121746591305/1746590606_272352_1356609730_c8a474737b9f85e9942b03fbf88f6ce8_rle_crop_3788011265_0.png.png imagette227512121746591305/1746590773_2231287_1356609761_c9d47e902e01450487f8ffbfee27028b_rle_crop_3788014038_0.png.png imagette227512121746591305/1746591251_2237103_1356610388_ab743c0bb0cd274ce33aeb304b69fd15_rle_crop_3788015540_0.png.png imagette227512121746591305/1746590725_275108_1356609789_d760304e036bef834fefad6ab0b631f8_rle_crop_3788011894_0.png.png imagette227512121746591305/1746590773_2231287_1356609759_73e8d33248eb83e96f212c2c23c0fba6_rle_crop_3788014052_0.png.png imagette227512121746591305/1746591193_2236579_1356610352_c21cc2a17f85fdf372a1033f9d707887_rle_crop_3788015379_0.png.png imagette227512121746591305/1746590773_2231287_1356609763_c941f1293c328f25da7034c10f9e741f_rle_crop_3788014031_0.png.png imagette227512121746591305/1746590773_2231287_1356609763_c941f1293c328f25da7034c10f9e741f_rle_crop_3788014029_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/20f3ba10de3dd61fc476c67b1ec1d536_43326217.png imagette227512121746591305 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22751196 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22751215,22751216,22751217,22751218,22751219,22751220,22751221,22751222,22751223,22751224,22751225,22751226?tags=plastique,autre_refus,Carton_brun,flou,papier,metal,mal_croppe,kraft,Teint_Dans_La_Masse,Carton_gris,environnement,cartonnette your option no_mail is active, we will not send the real mail to your client args[1356610522] : ('0.04711358640138695',) no score found for photo 1356610522 We are sending mail with results at report@fotonower.com args[1356610520] : ('0.04711358640138695',) no score found for photo 1356610520 We are sending mail with results at report@fotonower.com args[1356610518] : ('0.04711358640138695',) no score found for photo 1356610518 We are sending mail with results at report@fotonower.com args[1356610516] : ('0.04711358640138695',) no score found for photo 1356610516 We are sending mail with results at report@fotonower.com args[1356610498] : ('0.04711358640138695',) no score found for photo 1356610498 We are sending mail with results at report@fotonower.com args[1356610496] : ('0.04711358640138695',) no score found for photo 1356610496 We are sending mail with results at report@fotonower.com args[1356610493] : ('0.04711358640138695',) no score found for photo 1356610493 We are sending mail with results at report@fotonower.com args[1356610490] : ('0.04711358640138695',) no score found for photo 1356610490 We are sending mail with results at report@fotonower.com args[1356610488] : ('0.04711358640138695',) no score found for photo 1356610488 We are sending mail with results at report@fotonower.com args[1356610486] : ('0.04711358640138695',) no score found for photo 1356610486 We are sending mail with results at report@fotonower.com args[1356610459] : ('0.04711358640138695',) no score found for photo 1356610459 We are sending mail with results at report@fotonower.com args[1356610457] : ('0.04711358640138695',) no score found for photo 1356610457 We are sending mail with results at report@fotonower.com args[1356610456] : ('0.04711358640138695',) no score found for photo 1356610456 We are sending mail with results at report@fotonower.com args[1356610455] : ('0.04711358640138695',) no score found for photo 1356610455 We are sending mail with results at report@fotonower.com args[1356610390] : ('0.04711358640138695',) no score found for photo 1356610390 We are sending mail with results at report@fotonower.com args[1356610388] : ('0.04711358640138695',) no score found for photo 1356610388 We are sending mail with results at report@fotonower.com args[1356610386] : ('0.04711358640138695',) no score found for photo 1356610386 We are sending mail with results at report@fotonower.com args[1356610385] : ('0.04711358640138695',) no score found for photo 1356610385 We are sending mail with results at report@fotonower.com args[1356610384] : ('0.04711358640138695',) no score found for photo 1356610384 We are sending mail with results at report@fotonower.com args[1356610352] : ('0.04711358640138695',) no score found for photo 1356610352 We are sending mail with results at report@fotonower.com args[1356610351] : ('0.04711358640138695',) no score found for photo 1356610351 We are sending mail with results at report@fotonower.com args[1356610349] : ('0.04711358640138695',) no score found for photo 1356610349 We are sending mail with results at report@fotonower.com args[1356610348] : ('0.04711358640138695',) no score found for photo 1356610348 We are sending mail with results at report@fotonower.com args[1356610347] : ('0.04711358640138695',) no score found for photo 1356610347 We are sending mail with results at report@fotonower.com args[1356610346] : ('0.04711358640138695',) no score found for photo 1356610346 We are sending mail with results at report@fotonower.com refus_total : 0.04711358640138695 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=22751196 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_P22751196_07-05-2025_06_15_03.pdf results_Auto_P22751196_07-05-2025_06_15_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_15_03.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','22751196','results_Auto_P22751196_07-05-2025_06_15_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_15_03.pdf','pdf','','0.33','0.04711358640138695') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22751196]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346] map_info['map_portfolio_photo'] : {22751196: [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346, 1356610243, 1356610222, 1356610205, 1356610203, 1356610012, 1356609986, 1356609960, 1356609957, 1356609956, 1356609955, 1356609917, 1356609916, 1356609915, 1356609913, 1356609875, 1356609873, 1356609871, 1356609869, 1356609865, 1356609855, 1356609841, 1356609839, 1356609836, 1356609831, 1356609825, 1356609804, 1356609796, 1356609795, 1356609791, 1356609789, 1356609771, 1356609767, 1356609765, 1356609763, 1356609761, 1356609759, 1356609736, 1356609733, 1356609730]} final : False mtd_id 4302 list_pids : [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346] 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, '2801080') ('4302', '22751196', '1356610522', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610520', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610518', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610516', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610498', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610496', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610493', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610490', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610488', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610486', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610459', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610457', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610456', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610455', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610390', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610388', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610386', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610385', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610384', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610352', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610351', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610349', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610348', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610347', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610346', None, None, None, None, None, '2801080') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22751196', '1356610522', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610520', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610518', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610516', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610498', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610496', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610493', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610490', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610488', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610486', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610459', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610457', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610456', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610455', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610390', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610388', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610386', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610385', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610384', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610352', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610351', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610349', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610348', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610347', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610346', None, None, None, None, None, '2801080')] time used for this insertion : 0.01572704315185547 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.394824504852295 time spend to save output : 0.016161203384399414 total time spend for step 4 : 6.410985708236694 step5:split_time_score Wed May 7 06:15:07 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 : ['22751196'] 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 : [('22751196',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22751196) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356610522: {'path': 'temp/1746591300_3597984_1356610522_1358076f51a959af8a847d4e6360b845.jpg', 'extension': 'jpg'}, 1356610384: {'path': 'temp/1746591300_3597984_1356610384_ceb1f4c8703c83674a98e18cb692d91e.jpg', 'extension': 'jpg'}, 1356610385: {'path': 'temp/1746591300_3597984_1356610385_c68d4fee90679573f78116b8c42e55c5.jpg', 'extension': 'jpg'}, 1356610386: {'path': 'temp/1746591300_3597984_1356610386_d7b7a3ddcc66a09f159e7e92b103e9eb.jpg', 'extension': 'jpg'}, 1356610388: {'path': 'temp/1746591300_3597984_1356610388_ab743c0bb0cd274ce33aeb304b69fd15.jpg', 'extension': 'jpg'}, 1356610390: {'path': 'temp/1746591300_3597984_1356610390_c8c1f0c19ce1e31070eb4e6576fdf904.jpg', 'extension': 'jpg'}, 1356610455: {'path': 'temp/1746591300_3597984_1356610455_7dbf5f0d1fdfdf932854f7a4703f834b.jpg', 'extension': 'jpg'}, 1356610493: {'path': 'temp/1746591300_3597984_1356610493_81f604b9bdad1596f8316936d32c485e.jpg', 'extension': 'jpg'}, 1356610496: {'path': 'temp/1746591300_3597984_1356610496_1a5582da6b7dd63c8fc76f28570bc6a9.jpg', 'extension': 'jpg'}, 1356610498: {'path': 'temp/1746591300_3597984_1356610498_ce60032a18d08b8c63979b08672127fc.jpg', 'extension': 'jpg'}, 1356610516: {'path': 'temp/1746591300_3597984_1356610516_cd66d2bc69f6c4206558a17d6ada96f3.jpg', 'extension': 'jpg'}, 1356610518: {'path': 'temp/1746591300_3597984_1356610518_fd528ead615925afb34553e65b27baf1.jpg', 'extension': 'jpg'}, 1356610520: {'path': 'temp/1746591300_3597984_1356610520_403194a2c5763ba280a0ff758d7ad4e1.jpg', 'extension': 'jpg'}, 1356610456: {'path': 'temp/1746591300_3597984_1356610456_edd527503dafab7da8117bac557dcf93.jpg', 'extension': 'jpg'}, 1356610457: {'path': 'temp/1746591300_3597984_1356610457_a1c7a8e46428648be731ffe3ccd8300d.jpg', 'extension': 'jpg'}, 1356610459: {'path': 'temp/1746591300_3597984_1356610459_a6d3df4e17d3028d758250d7793d97e7.jpg', 'extension': 'jpg'}, 1356610486: {'path': 'temp/1746591300_3597984_1356610486_d0c25931a33cbb513e34bec0c90836b5.jpg', 'extension': 'jpg'}, 1356610488: {'path': 'temp/1746591300_3597984_1356610488_c07fdac074704982c4d4b4693395fdf4.jpg', 'extension': 'jpg'}, 1356610490: {'path': 'temp/1746591300_3597984_1356610490_8d11be0abe8e75d79e7a9c77c22a6c34.jpg', 'extension': 'jpg'}, 1356610346: {'path': 'temp/1746591300_3597984_1356610346_30dc8f6859a94bc19c523f04127dfa06.jpg', 'extension': 'jpg'}, 1356610347: {'path': 'temp/1746591300_3597984_1356610347_eedf6fd6ca0f02f1ffde6a18d26c83ee.jpg', 'extension': 'jpg'}, 1356610348: {'path': 'temp/1746591300_3597984_1356610348_d9b2419ecf02816d4563c4fb48343a19.jpg', 'extension': 'jpg'}, 1356610349: {'path': 'temp/1746591300_3597984_1356610349_5ea039f3ec90bf0faad4868260d36ab7.jpg', 'extension': 'jpg'}, 1356610351: {'path': 'temp/1746591300_3597984_1356610351_9f6e0b66a464c8c24700ea804045c7f0.jpg', 'extension': 'jpg'}, 1356610352: {'path': 'temp/1746591300_3597984_1356610352_c21cc2a17f85fdf372a1033f9d707887.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 = 22751196; (('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 = 22751196 group by h (('06', 64),) 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=22751196 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 (22751196) 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 (22751196) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07052025 22751196 Nombre de photos uploadées : 64 / 23040 (0%) 07052025 22751196 Nombre de photos taguées (types de déchets): 0 / 64 (0%) 07052025 22751196 Nombre de photos taguées (volume) : 0 / 64 (0%) [{'photo_id': 1356609736, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/82034ff6a8d9a7b2a7c766987104ef62.jpg', 'username': None, 'uploaded_at': 1746590477, 'text': 'image_07052025_06_00_04_010184m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1356609733, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/fdfe04c1cc0d113faf2befe90c1861a2.jpg', 'username': None, 'uploaded_at': 1746590477, 'text': 'image_07052025_06_00_13_009125m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1356609730, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c8a474737b9f85e9942b03fbf88f6ce8.jpg', 'username': None, 'uploaded_at': 1746590477, 'text': 'image_07052025_06_00_23_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356609771, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/e904f2ea7e644033ac403ad541ba282c.jpg', 'username': None, 'uploaded_at': 1746590527, 'text': 'image_07052025_06_00_33_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ???????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003010988235473633 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22751196, '2025-05-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1781050,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023739337921142578 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= 1781050 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22740041, 'dashboard_result_id': 10365527, '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_P22740041_07-05-2025_00_20_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22741189, 'dashboard_result_id': 10365528, '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_P22741189_07-05-2025_00_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22741710, 'dashboard_result_id': 10365529, '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_P22741710_07-05-2025_00_47_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22742314, 'dashboard_result_id': 10365530, '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_P22742314_07-05-2025_01_36_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22743939, 'dashboard_result_id': 10365531, '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_P22743939_07-05-2025_01_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22744354, 'dashboard_result_id': 10365532, '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_P22744354_07-05-2025_02_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22744792, 'dashboard_result_id': 10365533, '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_P22744792_07-05-2025_02_21_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22745552, 'dashboard_result_id': 10365534, '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_P22745552_07-05-2025_02_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22745924, 'dashboard_result_id': 10365535, '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_P22745924_07-05-2025_02_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22746301, 'dashboard_result_id': 10365536, '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_P22746301_07-05-2025_03_04_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22746900, 'dashboard_result_id': 10365537, '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_P22746900_07-05-2025_03_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22747363, 'dashboard_result_id': 10365538, '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_P22747363_07-05-2025_03_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22747808, 'dashboard_result_id': 10365539, '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_P22747808_07-05-2025_03_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22748285, 'dashboard_result_id': 10365540, '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_P22748285_07-05-2025_04_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22748931, 'dashboard_result_id': 10365541, '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_P22748931_07-05-2025_04_10_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22750050, 'dashboard_result_id': 10365542, '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_P22750050_07-05-2025_05_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22750360, 'dashboard_result_id': 10365543, '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_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22750640, 'dashboard_result_id': 10365544, '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_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789279, 'mtr_portfolio_id': 22751196, 'dashboard_result_id': 10365545, '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_P22751196_07-05-2025_06_08_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, '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 = 22740041 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': 2800912, 'mtr_portfolio_id': 22740041, 'created_at': datetime.datetime(2025, 5, 7, 6, 2), 'result': '0.050109031736622824', 'result_long': None, 'result_double': None}] Qualite : 0.050109031736622824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22740041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_06_02_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22740041 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_P22740041_07-05-2025_06_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}" where mtr_portfolio_id = 22740041 and dashboard_run_id = 1789279 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`=22740041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365527, 0.050109031736622824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_06_02_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, '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 = 22741189 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': 2800913, 'mtr_portfolio_id': 22741189, 'created_at': datetime.datetime(2025, 5, 7, 6, 2, 28), 'result': '0.04701292400710008', 'result_long': None, 'result_double': None}] Qualite : 0.04701292400710008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_06_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741189 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_P22741189_07-05-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}" where mtr_portfolio_id = 22741189 and dashboard_run_id = 1789279 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`=22741189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365528, 0.04701292400710008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, '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 = 22741710 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': 2800914, 'mtr_portfolio_id': 22741710, 'created_at': datetime.datetime(2025, 5, 7, 6, 4), 'result': '0.05760114200802414', 'result_long': None, 'result_double': None}] Qualite : 0.05760114200802414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_06_04_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741710 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_P22741710_07-05-2025_06_04_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}" where mtr_portfolio_id = 22741710 and dashboard_run_id = 1789279 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`=22741710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365529, 0.05760114200802414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_06_04_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, '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 = 22742314 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': 2800915, 'mtr_portfolio_id': 22742314, 'created_at': datetime.datetime(2025, 5, 7, 6, 4, 28), 'result': '0.045077702374708616', 'result_long': None, 'result_double': None}] Qualite : 0.045077702374708616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22742314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_06_04_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22742314 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_P22742314_07-05-2025_06_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}" where mtr_portfolio_id = 22742314 and dashboard_run_id = 1789279 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`=22742314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365530, 0.045077702374708616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_06_04_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, '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 = 22743939 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': 2800916, 'mtr_portfolio_id': 22743939, 'created_at': datetime.datetime(2025, 5, 7, 6, 4, 59), 'result': '0.04478232993303851', 'result_long': None, 'result_double': None}] Qualite : 0.04478232993303851 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22743939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_06_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22743939 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_P22743939_07-05-2025_06_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, 'pht': 3726}}" where mtr_portfolio_id = 22743939 and dashboard_run_id = 1789279 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`=22743939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365531, 0.04478232993303851, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_06_05_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, '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 = 22744354 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': 2800917, 'mtr_portfolio_id': 22744354, 'created_at': datetime.datetime(2025, 5, 7, 6, 5, 28), 'result': '0.035671548309605734', 'result_long': None, 'result_double': None}] Qualite : 0.035671548309605734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_06_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744354 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_P22744354_07-05-2025_06_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}" where mtr_portfolio_id = 22744354 and dashboard_run_id = 1789279 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`=22744354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365532, 0.035671548309605734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_06_05_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, '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 = 22744792 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': 2800918, 'mtr_portfolio_id': 22744792, 'created_at': datetime.datetime(2025, 5, 7, 6, 5, 59), 'result': '0.054948676811049965', 'result_long': None, 'result_double': None}] Qualite : 0.054948676811049965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_06_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744792 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_P22744792_07-05-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}" where mtr_portfolio_id = 22744792 and dashboard_run_id = 1789279 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`=22744792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365533, 0.054948676811049965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_06_06_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, '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 = 22745552 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': 2800919, 'mtr_portfolio_id': 22745552, 'created_at': datetime.datetime(2025, 5, 7, 6, 6, 27), 'result': '0.0408681048489511', 'result_long': None, 'result_double': None}] Qualite : 0.0408681048489511 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_06_06_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745552 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_P22745552_07-05-2025_06_06_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}" where mtr_portfolio_id = 22745552 and dashboard_run_id = 1789279 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`=22745552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365534, 0.0408681048489511, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_06_06_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, '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 = 22745924 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': 2800920, 'mtr_portfolio_id': 22745924, 'created_at': datetime.datetime(2025, 5, 7, 6, 7, 29), 'result': '0.03856288324551846', 'result_long': None, 'result_double': None}] Qualite : 0.03856288324551846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_06_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745924 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_P22745924_07-05-2025_06_07_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}" where mtr_portfolio_id = 22745924 and dashboard_run_id = 1789279 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`=22745924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365535, 0.03856288324551846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_06_07_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, '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 = 22746301 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': 2800921, 'mtr_portfolio_id': 22746301, 'created_at': datetime.datetime(2025, 5, 7, 6, 7, 56), 'result': '0.05090100322650896', 'result_long': None, 'result_double': None}] Qualite : 0.05090100322650896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22746301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_06_07_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22746301 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_P22746301_07-05-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, 'pht': 3726}}" where mtr_portfolio_id = 22746301 and dashboard_run_id = 1789279 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`=22746301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365536, 0.05090100322650896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, '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 = 22746900 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': 2800922, 'mtr_portfolio_id': 22746900, 'created_at': datetime.datetime(2025, 5, 7, 6, 8, 27), 'result': '0.050751273434838894', 'result_long': None, 'result_double': None}] Qualite : 0.050751273434838894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22746900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_06_08_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22746900 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_P22746900_07-05-2025_06_08_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, 'pht': 3726}}" where mtr_portfolio_id = 22746900 and dashboard_run_id = 1789279 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`=22746900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365537, 0.050751273434838894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_06_08_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, '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 = 22747363 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': 2800923, 'mtr_portfolio_id': 22747363, 'created_at': datetime.datetime(2025, 5, 7, 6, 9, 30), 'result': '0.05098369322515066', 'result_long': None, 'result_double': None}] Qualite : 0.05098369322515066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22747363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22747363 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_P22747363_07-05-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, 'pht': 3726}}" where mtr_portfolio_id = 22747363 and dashboard_run_id = 1789279 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`=22747363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365538, 0.05098369322515066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_06_09_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, '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 = 22747808 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': 2800924, 'mtr_portfolio_id': 22747808, 'created_at': datetime.datetime(2025, 5, 7, 6, 9, 59), 'result': '0.05286859502594896', 'result_long': None, 'result_double': None}] Qualite : 0.05286859502594896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22747808 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22747808 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_P22747808_07-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, 'pht': 3726}}" where mtr_portfolio_id = 22747808 and dashboard_run_id = 1789279 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`=22747808 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365539, 0.05286859502594896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_06_10_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, '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 = 22748285 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': 2800925, 'mtr_portfolio_id': 22748285, 'created_at': datetime.datetime(2025, 5, 7, 6, 10, 29), 'result': '0.040572381966203545', 'result_long': None, 'result_double': None}] Qualite : 0.040572381966203545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22748285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_06_10_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22748285 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_P22748285_07-05-2025_06_10_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, 'pht': 3726}}" where mtr_portfolio_id = 22748285 and dashboard_run_id = 1789279 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`=22748285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365540, 0.040572381966203545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_06_10_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, '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 = 22748931 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': 2800926, 'mtr_portfolio_id': 22748931, 'created_at': datetime.datetime(2025, 5, 7, 6, 10, 58), 'result': '0.04493402199708013', 'result_long': None, 'result_double': None}] Qualite : 0.04493402199708013 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22748931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_06_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22748931 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_P22748931_07-05-2025_06_11_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, 'pht': 3726}}" where mtr_portfolio_id = 22748931 and dashboard_run_id = 1789279 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`=22748931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365541, 0.04493402199708013, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_06_11_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, '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 = 22750050 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': 2800928, 'mtr_portfolio_id': 22750050, 'created_at': datetime.datetime(2025, 5, 7, 6, 11, 29), 'result': '0.035525455797541246', 'result_long': None, 'result_double': None}] Qualite : 0.035525455797541246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750050 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_P22750050_07-05-2025_06_11_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, 'pht': 3726}}" where mtr_portfolio_id = 22750050 and dashboard_run_id = 1789282 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`=22750050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365542, 0.035525455797541246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_06_11_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, '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 = 22750360 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': 2800850, 'mtr_portfolio_id': 22750360, 'created_at': datetime.datetime(2025, 5, 7, 5, 46, 59), 'result': '0.04888496095988462', 'result_long': None, 'result_double': None}] Qualite : 0.04888496095988462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750360 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_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, 'pht': 3726}}" where mtr_portfolio_id = 22750360 and dashboard_run_id = 1789282 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`=22750360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365543, 0.04888496095988462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, '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 = 22750640 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': 2801011, 'mtr_portfolio_id': 22750640, 'created_at': datetime.datetime(2025, 5, 7, 6, 3, 29), 'result': '0.03869306359170151', 'result_long': None, 'result_double': None}] Qualite : 0.03869306359170151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750640_07-05-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750640 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_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, 'pht': 3726}}" where mtr_portfolio_id = 22750640 and dashboard_run_id = 1789282 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`=22750640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365544, 0.03869306359170151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750640_07-05-2025_06_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750676, '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 = 22751196 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': 2801080, 'mtr_portfolio_id': 22751196, 'created_at': datetime.datetime(2025, 5, 7, 6, 15), 'result': '0.04711358640138695', 'result_long': None, 'result_double': None}] Qualite : 0.04711358640138695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22751196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_15_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22751196 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_P22751196_07-05-2025_06_15_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, 'pht': 3726}}" where mtr_portfolio_id = 22751196 and dashboard_run_id = 1789282 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`=22751196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10365545, 0.04711358640138695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22751196_07-05-2025_06_15_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22751203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22751204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22751205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22751206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22751207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22751208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22751209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22751210, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22751211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22751212, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22751213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22751214, '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 (22740041,22741189,22741710,22742314,22743939,22744354,22744792,22745552,22745924,22746301,22746900,22747363,22747808,22748285,22748931,22750050,22750360,22750640,22751196) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,), (1356515156,), (1356515208,), (1356515901,), (1356515952,), (1356516009,), (1356516068,), (1356516118,), (1356516709,), (1356516768,), (1356516802,), (1356517611,), (1356517205,), (1356517282,), (1356517353,), (1356517432,), (1356517511,), (1356518522,), (1356518642,), (1356518772,), (1356520657,), (1356520772,), (1356520880,), (1356520942,), (1356521561,), (1356521613,), (1356521662,), (1356521710,), (1356521766,), (1356521814,), (1356521967,), (1356522017,), (1356522065,), (1356522762,), (1356522842,), (1356522931,), (1356522962,), (1356522997,), (1356523046,), (1356523401,), (1356523447,), (1356523501,), (1356523551,), (1356523604,), (1356523663,), (1356524321,), (1356524362,), (1356525241,), (1356525301,), (1356525336,), (1356525381,), (1356525424,), (1356525488,), (1356525876,), (1356525905,), (1356525912,), (1356525916,), (1356525920,), (1356526224,), (1356526289,), (1356526355,), (1356526529,), (1356526599,), (1356526888,), (1356526916,), (1356526943,), (1356526977,), (1356527139,), (1356527144,), (1356527199,), (1356527283,), (1356527286,), (1356527289,), (1356527297,), (1356527302,), (1356527305,), (1356527328,), (1356527330,), (1356527333,), (1356527336,), (1356527340,), (1356527398,), (1356527388,), (1356527390,), (1356527392,), (1356527394,), (1356527420,), (1356527434,), (1356527575,), (1356527577,), (1356527579,), (1356527598,), (1356527622,), (1356527823,), (1356527833,), (1356527838,), (1356527840,), (1356527842,), (1356527859,), (1356527861,), (1356527864,), (1356527867,), (1356527891,), (1356527895,), (1356527897,), (1356527982,), (1356527986,), (1356527991,), (1356527999,), (1356528003,), (1356528011,), (1356528184,), (1356528189,), (1356528198,), (1356528204,), (1356528209,), (1356528214,), (1356528324,), (1356528352,), (1356528387,), (1356528414,), (1356528872,), (1356528898,), (1356528919,), (1356528924,), (1356529012,), (1356529017,), (1356529019,), (1356529022,), (1356529025,), (1356529113,), (1356529117,), (1356529120,), (1356529170,), (1356529182,), (1356529186,), (1356529237,), (1356529247,), (1356529250,), (1356529261,), (1356529264,), (1356529266,), (1356529406,), (1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,), (1356533731,), (1356533754,), (1356533782,), (1356533815,), (1356533856,), (1356534880,), (1356534890,), (1356534942,), (1356534970,), (1356535000,), (1356535530,), (1356535601,), (1356535647,), (1356536690,), (1356536742,), (1356536792,), (1356536816,), (1356537259,), (1356537293,), (1356537324,), (1356537365,), (1356537396,), (1356538843,), (1356538848,), (1356538852,), (1356538856,), (1356551892,), (1356551883,), (1356551888,), (1356551890,), (1356552007,), (1356552011,), (1356552031,), (1356552173,), (1356552180,), (1356552208,), (1356552234,), (1356552260,), (1356552263,), (1356552266,), (1356552269,), (1356552740,), (1356552754,), (1356552757,), (1356552759,), (1356552897,), (1356552899,), (1356552901,), (1356552908,), (1356552920,), (1356553268,), (1356553293,), (1356553318,), (1356553342,), (1356553365,), (1356553686,), (1356553770,), (1356553774,), (1356553784,), (1356553853,), (1356553856,), (1356553858,), (1356553898,), (1356553907,), (1356553909,), (1356553912,), (1356553915,), (1356553919,), (1356553949,), (1356553999,), (1356554078,), (1356554150,), (1356554223,), (1356554229,), (1356554230,), (1356554232,), (1356554290,), (1356554321,), (1356554356,), (1356554390,), (1356554427,), (1356554447,), (1356554451,), (1356554474,), (1356554480,), (1356554508,), (1356554534,), (1356554715,), (1356554717,), (1356554718,), (1356554720,), (1356554723,), (1356554775,), (1356554741,), (1356554744,), (1356554758,), (1356554771,), (1356554792,), (1356554801,), (1356554832,), (1356554842,), (1356554844,), (1356554846,), (1356554849,), (1356554964,), (1356554991,), (1356555019,), (1356555045,), (1356555374,), (1356555409,), (1356555487,), (1356555573,), (1356555603,), (1356555631,), (1356555840,), (1356555843,), (1356555844,), (1356555847,), (1356555849,), (1356555851,), (1356555975,), (1356556009,), (1356556032,), (1356556056,), (1356556246,), (1356556315,), (1356556317,), (1356556320,), (1356556343,), (1356556346,), (1356556349,), (1356556516,), (1356556546,), (1356557073,), (1356556969,), (1356556995,), (1356557021,), (1356557046,), (1356557252,), (1356557264,), (1356557274,), (1356557385,), (1356557410,), (1356557411,), (1356557413,), (1356557416,), (1356557419,), (1356557454,), (1356557456,), (1356557485,), (1356558044,), (1356558086,), (1356558115,), (1356558146,), (1356558764,), (1356558943,), (1356558979,), (1356559005,), (1356559076,), (1356559426,), (1356559432,), (1356559482,), (1356559538,), (1356559600,), (1356559959,), (1356559984,), (1356560009,), (1356560136,), (1356560190,), (1356560246,), (1356560883,), (1356561039,), (1356561143,), (1356561355,), (1356561771,), (1356561812,), (1356561860,), (1356561896,), (1356561943,), (1356562118,), (1356562123,), (1356562149,), (1356562177,), (1356562213,), (1356562263,), (1356562752,), (1356562797,), (1356562823,), (1356562865,), (1356563467,), (1356563522,), (1356563579,), (1356563627,), (1356564196,), (1356564239,), (1356564259,), (1356564262,), (1356564265,), (1356564287,), (1356564291,), (1356564293,), (1356564295,), (1356564296,), (1356565344,), (1356564955,), (1356565038,), (1356565118,), (1356565195,), (1356565273,), (1356566148,), (1356566196,), (1356566696,), (1356566706,), (1356566708,), (1356566720,), (1356566722,), (1356566745,), (1356566747,), (1356566749,), (1356566751,), (1356566754,), (1356566994,), (1356567021,), (1356567046,), (1356567071,), (1356567100,), (1356567126,), (1356567388,), (1356567413,), (1356567741,), (1356567829,), (1356567852,), (1356567879,), (1356567907,), (1356568160,), (1356568166,), (1356568170,), (1356568175,), (1356568179,), (1356568183,), (1356568192,), (1356568194,), (1356568196,), (1356568460,), (1356568508,), (1356568569,), (1356568596,), (1356568667,), (1356568669,), (1356568674,), (1356568677,), (1356568679,), (1356568739,), (1356568740,), (1356568741,), (1356568758,), (1356568783,), (1356569059,), (1356569084,), (1356569299,), (1356569300,), (1356569301,), (1356569302,), (1356569304,), (1356569306,), (1356569343,), (1356569344,), (1356569346,), (1356569348,), (1356569350,), (1356569598,), (1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,), (1356570872,), (1356570900,), (1356570928,), (1356571270,), (1356571296,), (1356571325,), (1356571362,), (1356571392,), (1356571492,), (1356571494,), (1356571520,), (1356571525,), (1356571528,), (1356571529,), (1356571739,), (1356571767,), (1356571795,), (1356571822,), (1356571848,), (1356572115,), (1356572117,), (1356572119,), (1356572121,), (1356572124,), (1356572253,), (1356572254,), (1356572256,), (1356572258,), (1356572299,), (1356572308,), (1356572312,), (1356572316,), (1356572505,), (1356572583,), (1356572610,), (1356572643,), (1356572667,), (1356572695,), (1356572847,), (1356572848,), (1356572849,), (1356572945,), (1356572983,), (1356573007,), (1356573031,), (1356573357,), (1356573389,), (1356573689,), (1356573713,), (1356575159,), (1356575235,), (1356575267,), (1356575306,), (1356575460,), (1356575475,), (1356575487,), (1356575510,), (1356575789,), (1356575727,), (1356575759,), (1356576071,), (1356576097,), (1356576130,), (1356576159,), (1356576662,), (1356576712,), (1356576743,), (1356576747,), (1356576771,), (1356576803,), (1356576805,), (1356576807,), (1356576809,), (1356576830,), (1356576832,), (1356576834,), (1356576837,), (1356576868,), (1356576870,), (1356576871,), (1356576872,), (1356576873,), (1356576875,), (1356576910,), (1356576913,), (1356576915,), (1356576956,), (1356576957,), (1356576958,), (1356576959,), (1356576961,), (1356576985,), (1356576986,), (1356576987,), (1356576988,), (1356577018,), (1356577019,), (1356577021,), (1356577141,), (1356577186,), (1356577188,), (1356577212,), (1356577214,), (1356577242,), (1356577238,), (1356577272,), (1356577280,), (1356577282,), (1356577284,), (1356577286,), (1356577288,), (1356577421,), (1356577445,), (1356577467,), (1356577489,), (1356577819,), (1356577847,), (1356577872,), (1356578109,), (1356578111,), (1356578112,), (1356578113,), (1356578115,), (1356578159,), (1356578160,), (1356578161,), (1356578162,), (1356578164,), (1356578165,), (1356578194,), (1356578207,), (1356578230,), (1356578261,), (1356578290,), (1356578332,), (1356578895,), (1356578940,), (1356579576,), (1356579616,), (1356579624,), (1356579625,), (1356579763,), (1356579764,), (1356579765,), (1356579766,), (1356579768,), (1356580017,), (1356580068,), (1356580069,), (1356580071,), (1356580295,), (1356580320,), (1356580343,), (1356580417,), (1356580517,), (1356580548,), (1356580826,), (1356580827,), (1356580828,), (1356580829,), (1356580830,), (1356581077,), (1356581102,), (1356581128,), (1356581329,), (1356581333,), (1356581334,), (1356581336,), (1356581338,), (1356581340,), (1356581387,), (1356581384,), (1356581385,), (1356581386,), (1356581428,), (1356581429,), (1356581430,), (1356581432,), (1356581459,), (1356581460,), (1356581487,), (1356581488,), (1356581511,), (1356581514,), (1356581515,), (1356581517,), (1356581519,), (1356581541,), (1356581542,), (1356581543,), (1356581544,), (1356581546,), (1356581571,), (1356581572,), (1356581573,), (1356581574,), (1356581630,), (1356581632,), (1356581653,), (1356581706,), (1356581709,), (1356581711,), (1356581713,), (1356581718,), (1356581738,), (1356581742,), (1356581744,), (1356581746,), (1356581748,), (1356581804,), (1356581806,), (1356581808,), (1356581993,), (1356581998,), (1356582017,), (1356582045,), (1356582069,), (1356582104,), (1356582163,), (1356582167,), (1356582215,), (1356582261,), (1356582270,), (1356582272,), (1356582274,), (1356582277,), (1356582283,), (1356582297,), (1356582303,), (1356582307,), (1356582311,), (1356582313,), (1356582315,), (1356582316,), (1356582355,), (1356582352,), (1356582353,), (1356582354,), (1356582373,), (1356582375,), (1356582377,), (1356582380,), (1356582383,), (1356582385,), (1356582408,), (1356582409,), (1356582410,), (1356582435,), (1356582436,), (1356582437,), (1356582438,), (1356582471,), (1356582473,), (1356582523,), (1356582554,), (1356582588,), (1356582700,), (1356582955,), (1356583810,), (1356583836,), (1356583872,), (1356583905,), (1356583939,), (1356584522,), (1356584587,), (1356584589,), (1356584711,), (1356584713,), (1356584737,), (1356584738,), (1356584740,), (1356584742,), (1356584744,), (1356584747,), (1356585201,), (1356585204,), (1356585206,), (1356585208,), (1356585210,), (1356585478,), (1356585508,), (1356585539,), (1356585592,), (1356585645,), (1356586130,), (1356586171,), (1356586222,), (1356586981,), (1356587007,), (1356587021,), (1356587023,), (1356587026,), (1356587825,), (1356587882,), (1356587943,), (1356588003,), (1356588058,), (1356588677,), (1356588542,), (1356588577,), (1356588610,), (1356588647,), (1356588786,), (1356588816,), (1356588843,), (1356588871,), (1356588899,), (1356588978,), (1356588980,), (1356588982,), (1356588986,), (1356588988,), (1356588990,), (1356589016,), (1356589019,), (1356589021,), (1356589023,), (1356589042,), (1356589045,), (1356589049,), (1356589051,), (1356589073,), (1356589077,), (1356589080,), (1356589082,), (1356589086,), (1356589098,), (1356589100,), (1356589103,), (1356589105,), (1356589107,), (1356589110,), (1356589148,), (1356589150,), (1356589178,), (1356589180,), (1356589182,), (1356589184,), (1356589213,), (1356589227,), (1356589230,), (1356589232,), (1356589235,), (1356589237,), (1356589296,), (1356589298,), (1356589366,), (1356603836,), (1356603837,), (1356603838,), (1356603865,), (1356603867,), (1356603869,), (1356603872,), (1356603877,), (1356603882,), (1356603905,), (1356603906,), (1356603907,), (1356603908,), (1356603934,), (1356603935,), (1356603936,), (1356603937,), (1356603938,), (1356603940,), (1356603980,), (1356603982,), (1356603984,), (1356604029,), (1356604033,), (1356604035,), (1356604037,), (1356604063,), (1356604066,), (1356604069,), (1356604071,), (1356604074,), (1356604109,), (1356604112,), (1356604116,), (1356604120,), (1356604184,), (1356604187,), (1356604188,), (1356604189,), (1356604191,), (1356604192,), (1356604218,), (1356604219,), (1356604220,), (1356604222,), (1356604265,), (1356604266,), (1356604267,), (1356604268,), (1356604270,), (1356604272,), (1356604352,), (1356604377,), (1356604403,), (1356604432,), (1356604614,), (1356604615,), (1356604616,), (1356604617,), (1356604618,), (1356604637,), (1356604881,), (1356604882,), (1356604903,), (1356604923,), (1356605008,), (1356605040,), (1356605105,), (1356605168,), (1356605175,), (1356605191,), (1356605209,), (1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,), (1356607156,), (1356607158,), (1356607160,), (1356607161,), (1356607162,), (1356607165,), (1356607200,), (1356607197,), (1356607198,), (1356607462,), (1356607488,), (1356607515,), (1356607541,), (1356607566,), (1356607592,), (1356607688,), (1356607689,), (1356607690,), (1356607691,), (1356607693,), (1356607727,), (1356607728,), (1356607729,), (1356607730,), (1356607731,), (1356607771,), (1356607772,), (1356607773,), (1356607775,), (1356607776,), (1356607778,), (1356607818,), (1356607819,), (1356607820,), (1356607873,), (1356607875,), (1356607876,), (1356607877,), (1356607878,), (1356607880,), (1356607905,), (1356607906,), (1356607907,), (1356607908,), (1356607938,), (1356607939,), (1356607940,), (1356607941,), (1356607942,), (1356607972,), (1356607978,), (1356607980,), (1356607981,), (1356607999,), (1356608007,), (1356608015,), (1356608017,), (1356608020,), (1356608022,), (1356608044,), (1356608046,), (1356608049,), (1356608050,), (1356608053,), (1356608056,), (1356608074,), (1356608101,), (1356608130,), (1356608157,), (1356609466,), (1356609470,), (1356609475,), (1356609479,), (1356609591,), (1356609611,), (1356609640,), (1356609678,), (1356609706,), (1356609738,), (1356609730,), (1356609733,), (1356609736,), (1356609759,), (1356609761,), (1356609763,), (1356609765,), (1356609767,), (1356609771,), (1356609789,), (1356609791,), (1356609795,), (1356609796,), (1356609804,), (1356609825,), (1356609831,), (1356609836,), (1356609839,), (1356609841,), (1356609855,), (1356609865,), (1356609869,), (1356609871,), (1356609873,), (1356609875,), (1356609913,), (1356609915,), (1356609916,), (1356609917,), (1356609955,), (1356609956,), (1356609957,), (1356609960,), (1356609986,), (1356610012,), (1356610203,), (1356610205,), (1356610222,), (1356610243,), (1356610346,), (1356610347,), (1356610348,), (1356610349,), (1356610351,), (1356610352,), (1356610384,), (1356610385,), (1356610386,), (1356610388,), (1356610390,), (1356610455,), (1356610456,), (1356610457,), (1356610459,), (1356610486,), (1356610488,), (1356610490,), (1356610493,), (1356610496,), (1356610498,), (1356610516,), (1356610518,), (1356610520,), (1356610522,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07052025': {'nb_upload': 64, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22751196]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346] map_info['map_portfolio_photo'] : {22751196: [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346, 1356610243, 1356610222, 1356610205, 1356610203, 1356610012, 1356609986, 1356609960, 1356609957, 1356609956, 1356609955, 1356609917, 1356609916, 1356609915, 1356609913, 1356609875, 1356609873, 1356609871, 1356609869, 1356609865, 1356609855, 1356609841, 1356609839, 1356609836, 1356609831, 1356609825, 1356609804, 1356609796, 1356609795, 1356609791, 1356609789, 1356609771, 1356609767, 1356609765, 1356609763, 1356609761, 1356609759, 1356609736, 1356609733, 1356609730]} final : True mtd_id 4302 list_pids : [1356610522, 1356610520, 1356610518, 1356610516, 1356610498, 1356610496, 1356610493, 1356610490, 1356610488, 1356610486, 1356610459, 1356610457, 1356610456, 1356610455, 1356610390, 1356610388, 1356610386, 1356610385, 1356610384, 1356610352, 1356610351, 1356610349, 1356610348, 1356610347, 1356610346] Looping around the photos to save general results len do output : 1 /22751196Didn'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, '2801080') ('4302', '22751196', '1356610522', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610520', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610518', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610516', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610498', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610496', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610493', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610490', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610488', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610486', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610459', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610457', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610456', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610455', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610390', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610388', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610386', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610385', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610384', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610352', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610351', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610349', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610348', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610347', None, None, None, None, None, '2801080') ('4302', None, None, None, None, None, None, None, '2801080') ('4302', '22751196', '1356610346', None, None, None, None, None, '2801080') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22751196', 'None', None, None, None, None, '2801080'), ('4302', '22751196', '1356610522', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610520', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610518', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610516', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610498', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610496', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610493', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610490', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610488', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610486', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610459', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610457', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610456', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610455', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610390', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610388', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610386', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610385', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610384', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610352', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610351', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610349', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610348', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610347', None, None, None, None, None, '2801080'), ('4302', '22751196', '1356610346', None, None, None, None, None, '2801080')] time used for this insertion : 0.015419721603393555 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.2590668201446533 time spend to save output : 0.015722036361694336 total time spend for step 5 : 1.2747888565063477 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 (2801080) 2.61user 2.20system 0:12.54elapsed 38%CPU (0avgtext+0avgdata 168268maxresident)k 328inputs+21320outputs (17major+77278minor)pagefaults 0swaps