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 : 892578 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 (4197992) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4197992) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264471 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4197992'] with mtr_portfolio_ids : ['29264471'] and first list_photo_ids : [] new path : /proc/892578/ Name: python3 Umask: 0002 State: R (running) Tgid: 892578 Ngid: 0 Pid: 892578 PPid: 892577 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 892578 NSpid: 892578 NSpgid: 891426 NSsid: 891426 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105780 kB VmRSS: 105780 kB RssAnon: 66292 kB RssFile: 39488 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 127 nonvoluntary_ctxt_switches: 185 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '892578', 'Ngid': '0', 'Pid': '892578', 'PPid': '892577', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '892578', 'NSpid': '892578', 'NSpgid': '891426', 'NSsid': '891426', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105780 kB', 'VmRSS': '105780 kB', 'RssAnon': '66292 kB', 'RssFile': '39488 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '127', 'nonvoluntary_ctxt_switches': '185'} ('datou_batch_current', '892578', '1113364', '0', '1113364', '872092', '105780', b'', 'marlene', '4197992') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29264471) 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 (4197992 ) ) 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 (29264471) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398473968, 'portfolio_id': 29264471}, {'photo_id': 1398473961, 'portfolio_id': 29264471}, {'photo_id': 1398473956, 'portfolio_id': 29264471}, {'photo_id': 1398473955, 'portfolio_id': 29264471}, {'photo_id': 1398473937, 'portfolio_id': 29264471}, {'photo_id': 1398473935, 'portfolio_id': 29264471}, {'photo_id': 1398473933, 'portfolio_id': 29264471}, {'photo_id': 1398473931, 'portfolio_id': 29264471}, {'photo_id': 1398473929, 'portfolio_id': 29264471}, {'photo_id': 1398473927, 'portfolio_id': 29264471}, {'photo_id': 1398473907, 'portfolio_id': 29264471}, {'photo_id': 1398473904, 'portfolio_id': 29264471}, {'photo_id': 1398473903, 'portfolio_id': 29264471}, {'photo_id': 1398473901, 'portfolio_id': 29264471}, {'photo_id': 1398473899, 'portfolio_id': 29264471}, {'photo_id': 1398473882, 'portfolio_id': 29264471}, {'photo_id': 1398473881, 'portfolio_id': 29264471}, {'photo_id': 1398473879, 'portfolio_id': 29264471}, {'photo_id': 1398473877, 'portfolio_id': 29264471}, {'photo_id': 1398473866, 'portfolio_id': 29264471}, {'photo_id': 1398473863, 'portfolio_id': 29264471}, {'photo_id': 1398473862, 'portfolio_id': 29264471}, {'photo_id': 1398473861, 'portfolio_id': 29264471}, {'photo_id': 1398473859, 'portfolio_id': 29264471}, {'photo_id': 1398473824, 'portfolio_id': 29264471}, {'photo_id': 1398473821, 'portfolio_id': 29264471}, {'photo_id': 1398473819, 'portfolio_id': 29264471}, {'photo_id': 1398473817, 'portfolio_id': 29264471}, {'photo_id': 1398473815, 'portfolio_id': 29264471}, {'photo_id': 1398473804, 'portfolio_id': 29264471}, {'photo_id': 1398473803, 'portfolio_id': 29264471}, {'photo_id': 1398473802, 'portfolio_id': 29264471}, {'photo_id': 1398473794, 'portfolio_id': 29264471}, {'photo_id': 1398473791, 'portfolio_id': 29264471}, {'photo_id': 1398473788, 'portfolio_id': 29264471}, {'photo_id': 1398473786, 'portfolio_id': 29264471}, {'photo_id': 1398473784, 'portfolio_id': 29264471}, {'photo_id': 1398473783, 'portfolio_id': 29264471}, {'photo_id': 1398473735, 'portfolio_id': 29264471}, {'photo_id': 1398473732, 'portfolio_id': 29264471}, {'photo_id': 1398473730, 'portfolio_id': 29264471}, {'photo_id': 1398473725, 'portfolio_id': 29264471}, {'photo_id': 1398473718, 'portfolio_id': 29264471}, {'photo_id': 1398473684, 'portfolio_id': 29264471}, {'photo_id': 1398473681, 'portfolio_id': 29264471}, {'photo_id': 1398473651, 'portfolio_id': 29264471}, {'photo_id': 1398473621, 'portfolio_id': 29264471}, {'photo_id': 1398473502, 'portfolio_id': 29264471}, {'photo_id': 1398473344, 'portfolio_id': 29264471}, {'photo_id': 1398473341, 'portfolio_id': 29264471}, {'photo_id': 1398473338, 'portfolio_id': 29264471}, {'photo_id': 1398473337, 'portfolio_id': 29264471}, {'photo_id': 1398473336, 'portfolio_id': 29264471}, {'photo_id': 1398473335, 'portfolio_id': 29264471}, {'photo_id': 1398473330, 'portfolio_id': 29264471}, {'photo_id': 1398473328, 'portfolio_id': 29264471}, {'photo_id': 1398473325, 'portfolio_id': 29264471}, {'photo_id': 1398473324, 'portfolio_id': 29264471}, {'photo_id': 1398473321, 'portfolio_id': 29264471}, {'photo_id': 1398473318, 'portfolio_id': 29264471}, {'photo_id': 1398473316, 'portfolio_id': 29264471}, {'photo_id': 1398473314, 'portfolio_id': 29264471}, {'photo_id': 1398473296, 'portfolio_id': 29264471}, {'photo_id': 1398473294, 'portfolio_id': 29264471}, {'photo_id': 1398473293, 'portfolio_id': 29264471}, {'photo_id': 1398473292, 'portfolio_id': 29264471}, {'photo_id': 1398473291, 'portfolio_id': 29264471}, {'photo_id': 1398473277, 'portfolio_id': 29264471}, {'photo_id': 1398473276, 'portfolio_id': 29264471}, {'photo_id': 1398473275, 'portfolio_id': 29264471}, {'photo_id': 1398473274, 'portfolio_id': 29264471}] map_portfolio_id_photo_id: {29264471: [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899, 1398473882, 1398473881, 1398473879, 1398473877, 1398473866, 1398473863, 1398473862, 1398473861, 1398473859, 1398473824, 1398473821, 1398473819, 1398473817, 1398473815, 1398473804, 1398473803, 1398473802, 1398473794, 1398473791, 1398473788, 1398473786, 1398473784, 1398473783, 1398473735, 1398473732, 1398473730, 1398473725, 1398473718, 1398473684, 1398473681, 1398473651, 1398473621, 1398473502, 1398473344, 1398473341, 1398473338, 1398473337, 1398473336, 1398473335, 1398473330, 1398473328, 1398473325, 1398473324, 1398473321, 1398473318, 1398473316, 1398473314, 1398473296, 1398473294, 1398473293, 1398473292, 1398473291, 1398473277, 1398473276, 1398473275, 1398473274]} ##### 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.020795106887817383 #### 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 Mon Dec 8 11:14:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29264471) 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 : 29264471 get user id for portfolio 29264471 get sub ptf for main ptf 29264471, type 3726 and hashtags ['Carton_brun', 'Carton_gris', 'papier', 'plastique', 'mal_croppe', 'kraft', 'environnement', 'cartonnette', 'flou', 'autre_refus', 'Teint_Dans_La_Masse', 'metal'] 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`=29264471 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','papier','plastique','mal_croppe','kraft','environnement','cartonnette','flou','autre_refus','Teint_Dans_La_Masse','metal')) 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`=29264471 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','papier','plastique','mal_croppe','kraft','environnement','cartonnette','flou','autre_refus','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29264471, 'sub_port_id': 29264475, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911400, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}, 'papier': {'main_port_id': 29264471, 'sub_port_id': 29264476, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911401, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}, 'Carton_gris': {'main_port_id': 29264471, 'sub_port_id': 29264477, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911402, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}, 'kraft': {'main_port_id': 29264471, 'sub_port_id': 29264478, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911403, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}, 'environnement': {'main_port_id': 29264471, 'sub_port_id': 29264479, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911404, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}, 'cartonnette': {'main_port_id': 29264471, 'sub_port_id': 29264480, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911405, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29264471, 'sub_port_id': 29264481, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911406, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}, 'mal_croppe': {'main_port_id': 29264471, 'sub_port_id': 29264482, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911407, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}, 'autre_refus': {'main_port_id': 29264471, 'sub_port_id': 29264483, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911408, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}, 'Carton_brun': {'main_port_id': 29264471, 'sub_port_id': 29264484, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911409, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}, 'metal': {'main_port_id': 29264471, 'sub_port_id': 29264485, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911410, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}, 'plastique': {'main_port_id': 29264471, 'sub_port_id': 29264486, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911411, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 2, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29264475 , 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=29264471 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 (29264475) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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 29264476 , 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=29264471 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 (29264476) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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 29264477 , 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=29264471 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 (29264477) result : ((1398473921,), (1398473922,), (1398473945,), (1398473962,), (1398473963,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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 29264478 , 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=29264471 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 (29264478) result : ((1398473967,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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 29264479 , 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=29264471 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 (29264479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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 29264480 , 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=29264471 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 (29264480) result : ((1398473828,), (1398473947,), (1398473948,), (1398473964,), (1398473965,), (1398473966,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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 29264481 , 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=29264471 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 (29264481) result : ((1398473826,), (1398473827,), (1398473918,), (1398473919,), (1398473920,), (1398473943,), (1398473944,), (1398473957,), (1398473958,), (1398473959,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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 29264482 , 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=29264471 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 (29264482) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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 29264483 , 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=29264471 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 (29264483) result : ((1398473960,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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 29264484 , 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=29264471 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 (29264484) result : ((1398473923,), (1398473924,), (1398473949,), (1398473950,), (1398473951,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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 29264485 , 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=29264471 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 (29264485) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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 29264486 , 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=29264471 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 (29264486) result : ((1398473925,), (1398473952,), (1398473953,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29264471) result : ((1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) 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`=29264471 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','papier','plastique','mal_croppe','kraft','environnement','cartonnette','flou','autre_refus','Teint_Dans_La_Masse','metal')) 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`=29264471 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','papier','plastique','mal_croppe','kraft','environnement','cartonnette','flou','autre_refus','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29264471, 'sub_port_id': 29264488, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911412, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}, 'papier': {'main_port_id': 29264471, 'sub_port_id': 29264489, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911413, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}, 'Carton_gris': {'main_port_id': 29264471, 'sub_port_id': 29264490, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911414, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}, 'kraft': {'main_port_id': 29264471, 'sub_port_id': 29264491, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911415, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}, 'environnement': {'main_port_id': 29264471, 'sub_port_id': 29264492, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911416, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}, 'cartonnette': {'main_port_id': 29264471, 'sub_port_id': 29264493, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911417, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 29264471, 'sub_port_id': 29264494, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911418, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}, 'mal_croppe': {'main_port_id': 29264471, 'sub_port_id': 29264495, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911419, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}, 'autre_refus': {'main_port_id': 29264471, 'sub_port_id': 29264496, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911420, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}, 'Carton_brun': {'main_port_id': 29264471, 'sub_port_id': 29264497, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911421, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}, 'metal': {'main_port_id': 29264471, 'sub_port_id': 29264498, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911422, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}, 'plastique': {'main_port_id': 29264471, 'sub_port_id': 29264499, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19911423, 'last_updated_at': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 11, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 11, 3)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264488,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264475 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264489,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264476 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264490,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264477 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264478 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29264499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29264486 lien utilise dans velours : https://marlene.fotonower.com/velours/29264488,29264489,29264490,29264491,29264492,29264493,29264494,29264495,29264496,29264497,29264498,29264499?tags=flou,papier,Carton_gris,kraft,environnement,cartonnette,Teint_Dans_La_Masse,mal_croppe,autre_refus,Carton_brun,metal,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29264471]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899] map_info['map_portfolio_photo'] : {29264471: [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899, 1398473882, 1398473881, 1398473879, 1398473877, 1398473866, 1398473863, 1398473862, 1398473861, 1398473859, 1398473824, 1398473821, 1398473819, 1398473817, 1398473815, 1398473804, 1398473803, 1398473802, 1398473794, 1398473791, 1398473788, 1398473786, 1398473784, 1398473783, 1398473735, 1398473732, 1398473730, 1398473725, 1398473718, 1398473684, 1398473681, 1398473651, 1398473621, 1398473502, 1398473344, 1398473341, 1398473338, 1398473337, 1398473336, 1398473335, 1398473330, 1398473328, 1398473325, 1398473324, 1398473321, 1398473318, 1398473316, 1398473314, 1398473296, 1398473294, 1398473293, 1398473292, 1398473291, 1398473277, 1398473276, 1398473275, 1398473274]} final : False mtd_id 4302 list_pids : [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899] Looping around the photos to save general results len do output : 1 /29264471. 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, '4197992') ('4302', '29264471', '1398473968', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473961', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473956', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473955', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473937', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473935', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473933', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473931', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473929', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473927', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473907', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473904', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473903', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473901', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473899', None, None, None, None, None, '4197992') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '29264471', "{'flou': 29264475, 'papier': 29264476, 'Carton_gris': 29264477, 'kraft': 29264478, 'environnement': 29264479, 'cartonnette': 29264480, 'Teint_Dans_La_Masse': 29264481, 'mal_croppe': 29264482, 'autre_refus': 29264483, 'Carton_brun': 29264484, 'metal': 29264485, 'plastique': 29264486}", None, None, None, None, '4197992'), ('4302', '29264471', '1398473968', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473961', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473956', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473955', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473937', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473935', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473933', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473931', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473929', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473927', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473907', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473904', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473903', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473901', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473899', None, None, None, None, None, '4197992')] time used for this insertion : 0.016811609268188477 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9034626483917236 time spend to save output : 0.017164230346679688 total time spend for step 1 : 1.9206268787384033 step2:final Mon Dec 8 11:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29264471) 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 29264471 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398473277,1398473276,1398473275,1398473274,1398473296,1398473330,1398473294,1398473328,1398473293,1398473325,1398473292,1398473324,1398473291,1398473321,1398473318,1398473316,1398473314,1398473344,1398473341,1398473338,1398473337,1398473336,1398473335,1398473684,1398473681,1398473502,1398473651,1398473621,1398473735,1398473732,1398473730,1398473725,1398473718,1398473794,1398473791,1398473788,1398473786,1398473784,1398473783,1398473804,1398473803,1398473802,1398473824,1398473821,1398473819,1398473817,1398473815,1398473866,1398473863,1398473862,1398473861,1398473859,1398473882,1398473881,1398473879,1398473877,1398473907,1398473904,1398473903,1398473901,1398473899,1398473937,1398473935,1398473933,1398473931,1398473929,1398473927,1398473968,1398473961,1398473956,1398473955); 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([29264471]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} new output for save of step final : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899] map_info['map_portfolio_photo'] : {29264471: [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899, 1398473882, 1398473881, 1398473879, 1398473877, 1398473866, 1398473863, 1398473862, 1398473861, 1398473859, 1398473824, 1398473821, 1398473819, 1398473817, 1398473815, 1398473804, 1398473803, 1398473802, 1398473794, 1398473791, 1398473788, 1398473786, 1398473784, 1398473783, 1398473735, 1398473732, 1398473730, 1398473725, 1398473718, 1398473684, 1398473681, 1398473651, 1398473621, 1398473502, 1398473344, 1398473341, 1398473338, 1398473337, 1398473336, 1398473335, 1398473330, 1398473328, 1398473325, 1398473324, 1398473321, 1398473318, 1398473316, 1398473314, 1398473296, 1398473294, 1398473293, 1398473292, 1398473291, 1398473277, 1398473276, 1398473275, 1398473274]} final : False mtd_id 4302 list_pids : [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899] Looping around the photos to save general results len do output : 15 /1398473968.Didn't retrieve data . /1398473961.Didn't retrieve data . /1398473956.Didn't retrieve data . /1398473955.Didn't retrieve data . /1398473937.Didn't retrieve data . /1398473935.Didn't retrieve data . /1398473933.Didn't retrieve data . /1398473931.Didn't retrieve data . /1398473929.Didn't retrieve data . /1398473927.Didn't retrieve data . /1398473907.Didn't retrieve data . /1398473904.Didn't retrieve data . /1398473903.Didn't retrieve data . /1398473901.Didn't retrieve data . /1398473899.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, '4197992') ('4302', '29264471', '1398473968', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473961', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473956', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473955', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473937', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473935', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473933', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473931', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473929', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473927', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473907', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473904', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473903', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473901', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473899', None, None, None, None, None, '4197992') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '29264471', '1398473968', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473961', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473956', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473955', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473937', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473935', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473933', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473931', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473929', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473927', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473907', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473904', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473903', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473901', '0.041829498178569735', None, None, None, None, '4197992'), ('4302', '29264471', '1398473899', '0.041829498178569735', None, None, None, None, '4197992')] time used for this insertion : 0.017334461212158203 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08161544799804688 time spend to save output : 0.018041610717773438 total time spend for step 2 : 0.09965705871582031 step3:velours_tree Mon Dec 8 11:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29264471: [{'flou': 29264475, 'papier': 29264476, 'Carton_gris': 29264477, 'kraft': 29264478, 'environnement': 29264479, 'cartonnette': 29264480, 'Teint_Dans_La_Masse': 29264481, 'mal_croppe': 29264482, 'autre_refus': 29264483, 'Carton_brun': 29264484, 'metal': 29264485, 'plastique': 29264486}]} input_args_next_step : {29264471: ()} output_args : {29264471: [{'flou': 29264475, 'papier': 29264476, 'Carton_gris': 29264477, 'kraft': 29264478, 'environnement': 29264479, 'cartonnette': 29264480, 'Teint_Dans_La_Masse': 29264481, 'mal_croppe': 29264482, 'autre_refus': 29264483, 'Carton_brun': 29264484, 'metal': 29264485, 'plastique': 29264486}]} args : 29264471 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 29264475, 'papier': 29264476, 'Carton_gris': 29264477, 'kraft': 29264478, 'environnement': 29264479, 'cartonnette': 29264480, 'Teint_Dans_La_Masse': 29264481, 'mal_croppe': 29264482, 'autre_refus': 29264483, 'Carton_brun': 29264484, 'metal': 29264485, 'plastique': 29264486},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29264471) 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([29264471]) 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.3275790214538574 time spend to save output : 7.987022399902344e-05 total time spend for step 3 : 0.32765889167785645 step4:send_mail_cod Mon Dec 8 11:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} input_args_next_step : {1398473968: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473968 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473961 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473956 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473955 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473937 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473935 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473933 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473931 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473929 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473927 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473907 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473904 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473903 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473901 depend.output_id : 0 input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ()} output_args : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',)} args : 1398473899 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 : {29264471: [{'flou': 29264475, 'papier': 29264476, 'Carton_gris': 29264477, 'kraft': 29264478, 'environnement': 29264479, 'cartonnette': 29264480, 'Teint_Dans_La_Masse': 29264481, 'mal_croppe': 29264482, 'autre_refus': 29264483, 'Carton_brun': 29264484, 'metal': 29264485, 'plastique': 29264486}]} input_args_next_step : {1398473968: ('0.041829498178569735',), 1398473961: ('0.041829498178569735',), 1398473956: ('0.041829498178569735',), 1398473955: ('0.041829498178569735',), 1398473937: ('0.041829498178569735',), 1398473935: ('0.041829498178569735',), 1398473933: ('0.041829498178569735',), 1398473931: ('0.041829498178569735',), 1398473929: ('0.041829498178569735',), 1398473927: ('0.041829498178569735',), 1398473907: ('0.041829498178569735',), 1398473904: ('0.041829498178569735',), 1398473903: ('0.041829498178569735',), 1398473901: ('0.041829498178569735',), 1398473899: ('0.041829498178569735',), 29264471: ()} output_args : {29264471: [{'flou': 29264475, 'papier': 29264476, 'Carton_gris': 29264477, 'kraft': 29264478, 'environnement': 29264479, 'cartonnette': 29264480, 'Teint_Dans_La_Masse': 29264481, 'mal_croppe': 29264482, 'autre_refus': 29264483, 'Carton_brun': 29264484, 'metal': 29264485, 'plastique': 29264486}]} args : 29264471 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 :16, first value : ('0.041829498178569735',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29264471) 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_view ph WHERE photo_id IN (1398473968,1398473961,1398473956,1398473955,1398473937,1398473935,1398473933,1398473931,1398473929,1398473927,1398473907,1398473904,1398473903,1398473901,1398473899) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398473899 begin to download photo : 1398473907 begin to download photo : 1398473933 begin to download photo : 1398473956 download finish for photo 1398473956 begin to download photo : 1398473961 download finish for photo 1398473907 begin to download photo : 1398473927 download finish for photo 1398473933 begin to download photo : 1398473935 download finish for photo 1398473899 begin to download photo : 1398473901 download finish for photo 1398473961 begin to download photo : 1398473968 download finish for photo 1398473927 begin to download photo : 1398473929 download finish for photo 1398473935 begin to download photo : 1398473937 download finish for photo 1398473901 begin to download photo : 1398473903 download finish for photo 1398473968 download finish for photo 1398473929 begin to download photo : 1398473931 download finish for photo 1398473937 begin to download photo : 1398473955 download finish for photo 1398473903 begin to download photo : 1398473904 download finish for photo 1398473931 download finish for photo 1398473955 download finish for photo 1398473904 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette292644751765188899/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P29264471_08-12-2025_11_14_59.pdf 29264475 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264475 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292644751765188899 29264478 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264478 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398473967: '1765188687_2809662_1398473794_096e9ba0a628165838b93f693e7d038a_rle_crop_4063202860_0.png'} change filename to text .imagette292644781765188899/ imagette292644781765188899/1765188687_2809662_1398473794_096e9ba0a628165838b93f693e7d038a_rle_crop_4063202860_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/618e03114533d02273a393a261a09448_94535655.png imagette292644781765188899 29264480 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398473828: '1765188426_2802390_1398473314_4d33813becb0aa8545d8c76c7712a03f_rle_crop_4063200116_0.png', 1398473947: '1765188786_2813047_1398473786_7394cebc1e1c29db0fe8bcb2711b25ca_rle_crop_4063202789_0.png', 1398473948: '1765188786_2813047_1398473784_58b8e1687f4eb21df89f7b1cf2b982c7_rle_crop_4063202839_0.png', 1398473964: '1765188687_2809662_1398473794_096e9ba0a628165838b93f693e7d038a_rle_crop_4063202859_0.png', 1398473965: '1765188687_2809662_1398473725_b2b5981d38509364178578f1881e3bf0_rle_crop_4063202891_0.png', 1398473966: '1765188687_2809662_1398473718_326d6d70f8d54022c14d118a8491475b_rle_crop_4063202905_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/aa94aeb82c607efdc1934aef9ecb2a14_48480879.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/8664dc6bf6454124bd902103d1b4fbff_54076639.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/23d0403ca66e7624cb3723e26df48c2e_1804258.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/f14826d54dfb347cbb6d83b724c58654_58068261.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/d5137271518442490c17ca2d61093988_97970700.png change filename to text .imagette292644801765188899/ imagette292644801765188899/1765188786_2813047_1398473786_7394cebc1e1c29db0fe8bcb2711b25ca_rle_crop_4063202789_0.png.png imagette292644801765188899/1765188687_2809662_1398473794_096e9ba0a628165838b93f693e7d038a_rle_crop_4063202859_0.png.png imagette292644801765188899/1765188426_2802390_1398473314_4d33813becb0aa8545d8c76c7712a03f_rle_crop_4063200116_0.png.png imagette292644801765188899/1765188786_2813047_1398473784_58b8e1687f4eb21df89f7b1cf2b982c7_rle_crop_4063202839_0.png.png imagette292644801765188899/1765188687_2809662_1398473725_b2b5981d38509364178578f1881e3bf0_rle_crop_4063202891_0.png.png imagette292644801765188899/1765188687_2809662_1398473718_326d6d70f8d54022c14d118a8491475b_rle_crop_4063202905_0.png.png imagette292644821765188899/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/2fece2a725afd7a2b0895c7dbbcfb56e_84636317.png imagette292644801765188899 29264482 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264482 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292644821765188899 29264483 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398473960: '1765188687_2809662_1398473794_096e9ba0a628165838b93f693e7d038a_rle_crop_4063202858_0.png'} change filename to text .imagette292644831765188899/ imagette292644831765188899/1765188687_2809662_1398473794_096e9ba0a628165838b93f693e7d038a_rle_crop_4063202858_0.png.png imagette292644851765188899/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/f3f18a2e30bb4f8e18b9555085e1f192_59823805.png imagette292644831765188899 29264485 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264485 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292644851765188899 29264486 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398473925: '1765188746_2810886_1398473819_0e4fe348cb95dbbbf4ec72b5a263db60_rle_crop_4063200771_0.png', 1398473952: '1765188786_2813047_1398473788_7c8bcb61ae1c778c64e52523153150ae_rle_crop_4063202780_0.png', 1398473953: '1765188786_2813047_1398473786_7394cebc1e1c29db0fe8bcb2711b25ca_rle_crop_4063202797_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/2a511f46b22bc88ab5b3bc535168cc02_82586202.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/774f2dbb6f2804d06f1e5772159f2068_66441549.png change filename to text .imagette292644861765188899/ imagette292644861765188899/1765188786_2813047_1398473786_7394cebc1e1c29db0fe8bcb2711b25ca_rle_crop_4063202797_0.png.png imagette292644861765188899/1765188786_2813047_1398473788_7c8bcb61ae1c778c64e52523153150ae_rle_crop_4063202780_0.png.png imagette292644861765188899/1765188746_2810886_1398473819_0e4fe348cb95dbbbf4ec72b5a263db60_rle_crop_4063200771_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/a732a6f0cf3a0f84f218142d5a187ec2_91866394.png imagette292644861765188899 29264477 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264477 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398473921: '1765188746_2810886_1398473821_66e1f99a485b713969e618e31cf9286a_rle_crop_4063200759_0.png', 1398473922: '1765188746_2810886_1398473821_66e1f99a485b713969e618e31cf9286a_rle_crop_4063200757_0.png', 1398473945: '1765188786_2813047_1398473784_58b8e1687f4eb21df89f7b1cf2b982c7_rle_crop_4063202832_0.png', 1398473962: '1765188687_2809662_1398473794_096e9ba0a628165838b93f693e7d038a_rle_crop_4063202862_0.png', 1398473963: '1765188687_2809662_1398473718_326d6d70f8d54022c14d118a8491475b_rle_crop_4063202915_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/667d014f18eaa3e3e7b82ce44de1922a_66639182.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/8d631ffada5f07a33924667b13ae99ed_26773012.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/8ab7daca7687fb99098165eb433602f6_22340308.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/5ec79f7f2e6bf4d9f9016234d4a420be_23167174.png change filename to text .imagette292644771765188900/ imagette292644771765188900/1765188786_2813047_1398473784_58b8e1687f4eb21df89f7b1cf2b982c7_rle_crop_4063202832_0.png.png imagette292644771765188900/1765188746_2810886_1398473821_66e1f99a485b713969e618e31cf9286a_rle_crop_4063200757_0.png.png imagette292644771765188900/1765188746_2810886_1398473821_66e1f99a485b713969e618e31cf9286a_rle_crop_4063200759_0.png.png imagette292644771765188900/1765188687_2809662_1398473718_326d6d70f8d54022c14d118a8491475b_rle_crop_4063202915_0.png.png imagette292644771765188900/1765188687_2809662_1398473794_096e9ba0a628165838b93f693e7d038a_rle_crop_4063202862_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/76c46f1010f136b214df080f4db444a0_7350058.png imagette292644771765188900 29264481 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398473826: '1765188426_2802390_1398473314_4d33813becb0aa8545d8c76c7712a03f_rle_crop_4063200121_0.png', 1398473827: '1765188426_2802390_1398473314_4d33813becb0aa8545d8c76c7712a03f_rle_crop_4063200123_0.png', 1398473918: '1765188746_2810886_1398473821_66e1f99a485b713969e618e31cf9286a_rle_crop_4063200760_0.png', 1398473919: '1765188746_2810886_1398473821_66e1f99a485b713969e618e31cf9286a_rle_crop_4063200763_0.png', 1398473920: '1765188746_2810886_1398473815_f66e81dafc6823eb96f5d2a7d12aa966_rle_crop_4063200837_0.png', 1398473943: '1765188786_2813047_1398473786_7394cebc1e1c29db0fe8bcb2711b25ca_rle_crop_4063202798_0.png', 1398473944: '1765188786_2813047_1398473784_58b8e1687f4eb21df89f7b1cf2b982c7_rle_crop_4063202837_0.png', 1398473957: '1765188687_2809662_1398473730_b11057b4c1c9ccece1f5d69ad6591a35_rle_crop_4063202886_0.png', 1398473958: '1765188687_2809662_1398473730_b11057b4c1c9ccece1f5d69ad6591a35_rle_crop_4063202880_0.png', 1398473959: '1765188687_2809662_1398473725_b2b5981d38509364178578f1881e3bf0_rle_crop_4063202897_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/da5a454732c47eba17ac060c873dd009_93680973.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/342090fb1ed069f0f95d7ebe8639df2d_89318305.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/d3809e9cd3488fe388847af06a9357cc_63358722.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/28cb9bdf52fb0e29bcca19f18f1116d0_80374187.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/006728baf4a5fc595db21b59ff3a093b_14713091.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/ccd35c6bf8087e2cd7fa1df94a687e97_48133088.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/834e9e85e8f9711ea7044b757bcf6896_92418577.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/23ef5c74921afa6ff390ae24c7d29035_95821796.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/7eae7d29c3efefd13a3c07101b159126_87284161.png change filename to text .imagette292644811765188900/ imagette292644811765188900/1765188746_2810886_1398473815_f66e81dafc6823eb96f5d2a7d12aa966_rle_crop_4063200837_0.png.png imagette292644811765188900/1765188687_2809662_1398473725_b2b5981d38509364178578f1881e3bf0_rle_crop_4063202897_0.png.png imagette292644811765188900/1765188687_2809662_1398473730_b11057b4c1c9ccece1f5d69ad6591a35_rle_crop_4063202880_0.png.png imagette292644811765188900/1765188746_2810886_1398473821_66e1f99a485b713969e618e31cf9286a_rle_crop_4063200760_0.png.png imagette292644811765188900/1765188786_2813047_1398473786_7394cebc1e1c29db0fe8bcb2711b25ca_rle_crop_4063202798_0.png.png imagette292644811765188900/1765188786_2813047_1398473784_58b8e1687f4eb21df89f7b1cf2b982c7_rle_crop_4063202837_0.png.png imagette292644811765188900/1765188746_2810886_1398473821_66e1f99a485b713969e618e31cf9286a_rle_crop_4063200763_0.png.png imagette292644811765188900/1765188687_2809662_1398473730_b11057b4c1c9ccece1f5d69ad6591a35_rle_crop_4063202886_0.png.png imagette292644811765188900/1765188426_2802390_1398473314_4d33813becb0aa8545d8c76c7712a03f_rle_crop_4063200121_0.png.png imagette292644811765188900/1765188426_2802390_1398473314_4d33813becb0aa8545d8c76c7712a03f_rle_crop_4063200123_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/ad83c2400ad299ec47830a42e243a9a4_28167607.png imagette292644811765188900 29264484 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398473923: '1765188746_2810886_1398473821_66e1f99a485b713969e618e31cf9286a_rle_crop_4063200764_0.png', 1398473924: '1765188746_2810886_1398473819_0e4fe348cb95dbbbf4ec72b5a263db60_rle_crop_4063200772_0.png', 1398473949: '1765188786_2813047_1398473791_bc74beefaa34c361e691d64068835e57_rle_crop_4063202766_0.png', 1398473950: '1765188786_2813047_1398473788_7c8bcb61ae1c778c64e52523153150ae_rle_crop_4063202784_0.png', 1398473951: '1765188786_2813047_1398473786_7394cebc1e1c29db0fe8bcb2711b25ca_rle_crop_4063202795_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/8762b6aae6c2b024ffc7995ed6d3df72_66360181.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/4fbfce109590b97592f8420916272a9a_51876865.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/899af365698f787f63f418fae5dec455_47656202.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/95dde4003b2fb81ccdb0a43527efed65_40794796.png change filename to text .imagette292644841765188901/ imagette292644841765188901/1765188786_2813047_1398473788_7c8bcb61ae1c778c64e52523153150ae_rle_crop_4063202784_0.png.png imagette292644841765188901/1765188786_2813047_1398473791_bc74beefaa34c361e691d64068835e57_rle_crop_4063202766_0.png.png imagette292644841765188901/1765188746_2810886_1398473819_0e4fe348cb95dbbbf4ec72b5a263db60_rle_crop_4063200772_0.png.png imagette292644841765188901/1765188746_2810886_1398473821_66e1f99a485b713969e618e31cf9286a_rle_crop_4063200764_0.png.png imagette292644841765188901/1765188786_2813047_1398473786_7394cebc1e1c29db0fe8bcb2711b25ca_rle_crop_4063202795_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/1e512fa8c4eb589dc72ef06f1913cc2d_73540518.png imagette292644841765188901 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29264471 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29264488,29264489,29264490,29264491,29264492,29264493,29264494,29264495,29264496,29264497,29264498,29264499?tags=flou,papier,Carton_gris,kraft,environnement,cartonnette,Teint_Dans_La_Masse,mal_croppe,autre_refus,Carton_brun,metal,plastique your option no_mail is active, we will not send the real mail to your client args[1398473968] : ('0.041829498178569735',) no score found for photo 1398473968 We are sending mail with results at report@fotonower.com args[1398473961] : ('0.041829498178569735',) no score found for photo 1398473961 We are sending mail with results at report@fotonower.com args[1398473956] : ('0.041829498178569735',) no score found for photo 1398473956 We are sending mail with results at report@fotonower.com args[1398473955] : ('0.041829498178569735',) no score found for photo 1398473955 We are sending mail with results at report@fotonower.com args[1398473937] : ('0.041829498178569735',) no score found for photo 1398473937 We are sending mail with results at report@fotonower.com args[1398473935] : ('0.041829498178569735',) no score found for photo 1398473935 We are sending mail with results at report@fotonower.com args[1398473933] : ('0.041829498178569735',) no score found for photo 1398473933 We are sending mail with results at report@fotonower.com args[1398473931] : ('0.041829498178569735',) no score found for photo 1398473931 We are sending mail with results at report@fotonower.com args[1398473929] : ('0.041829498178569735',) no score found for photo 1398473929 We are sending mail with results at report@fotonower.com args[1398473927] : ('0.041829498178569735',) no score found for photo 1398473927 We are sending mail with results at report@fotonower.com args[1398473907] : ('0.041829498178569735',) no score found for photo 1398473907 We are sending mail with results at report@fotonower.com args[1398473904] : ('0.041829498178569735',) no score found for photo 1398473904 We are sending mail with results at report@fotonower.com args[1398473903] : ('0.041829498178569735',) no score found for photo 1398473903 We are sending mail with results at report@fotonower.com args[1398473901] : ('0.041829498178569735',) no score found for photo 1398473901 We are sending mail with results at report@fotonower.com args[1398473899] : ('0.041829498178569735',) no score found for photo 1398473899 We are sending mail with results at report@fotonower.com refus_total : 0.041829498178569735 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264471 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_P29264471_08-12-2025_11_14_59.pdf results_Auto_P29264471_08-12-2025_11_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29264471_08-12-2025_11_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29264471','results_Auto_P29264471_08-12-2025_11_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29264471_08-12-2025_11_14_59.pdf','pdf','','0.2','0.041829498178569735') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29264471]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899] map_info['map_portfolio_photo'] : {29264471: [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899, 1398473882, 1398473881, 1398473879, 1398473877, 1398473866, 1398473863, 1398473862, 1398473861, 1398473859, 1398473824, 1398473821, 1398473819, 1398473817, 1398473815, 1398473804, 1398473803, 1398473802, 1398473794, 1398473791, 1398473788, 1398473786, 1398473784, 1398473783, 1398473735, 1398473732, 1398473730, 1398473725, 1398473718, 1398473684, 1398473681, 1398473651, 1398473621, 1398473502, 1398473344, 1398473341, 1398473338, 1398473337, 1398473336, 1398473335, 1398473330, 1398473328, 1398473325, 1398473324, 1398473321, 1398473318, 1398473316, 1398473314, 1398473296, 1398473294, 1398473293, 1398473292, 1398473291, 1398473277, 1398473276, 1398473275, 1398473274]} final : False mtd_id 4302 list_pids : [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899] 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, '4197992') ('4302', '29264471', '1398473968', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473961', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473956', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473955', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473937', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473935', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473933', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473931', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473929', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473927', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473907', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473904', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473903', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473901', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473899', None, None, None, None, None, '4197992') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '29264471', '1398473968', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473961', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473956', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473955', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473937', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473935', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473933', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473931', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473929', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473927', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473907', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473904', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473903', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473901', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473899', None, None, None, None, None, '4197992')] time used for this insertion : 0.016350507736206055 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.713934659957886 time spend to save output : 0.016605615615844727 total time spend for step 4 : 4.7305402755737305 step5:split_time_score Mon Dec 8 11:15:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29264471'] 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 : [('29264471',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29264471) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398473956: {'path': 'temp/1765188898_892578_1398473956_faa9557b05d1c70aaf18a6df6decca1f.jpg', 'extension': 'jpg'}, 1398473961: {'path': 'temp/1765188898_892578_1398473961_8269324de2c1bd5965ab51a80c2c4a9f.jpg', 'extension': 'jpg'}, 1398473968: {'path': 'temp/1765188898_892578_1398473968_229b84b5688d20c9f86789c7f4b7142b.jpg', 'extension': 'jpg'}, 1398473907: {'path': 'temp/1765188898_892578_1398473907_6ca65f3128cf400b37f53e4b20215631.jpg', 'extension': 'jpg'}, 1398473927: {'path': 'temp/1765188898_892578_1398473927_7c7375dd1cb3287b62deff52018234bd.jpg', 'extension': 'jpg'}, 1398473929: {'path': 'temp/1765188898_892578_1398473929_c7d470b2f8bd809c6f587bc62f00a0a9.jpg', 'extension': 'jpg'}, 1398473931: {'path': 'temp/1765188898_892578_1398473931_f6cbc49cce58b277ebe4e2a403c6e304.jpg', 'extension': 'jpg'}, 1398473933: {'path': 'temp/1765188898_892578_1398473933_5d8c73dd2eabdfc4510e91f113427ddd.jpg', 'extension': 'jpg'}, 1398473935: {'path': 'temp/1765188898_892578_1398473935_4002b501bfe9202a06d12d002f9b8bfc.jpg', 'extension': 'jpg'}, 1398473937: {'path': 'temp/1765188898_892578_1398473937_d7892077bbe3074a2144e5a6ede5793c.jpg', 'extension': 'jpg'}, 1398473955: {'path': 'temp/1765188898_892578_1398473955_76c23aeed3321b835e34234ac2dd7e76.jpg', 'extension': 'jpg'}, 1398473899: {'path': 'temp/1765188898_892578_1398473899_3c7d33009267b229007bead7390f3252.jpg', 'extension': 'jpg'}, 1398473901: {'path': 'temp/1765188898_892578_1398473901_b728a6d59acc14ba9fbdd72038207ec4.jpg', 'extension': 'jpg'}, 1398473903: {'path': 'temp/1765188898_892578_1398473903_0ec4088cb9136dadfdb94c42ca4bc47a.jpg', 'extension': 'jpg'}, 1398473904: {'path': 'temp/1765188898_892578_1398473904_0f3b810df5e6b75ba25bb9020de127fc.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 = 29264471; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29264471 group by h (('11', 71),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29264471 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 (29264471) 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 (29264471) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08122025 29264471 Nombre de photos uploadées : 71 / 23040 (0%) 08122025 29264471 Nombre de photos taguées (types de déchets): 0 / 71 (0%) 08122025 29264471 Nombre de photos taguées (volume) : 0 / 71 (0%) [{'photo_id': 1398473277, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/b90c3ec996f693e94a20a32505b91917.jpg', 'username': None, 'uploaded_at': 1765188068, 'text': 'image_08122025_11_00_14_10194.jpg'}, {'photo_id': 1398473276, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/ed523b9d7ca1c080a273666aabd2a8dc.jpg', 'username': None, 'uploaded_at': 1765188068, 'text': 'image_08122025_11_00_24_10136.jpg'}, {'photo_id': 1398473275, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/d7c1be26cd2e1fd4e6ac67e4af7d8eb5.jpg', 'username': None, 'uploaded_at': 1765188068, 'text': 'image_08122025_11_00_34_10139.jpg'}, {'photo_id': 1398473274, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/d65010d5238714178314af837167e189.jpg', 'username': None, 'uploaded_at': 1765188068, 'text': 'image_08122025_11_00_45_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 8.821487426757812e-06 elapsed_time : order_list_meta_photo_and_scores 8.106231689453125e-06 ??????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0035352706909179688 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29264471, '2025-12-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-08' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2707961,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.34247565269470215 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= 2707961 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29255719, 'dashboard_result_id': 18164973, '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_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29256022, 'dashboard_result_id': 18164974, '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_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29256393, 'dashboard_result_id': 18164975, '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_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29256636, 'dashboard_result_id': 18164976, '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_P29256636_08-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29256977, 'dashboard_result_id': 18164978, '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_P29256977_08-12-2025_06_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256997, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29257386, 'dashboard_result_id': 18164979, '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_P29257386_08-12-2025_06_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257404, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29257806, 'dashboard_result_id': 18164980, '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_P29257806_08-12-2025_06_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257825, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29258277, 'dashboard_result_id': 18164982, '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_P29258277_08-12-2025_08_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258292, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29258540, 'dashboard_result_id': 18164983, '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_P29258540_08-12-2025_07_19_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258554, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29258890, 'dashboard_result_id': 18164984, '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_P29258890_08-12-2025_09_01_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258929, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29259327, 'dashboard_result_id': 18164985, '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_P29259327_08-12-2025_07_39_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29259348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259351, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29259708, 'dashboard_result_id': 18164987, '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_P29259708_08-12-2025_09_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29259710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259721, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29259983, 'dashboard_result_id': 18164988, '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_P29259983_08-12-2025_09_46_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29260000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260011, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29260534, 'dashboard_result_id': 18164989, '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_P29260534_08-12-2025_10_01_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29260541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260548, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29260974, 'dashboard_result_id': 18164990, '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_P29260974_08-12-2025_08_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29260977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260986, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29261339, 'dashboard_result_id': 18164991, '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_P29261339_08-12-2025_09_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29261347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29261348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29261349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29261350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29261351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29261352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29261353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29261354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29261355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29261356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29261357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29261358, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29262157, 'dashboard_result_id': 18164993, '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_P29262157_08-12-2025_09_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29262160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29262161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29262162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29262163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29262164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29262165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29262166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29262167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29262168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29262169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29262170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29262171, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29262328, 'dashboard_result_id': 18164994, '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_P29262328_08-12-2025_10_03_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29262336, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29262337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29262338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29262339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29262340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29262341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29262342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29262343, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29262344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29262345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29262346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29262347, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29262661, 'dashboard_result_id': 18164995, '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_P29262661_08-12-2025_10_22_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29262674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29262675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29262676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29262677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29262678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29262679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29262680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29262681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29262682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29262683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29262684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29262685, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29263236, 'dashboard_result_id': 18164996, '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_P29263236_08-12-2025_10_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29263240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29263241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29263242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29263243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29263244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29263245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29263246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29263247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29263248, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29263249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29263250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29263251, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29263582, 'dashboard_result_id': 18164997, '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_P29263582_08-12-2025_10_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29263590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29263591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29263592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29263593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29263594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29263595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29263596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29263597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29263598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29263599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29263600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29263601, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29264029, 'dashboard_result_id': 18164998, '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_P29264029_08-12-2025_10_59_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29264034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29264035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29264036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29264037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29264038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29264039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29264040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29264041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29264042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29264043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29264044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29264045, 'pht': 3726}}"}, {'dashboat_entry_day': 2707961, 'dashboard_run_id': 2716140, 'mtr_portfolio_id': 29264471, 'dashboard_result_id': 18164999, '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_P29264471_08-12-2025_11_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29264475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29264476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29264477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29264478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29264479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29264480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29264481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29264482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29264483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29264484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29264485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29264486, '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 = 29255719 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': 4196026, 'mtr_portfolio_id': 29255719, 'created_at': datetime.datetime(2025, 12, 8, 5, 18, 57), 'result': '0.05990018281379398', 'result_long': None, 'result_double': None}] Qualite : 0.05990018281379398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29255719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29255719_08-12-2025_05_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29255719 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_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, 'pht': 3726}}" where mtr_portfolio_id = 29255719 and dashboard_run_id = 2716140 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`=29255719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164973, 0.05990018281379398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, '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 = 29256022 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': 4196067, 'mtr_portfolio_id': 29256022, 'created_at': datetime.datetime(2025, 12, 8, 5, 33, 28), 'result': '0.04719160142858799', 'result_long': None, 'result_double': None}] Qualite : 0.04719160142858799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256022_08-12-2025_05_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256022 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_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, 'pht': 3726}}" where mtr_portfolio_id = 29256022 and dashboard_run_id = 2716140 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`=29256022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164974, 0.04719160142858799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, '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 = 29256393 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': 4196120, 'mtr_portfolio_id': 29256393, 'created_at': datetime.datetime(2025, 12, 8, 5, 47, 32), 'result': '0.0539279006370315', 'result_long': None, 'result_double': None}] Qualite : 0.0539279006370315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256393_08-12-2025_05_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256393 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_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, 'pht': 3726}}" where mtr_portfolio_id = 29256393 and dashboard_run_id = 2716140 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`=29256393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164975, 0.0539279006370315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, '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 = 29256636 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': 4196202, 'mtr_portfolio_id': 29256636, 'created_at': datetime.datetime(2025, 12, 8, 6, 3), 'result': '0.04805929919042539', 'result_long': None, 'result_double': None}] Qualite : 0.04805929919042539 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256636_08-12-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256636 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_P29256636_08-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, 'pht': 3726}}" where mtr_portfolio_id = 29256636 and dashboard_run_id = 2716140 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`=29256636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164976, 0.04805929919042539, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256636_08-12-2025_06_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, '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 = 29256977 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': 4196288, 'mtr_portfolio_id': 29256977, 'created_at': datetime.datetime(2025, 12, 8, 6, 18, 58), 'result': '0.05292196535495374', 'result_long': None, 'result_double': None}] Qualite : 0.05292196535495374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256977_08-12-2025_06_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256977 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_P29256977_08-12-2025_06_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256997, 'pht': 3726}}" where mtr_portfolio_id = 29256977 and dashboard_run_id = 2716140 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`=29256977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164978, 0.05292196535495374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256977_08-12-2025_06_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256994, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256997, '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 = 29257386 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': 4196402, 'mtr_portfolio_id': 29257386, 'created_at': datetime.datetime(2025, 12, 8, 6, 33, 1), 'result': '0.03985537336291286', 'result_long': None, 'result_double': None}] Qualite : 0.03985537336291286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29257386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257386_08-12-2025_06_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29257386 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_P29257386_08-12-2025_06_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257404, 'pht': 3726}}" where mtr_portfolio_id = 29257386 and dashboard_run_id = 2716140 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`=29257386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164979, 0.03985537336291286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257386_08-12-2025_06_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257404, '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 = 29257806 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': 4196471, 'mtr_portfolio_id': 29257806, 'created_at': datetime.datetime(2025, 12, 8, 6, 48, 58), 'result': '0.061730316338566356', 'result_long': None, 'result_double': None}] Qualite : 0.061730316338566356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29257806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257806_08-12-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29257806 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_P29257806_08-12-2025_06_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257825, 'pht': 3726}}" where mtr_portfolio_id = 29257806 and dashboard_run_id = 2716140 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`=29257806 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164980, 0.061730316338566356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29257806_08-12-2025_06_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29257814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29257815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29257816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29257817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29257818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29257819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29257820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29257821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29257822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29257823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29257824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29257825, '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 = 29258277 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': 4196559, 'mtr_portfolio_id': 29258277, 'created_at': datetime.datetime(2025, 12, 8, 8, 30, 59), 'result': '0.043680068278656836', 'result_long': None, 'result_double': None}] Qualite : 0.043680068278656836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29258277 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258277_08-12-2025_08_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29258277 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_P29258277_08-12-2025_08_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258292, 'pht': 3726}}" where mtr_portfolio_id = 29258277 and dashboard_run_id = 2716140 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`=29258277 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164982, 0.043680068278656836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258277_08-12-2025_08_31_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258285, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258292, '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 = 29258540 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': 4196630, 'mtr_portfolio_id': 29258540, 'created_at': datetime.datetime(2025, 12, 8, 7, 19, 57), 'result': '0.05697171000745336', 'result_long': None, 'result_double': None}] Qualite : 0.05697171000745336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29258540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258540_08-12-2025_07_19_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29258540 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_P29258540_08-12-2025_07_19_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258554, 'pht': 3726}}" where mtr_portfolio_id = 29258540 and dashboard_run_id = 2716140 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`=29258540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164983, 0.05697171000745336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258540_08-12-2025_07_19_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258548, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258554, '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 = 29258890 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': 4196749, 'mtr_portfolio_id': 29258890, 'created_at': datetime.datetime(2025, 12, 8, 9, 1, 28), 'result': '0.05331572361022353', 'result_long': None, 'result_double': None}] Qualite : 0.05331572361022353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29258890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258890_08-12-2025_09_01_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29258890 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_P29258890_08-12-2025_09_01_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258929, 'pht': 3726}}" where mtr_portfolio_id = 29258890 and dashboard_run_id = 2716140 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`=29258890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164984, 0.05331572361022353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29258890_08-12-2025_09_01_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29258918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29258919, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29258920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29258921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29258922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29258923, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29258924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29258925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29258926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29258927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29258928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29258929, '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 = 29259327 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': 4196850, 'mtr_portfolio_id': 29259327, 'created_at': datetime.datetime(2025, 12, 8, 9, 1, 8), 'result': '0.048506129841728696', 'result_long': None, 'result_double': None}] Qualite : 0.048506129841728696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29259327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259327_08-12-2025_07_39_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29259327 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_P29259327_08-12-2025_07_39_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29259348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259351, 'pht': 3726}}" where mtr_portfolio_id = 29259327 and dashboard_run_id = 2716140 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`=29259327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164985, 0.048506129841728696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259327_08-12-2025_07_39_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259341, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29259348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259351, '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 = 29259708 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': 4196934, 'mtr_portfolio_id': 29259708, 'created_at': datetime.datetime(2025, 12, 8, 9, 15, 59), 'result': '0.04647813610078938', 'result_long': None, 'result_double': None}] Qualite : 0.04647813610078938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29259708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259708_08-12-2025_09_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29259708 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_P29259708_08-12-2025_09_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29259710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259721, 'pht': 3726}}" where mtr_portfolio_id = 29259708 and dashboard_run_id = 2716140 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`=29259708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164987, 0.04647813610078938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259708_08-12-2025_09_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29259710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29259711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29259712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29259713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29259714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29259715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29259716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29259717, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29259718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29259719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29259720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29259721, '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 = 29259983 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': 4197032, 'mtr_portfolio_id': 29259983, 'created_at': datetime.datetime(2025, 12, 8, 9, 45, 59), 'result': '0.04914124437393453', 'result_long': None, 'result_double': None}] Qualite : 0.04914124437393453 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29259983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259983_08-12-2025_09_46_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29259983 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_P29259983_08-12-2025_09_46_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29260000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260011, 'pht': 3726}}" where mtr_portfolio_id = 29259983 and dashboard_run_id = 2716140 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`=29259983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164988, 0.04914124437393453, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29259983_08-12-2025_09_46_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29260000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260008, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260010, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260011, '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 = 29260534 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': 4197104, 'mtr_portfolio_id': 29260534, 'created_at': datetime.datetime(2025, 12, 8, 10, 0, 59), 'result': '0.04871390264203623', 'result_long': None, 'result_double': None}] Qualite : 0.04871390264203623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29260534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29260534_08-12-2025_10_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29260534 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_P29260534_08-12-2025_10_01_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29260541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260548, 'pht': 3726}}" where mtr_portfolio_id = 29260534 and dashboard_run_id = 2716140 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`=29260534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164989, 0.04871390264203623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29260534_08-12-2025_10_01_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29260541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260548, '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 = 29260974 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': 4197178, 'mtr_portfolio_id': 29260974, 'created_at': datetime.datetime(2025, 12, 8, 8, 46, 59), 'result': '0.07108109012336174', 'result_long': None, 'result_double': None}] Qualite : 0.07108109012336174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29260974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29260974_08-12-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29260974 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_P29260974_08-12-2025_08_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29260977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260986, 'pht': 3726}}" where mtr_portfolio_id = 29260974 and dashboard_run_id = 2716140 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`=29260974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164990, 0.07108109012336174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29260974_08-12-2025_08_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29260975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29260976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29260977, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29260978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29260979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29260980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29260981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29260982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29260983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29260984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29260985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29260986, '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 = 29261339 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': 4197264, 'mtr_portfolio_id': 29261339, 'created_at': datetime.datetime(2025, 12, 8, 9, 32, 59), 'result': '0.04871243408567144', 'result_long': None, 'result_double': None}] Qualite : 0.04871243408567144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29261339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29261339_08-12-2025_09_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29261339 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_P29261339_08-12-2025_09_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29261347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29261348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29261349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29261350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29261351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29261352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29261353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29261354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29261355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29261356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29261357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29261358, 'pht': 3726}}" where mtr_portfolio_id = 29261339 and dashboard_run_id = 2716140 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`=29261339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164991, 0.04871243408567144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29261339_08-12-2025_09_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29261347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29261348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29261349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29261350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29261351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29261352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29261353, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29261354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29261355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29261356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29261357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29261358, '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 = 29262157 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': 4197458, 'mtr_portfolio_id': 29262157, 'created_at': datetime.datetime(2025, 12, 8, 9, 46, 57), 'result': '0.026268340116867024', 'result_long': None, 'result_double': None}] Qualite : 0.026268340116867024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29262157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29262157_08-12-2025_09_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29262157 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_P29262157_08-12-2025_09_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29262160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29262161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29262162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29262163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29262164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29262165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29262166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29262167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29262168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29262169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29262170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29262171, 'pht': 3726}}" where mtr_portfolio_id = 29262157 and dashboard_run_id = 2716140 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`=29262157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164993, 0.026268340116867024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29262157_08-12-2025_09_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29262160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29262161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29262162, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29262163, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29262164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29262165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29262166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29262167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29262168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29262169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29262170, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29262171, '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 = 29262328 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': 4197511, 'mtr_portfolio_id': 29262328, 'created_at': datetime.datetime(2025, 12, 8, 10, 3, 1), 'result': '0.02944767063312377', 'result_long': None, 'result_double': None}] Qualite : 0.02944767063312377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29262328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29262328_08-12-2025_10_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29262328 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_P29262328_08-12-2025_10_03_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29262336, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29262337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29262338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29262339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29262340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29262341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29262342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29262343, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29262344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29262345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29262346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29262347, 'pht': 3726}}" where mtr_portfolio_id = 29262328 and dashboard_run_id = 2716140 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`=29262328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164994, 0.02944767063312377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29262328_08-12-2025_10_03_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29262336, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29262337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29262338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29262339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29262340, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29262341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29262342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29262343, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29262344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29262345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29262346, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29262347, '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 = 29262661 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': 4197626, 'mtr_portfolio_id': 29262661, 'created_at': datetime.datetime(2025, 12, 8, 10, 22), 'result': '0.0274910107787342', 'result_long': None, 'result_double': None}] Qualite : 0.0274910107787342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29262661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29262661_08-12-2025_10_22_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29262661 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_P29262661_08-12-2025_10_22_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29262674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29262675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29262676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29262677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29262678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29262679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29262680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29262681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29262682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29262683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29262684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29262685, 'pht': 3726}}" where mtr_portfolio_id = 29262661 and dashboard_run_id = 2716140 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`=29262661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164995, 0.0274910107787342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29262661_08-12-2025_10_22_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29262674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29262675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29262676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29262677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29262678, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29262679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29262680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29262681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29262682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29262683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29262684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29262685, '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 = 29263236 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': 4197745, 'mtr_portfolio_id': 29263236, 'created_at': datetime.datetime(2025, 12, 8, 10, 32, 57), 'result': '0.03214518401990361', 'result_long': None, 'result_double': None}] Qualite : 0.03214518401990361 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29263236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29263236_08-12-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29263236 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_P29263236_08-12-2025_10_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29263240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29263241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29263242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29263243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29263244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29263245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29263246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29263247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29263248, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29263249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29263250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29263251, 'pht': 3726}}" where mtr_portfolio_id = 29263236 and dashboard_run_id = 2716140 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`=29263236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164996, 0.03214518401990361, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29263236_08-12-2025_10_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29263240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29263241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29263242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29263243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29263244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29263245, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29263246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29263247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29263248, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29263249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29263250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29263251, '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 = 29263582 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': 4197820, 'mtr_portfolio_id': 29263582, 'created_at': datetime.datetime(2025, 12, 8, 10, 46, 58), 'result': '0.024890818305402625', 'result_long': None, 'result_double': None}] Qualite : 0.024890818305402625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29263582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29263582_08-12-2025_10_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29263582 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_P29263582_08-12-2025_10_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29263590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29263591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29263592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29263593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29263594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29263595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29263596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29263597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29263598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29263599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29263600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29263601, 'pht': 3726}}" where mtr_portfolio_id = 29263582 and dashboard_run_id = 2716140 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`=29263582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164997, 0.024890818305402625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29263582_08-12-2025_10_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29263590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29263591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29263592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29263593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29263594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29263595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29263596, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29263597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29263598, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29263599, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29263600, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29263601, '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 = 29264029 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': 4197897, 'mtr_portfolio_id': 29264029, 'created_at': datetime.datetime(2025, 12, 8, 11, 3, 27), 'result': '0.08386204789801899', 'result_long': None, 'result_double': None}] Qualite : 0.08386204789801899 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29264029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29264029_08-12-2025_10_59_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29264029 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_P29264029_08-12-2025_10_59_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29264034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29264035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29264036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29264037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29264038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29264039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29264040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29264041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29264042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29264043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29264044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29264045, 'pht': 3726}}" where mtr_portfolio_id = 29264029 and dashboard_run_id = 2716140 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`=29264029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164998, 0.08386204789801899, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29264029_08-12-2025_10_59_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29264034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29264035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29264036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29264037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29264038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29264039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29264040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29264041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29264042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29264043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29264044, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29264045, '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 = 29264471 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': 4197992, 'mtr_portfolio_id': 29264471, 'created_at': datetime.datetime(2025, 12, 8, 11, 14, 58), 'result': '0.041829498178569735', 'result_long': None, 'result_double': None}] Qualite : 0.041829498178569735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29264471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29264471_08-12-2025_11_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29264471 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_P29264471_08-12-2025_11_14_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29264475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29264476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29264477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29264478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29264479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29264480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29264481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29264482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29264483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29264484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29264485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29264486, 'pht': 3726}}" where mtr_portfolio_id = 29264471 and dashboard_run_id = 2716140 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`=29264471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18164999, 0.041829498178569735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29264471_08-12-2025_11_14_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29264475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29264476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29264477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29264478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29264479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29264480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29264481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29264482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29264483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29264484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29264485, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29264486, '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 (29255719,29256022,29256393,29256636,29256977,29257386,29257806,29258277,29258540,29258890,29259327,29259708,29259983,29260534,29260974,29261339,29262157,29262328,29262661,29263236,29263582,29264029,29264471) result : ((1398441020,), (1398441905,), (1398442335,), (1398442480,), (1398442481,), (1398442482,), (1398442483,), (1398442492,), (1398442493,), (1398442499,), (1398442500,), (1398442501,), (1398442502,), (1398442510,), (1398442511,), (1398442512,), (1398442521,), (1398442523,), (1398442525,), (1398442533,), (1398442534,), (1398442749,), (1398442781,), (1398442812,), (1398442849,), (1398442884,), (1398442916,), (1398443037,), (1398443072,), (1398443109,), (1398443110,), (1398443136,), (1398443241,), (1398443242,), (1398443243,), (1398443244,), (1398443246,), (1398443270,), (1398443267,), (1398443268,), (1398443269,), (1398443291,), (1398443292,), (1398443293,), (1398443294,), (1398443303,), (1398443304,), (1398443305,), (1398443322,), (1398443323,), (1398443324,), (1398443344,), (1398443346,), (1398443347,), (1398443354,), (1398443355,), (1398443356,), (1398443357,), (1398443359,), (1398443393,), (1398443399,), (1398443400,), (1398443401,), (1398443403,), (1398443420,), (1398443423,), (1398443425,), (1398443427,), (1398443429,), (1398443431,), (1398443435,), (1398443436,), (1398443437,), (1398443438,), (1398443439,), (1398443440,), (1398443442,), (1398443444,), (1398443446,), (1398443450,), (1398443451,), (1398443452,), (1398443453,), (1398443455,), (1398443456,), (1398443495,), (1398443498,), (1398443501,), (1398443512,), (1398443515,), (1398443526,), (1398443529,), (1398443532,), (1398443534,), (1398443540,), (1398443542,), (1398443544,), (1398443547,), (1398443554,), (1398443555,), (1398443556,), (1398443557,), (1398443558,), (1398443560,), (1398443580,), (1398443585,), (1398443591,), (1398443592,), (1398443595,), (1398443626,), (1398443623,), (1398443624,), (1398443625,), (1398443634,), (1398443635,), (1398443636,), (1398443637,), (1398443639,), (1398443641,), (1398443649,), (1398443650,), (1398443651,), (1398443653,), (1398443655,), (1398443657,), (1398443672,), (1398443673,), (1398443674,), (1398443675,), (1398443676,), (1398443678,), (1398443679,), (1398443681,), (1398443683,), (1398443685,), (1398443688,), (1398443690,), (1398443695,), (1398443696,), (1398443697,), (1398443721,), (1398443740,), (1398443744,), (1398443745,), (1398443746,), (1398443767,), (1398443768,), (1398443769,), (1398443770,), (1398443772,), (1398443782,), (1398443783,), (1398443784,), (1398443785,), (1398443793,), (1398443795,), (1398443798,), (1398443801,), (1398443804,), (1398443807,), (1398443829,), (1398443830,), (1398443831,), (1398443832,), (1398443833,), (1398443835,), (1398443837,), (1398443839,), (1398443850,), (1398443851,), (1398443852,), (1398443853,), (1398443864,), (1398443865,), (1398443866,), (1398443867,), (1398443869,), (1398443870,), (1398443879,), (1398443880,), (1398443881,), (1398443883,), (1398443885,), (1398443887,), (1398443892,), (1398443893,), (1398443894,), (1398443895,), (1398443896,), (1398443921,), (1398443922,), (1398443924,), (1398443926,), (1398443928,), (1398443934,), (1398443935,), (1398443937,), (1398443938,), (1398443940,), (1398443943,), (1398443965,), (1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,), (1398444127,), (1398444129,), (1398444131,), (1398444133,), (1398444135,), (1398444137,), (1398444141,), (1398444142,), (1398444143,), (1398444144,), (1398444146,), (1398444156,), (1398444157,), (1398444166,), (1398444167,), (1398444169,), (1398444171,), (1398444179,), (1398444181,), (1398444183,), (1398444186,), (1398444189,), (1398444198,), (1398444199,), (1398444200,), (1398444201,), (1398444696,), (1398444718,), (1398444720,), (1398444721,), (1398444751,), (1398444802,), (1398444791,), (1398444792,), (1398444796,), (1398444799,), (1398445088,), (1398445121,), (1398445150,), (1398445186,), (1398445218,), (1398445251,), (1398445399,), (1398445400,), (1398445401,), (1398445404,), (1398445439,), (1398445483,), (1398445633,), (1398445644,), (1398445645,), (1398445646,), (1398445660,), (1398445708,), (1398445741,), (1398445744,), (1398445747,), (1398445750,), (1398445753,), (1398445769,), (1398445770,), (1398445771,), (1398445784,), (1398445785,), (1398445786,), (1398445787,), (1398445790,), (1398445805,), (1398445806,), (1398445807,), (1398445808,), (1398445827,), (1398445828,), (1398445829,), (1398445830,), (1398445833,), (1398445845,), (1398445846,), (1398445847,), (1398445848,), (1398445851,), (1398445873,), (1398445880,), (1398445881,), (1398445882,), (1398445914,), (1398445915,), (1398445916,), (1398445917,), (1398445920,), (1398445923,), (1398445934,), (1398445935,), (1398445936,), (1398445937,), (1398445940,), (1398445964,), (1398445965,), (1398445966,), (1398445969,), (1398445972,), (1398445973,), (1398445984,), (1398445985,), (1398445986,), (1398446000,), (1398446006,), (1398446007,), (1398446010,), (1398446013,), (1398446015,), (1398446023,), (1398446026,), (1398446028,), (1398446032,), (1398446061,), (1398446047,), (1398446048,), (1398446051,), (1398446057,), (1398446073,), (1398446074,), (1398446075,), (1398446076,), (1398446078,), (1398446095,), (1398446096,), (1398446099,), (1398446109,), (1398446134,), (1398446135,), (1398446136,), (1398446137,), (1398446140,), (1398446143,), (1398446161,), (1398446162,), (1398446163,), (1398446164,), (1398446166,), (1398446189,), (1398446190,), (1398446191,), (1398446192,), (1398446195,), (1398446197,), (1398446212,), (1398446214,), (1398446215,), (1398446237,), (1398446238,), (1398446239,), (1398446242,), (1398446245,), (1398446248,), (1398446257,), (1398446258,), (1398446259,), (1398446266,), (1398446267,), (1398446268,), (1398446271,), (1398446283,), (1398446284,), (1398446285,), (1398446286,), (1398446288,), (1398446290,), (1398446313,), (1398446321,), (1398446322,), (1398446323,), (1398446326,), (1398446338,), (1398446339,), (1398446340,), (1398446341,), (1398446344,), (1398446346,), (1398446362,), (1398446363,), (1398446364,), (1398446365,), (1398446384,), (1398446385,), (1398446389,), (1398446394,), (1398446417,), (1398446421,), (1398446422,), (1398446425,), (1398446429,), (1398446432,), (1398446450,), (1398446438,), (1398446443,), (1398446446,), (1398446447,), (1398446464,), (1398446465,), (1398446466,), (1398446472,), (1398446475,), (1398446478,), (1398446488,), (1398446489,), (1398446490,), (1398446493,), (1398446496,), (1398446499,), (1398446508,), (1398446509,), (1398446510,), (1398446511,), (1398446512,), (1398446513,), (1398446533,), (1398446534,), (1398446535,), (1398446536,), (1398446539,), (1398446542,), (1398446554,), (1398446555,), (1398446633,), (1398446800,), (1398446799,), (1398446813,), (1398446814,), (1398446815,), (1398446842,), (1398446843,), (1398446844,), (1398446845,), (1398446868,), (1398446870,), (1398446872,), (1398446876,), (1398446880,), (1398446884,), (1398446891,), (1398446892,), (1398446893,), (1398446894,), (1398446908,), (1398446909,), (1398446914,), (1398446921,), (1398446923,), (1398446926,), (1398446937,), (1398446941,), (1398446944,), (1398446946,), (1398446969,), (1398446970,), (1398446973,), (1398446976,), (1398446979,), (1398446992,), (1398446993,), (1398446994,), (1398446995,), (1398446997,), (1398447012,), (1398447013,), (1398447014,), (1398447032,), (1398447033,), (1398447034,), (1398447037,), (1398447040,), (1398447042,), (1398447052,), (1398447053,), (1398447055,), (1398447056,), (1398447325,), (1398447357,), (1398447390,), (1398447424,), (1398447456,), (1398447489,), (1398447528,), (1398447569,), (1398447623,), (1398448311,), (1398448367,), (1398448368,), (1398448371,), (1398448163,), (1398448200,), (1398448218,), (1398448231,), (1398448269,), (1398448357,), (1398448360,), (1398448363,), (1398448365,), (1398448372,), (1398448373,), (1398448374,), (1398448376,), (1398448377,), (1398448379,), (1398448415,), (1398448416,), (1398448417,), (1398448418,), (1398448431,), (1398448432,), (1398448433,), (1398448461,), (1398448462,), (1398449626,), (1398449627,), (1398449647,), (1398449686,), (1398449719,), (1398449896,), (1398449897,), (1398449898,), (1398449899,), (1398449920,), (1398449926,), (1398449927,), (1398449928,), (1398449931,), (1398449948,), (1398449979,), (1398450012,), (1398450020,), (1398450023,), (1398450032,), (1398450091,), (1398450092,), (1398450093,), (1398450094,), (1398450097,), (1398450098,), (1398450101,), (1398450104,), (1398450107,), (1398450116,), (1398450117,), (1398450119,), (1398450120,), (1398450123,), (1398450146,), (1398450137,), (1398450138,), (1398450139,), (1398450140,), (1398450143,), (1398450162,), (1398450164,), (1398450166,), (1398450170,), (1398450174,), (1398450178,), (1398450190,), (1398450192,), (1398450194,), (1398450198,), (1398450208,), (1398450209,), (1398450210,), (1398450211,), (1398450213,), (1398450216,), (1398450245,), (1398450246,), (1398450247,), (1398450248,), (1398450266,), (1398450269,), (1398450270,), (1398450271,), (1398450287,), (1398450293,), (1398450305,), (1398450314,), (1398450319,), (1398450321,), (1398450332,), (1398450334,), (1398450335,), (1398450339,), (1398450343,), (1398450346,), (1398450355,), (1398450356,), (1398450357,), (1398450358,), (1398450359,), (1398450360,), (1398450363,), (1398450366,), (1398450374,), (1398450377,), (1398450391,), (1398450392,), (1398450393,), (1398450394,), (1398450409,), (1398450410,), (1398450411,), (1398450412,), (1398450415,), (1398450418,), (1398450429,), (1398450430,), (1398450431,), (1398450432,), (1398450435,), (1398450438,), (1398450450,), (1398450451,), (1398450457,), (1398450478,), (1398450479,), (1398450480,), (1398450481,), (1398450484,), (1398450485,), (1398450520,), (1398450527,), (1398450529,), (1398450530,), (1398450553,), (1398450544,), (1398450545,), (1398450546,), (1398450547,), (1398450550,), (1398450565,), (1398450566,), (1398450567,), (1398450568,), (1398450571,), (1398450595,), (1398450596,), (1398450597,), (1398450600,), (1398450603,), (1398450606,), (1398450612,), (1398450613,), (1398450614,), (1398450615,), (1398450616,), (1398450619,), (1398450622,), (1398450625,), (1398450633,), (1398450634,), (1398450635,), (1398450636,), (1398450639,), (1398450657,), (1398450659,), (1398450661,), (1398450662,), (1398450666,), (1398450686,), (1398450687,), (1398450688,), (1398450689,), (1398450692,), (1398450695,), (1398450707,), (1398450710,), (1398450718,), (1398450749,), (1398450751,), (1398450753,), (1398450755,), (1398450758,), (1398450761,), (1398450791,), (1398450792,), (1398450793,), (1398450815,), (1398450816,), (1398450818,), (1398450820,), (1398450823,), (1398450825,), (1398450850,), (1398450853,), (1398450887,), (1398450897,), (1398450922,), (1398450924,), (1398450925,), (1398450929,), (1398450932,), (1398450935,), (1398450944,), (1398450945,), (1398450946,), (1398450951,), (1398450953,), (1398450954,), (1398450957,), (1398450960,), (1398450962,), (1398450980,), (1398450982,), (1398450983,), (1398450984,), (1398450987,), (1398451028,), (1398451002,), (1398451004,), (1398451006,), (1398451012,), (1398451022,), (1398451036,), (1398451037,), (1398451038,), (1398451039,), (1398451057,), (1398451059,), (1398451061,), (1398451063,), (1398451065,), (1398451067,), (1398451074,), (1398451076,), (1398451077,), (1398451079,), (1398451101,), (1398451103,), (1398451105,), (1398451112,), (1398451117,), (1398451118,), (1398451131,), (1398451132,), (1398451133,), (1398451134,), (1398451156,), (1398451166,), (1398451169,), (1398451171,), (1398451173,), (1398451175,), (1398451185,), (1398451186,), (1398451188,), (1398451191,), (1398451193,), (1398451195,), (1398451201,), (1398451202,), (1398451203,), (1398451206,), (1398451208,), (1398451210,), (1398451213,), (1398451216,), (1398451219,), (1398451227,), (1398451235,), (1398451239,), (1398451241,), (1398451244,), (1398451246,), (1398451265,), (1398451269,), (1398451274,), (1398451275,), (1398451291,), (1398451293,), (1398451294,), (1398451295,), (1398451297,), (1398451298,), (1398451316,), (1398451317,), (1398451318,), (1398451319,), (1398451340,), (1398451343,), (1398451347,), (1398451350,), (1398451351,), (1398451354,), (1398451385,), (1398451364,), (1398451373,), (1398451379,), (1398451382,), (1398451408,), (1398451409,), (1398451410,), (1398451411,), (1398451414,), (1398451417,), (1398451429,), (1398451430,), (1398451432,), (1398451435,), (1398451438,), (1398451440,), (1398451446,), (1398451448,), (1398451450,), (1398451454,), (1398451455,), (1398451456,), (1398451459,), (1398451462,), (1398451474,), (1398451476,), (1398451477,), (1398451483,), (1398451693,), (1398451735,), (1398451774,), (1398451801,), (1398451804,), (1398451900,), (1398451902,), (1398451904,), (1398451906,), (1398451910,), (1398451928,), (1398451935,), (1398451940,), (1398451955,), (1398451989,), (1398452468,), (1398452524,), (1398452566,), (1398452588,), (1398452657,), (1398452659,), (1398452661,), (1398452663,), (1398452704,), (1398452712,), (1398452716,), (1398452721,), (1398452733,), (1398452736,), (1398452751,), (1398452753,), (1398452756,), (1398452759,), (1398452763,), (1398452765,), (1398453012,), (1398453043,), (1398453075,), (1398453112,), (1398453149,), (1398453187,), (1398453307,), (1398453344,), (1398453374,), (1398453405,), (1398453452,), (1398453461,), (1398453463,), (1398453466,), (1398453468,), (1398453470,), (1398453672,), (1398453676,), (1398453707,), (1398453719,), (1398453920,), (1398453900,), (1398453908,), (1398453912,), (1398453914,), (1398453917,), (1398454189,), (1398454220,), (1398454252,), (1398454284,), (1398454566,), (1398454567,), (1398454569,), (1398454571,), (1398454588,), (1398454625,), (1398455211,), (1398455232,), (1398455237,), (1398455258,), (1398455481,), (1398455483,), (1398455485,), (1398455487,), (1398455490,), (1398455492,), (1398455534,), (1398455536,), (1398455537,), (1398455538,), (1398455540,), (1398455542,), (1398455867,), (1398455906,), (1398455938,), (1398455971,), (1398456005,), (1398456040,), (1398456160,), (1398456195,), (1398456213,), (1398456214,), (1398456216,), (1398456218,), (1398456236,), (1398456271,), (1398456302,), (1398456362,), (1398456432,), (1398456506,), (1398456740,), (1398456772,), (1398456776,), (1398456778,), (1398456795,), (1398456798,), (1398456800,), (1398456808,), (1398456819,), (1398456826,), (1398456828,), (1398456831,), (1398456833,), (1398456845,), (1398456846,), (1398456850,), (1398456851,), (1398456866,), (1398456869,), (1398456873,), (1398456876,), (1398456890,), (1398456893,), (1398456904,), (1398456906,), (1398456907,), (1398456910,), (1398456932,), (1398456933,), (1398456935,), (1398456936,), (1398456939,), (1398456980,), (1398456957,), (1398456968,), (1398456971,), (1398456973,), (1398457007,), (1398457009,), (1398457092,), (1398457093,), (1398457203,), (1398457204,), (1398457205,), (1398457224,), (1398457227,), (1398457230,), (1398457239,), (1398457241,), (1398457243,), (1398457245,), (1398457247,), (1398457270,), (1398457271,), (1398457398,), (1398457495,), (1398457576,), (1398457696,), (1398457699,), (1398457827,), (1398457843,), (1398457845,), (1398457850,), (1398457855,), (1398457859,), (1398457870,), (1398457896,), (1398457904,), (1398457906,), (1398457908,), (1398457911,), (1398457924,), (1398457926,), (1398457927,), (1398457928,), (1398457932,), (1398457957,), (1398457954,), (1398457955,), (1398457988,), (1398457989,), (1398458012,), (1398458150,), (1398458151,), (1398458177,), (1398458197,), (1398458199,), (1398458201,), (1398458239,), (1398458247,), (1398458251,), (1398458269,), (1398458280,), (1398458292,), (1398458297,), (1398458303,), (1398458305,), (1398458311,), (1398458313,), (1398458318,), (1398458319,), (1398458320,), (1398458321,), (1398458324,), (1398458337,), (1398458339,), (1398458341,), (1398458378,), (1398458383,), (1398458386,), (1398458388,), (1398458392,), (1398458396,), (1398458411,), (1398458412,), (1398458413,), (1398458414,), (1398458417,), (1398458420,), (1398458431,), (1398458432,), (1398458433,), (1398458434,), (1398458687,), (1398463763,), (1398463759,), (1398463761,), (1398463777,), (1398463779,), (1398463782,), (1398463784,), (1398463788,), (1398463791,), (1398463923,), (1398463953,), (1398463984,), (1398464014,), (1398464017,), (1398464043,), (1398464066,), (1398464098,), (1398464121,), (1398464122,), (1398464203,), (1398464236,), (1398464260,), (1398464325,), (1398464327,), (1398464380,), (1398464412,), (1398464700,), (1398464701,), (1398464722,), (1398464723,), (1398464725,), (1398464727,), (1398464779,), (1398464780,), (1398464781,), (1398464782,), (1398464785,), (1398464804,), (1398464807,), (1398464809,), (1398464823,), (1398464825,), (1398464858,), (1398464890,), (1398464921,), (1398464927,), (1398464930,), (1398465007,), (1398465009,), (1398465011,), (1398465014,), (1398465017,), (1398465019,), (1398465025,), (1398465027,), (1398465029,), (1398465031,), (1398465034,), (1398465035,), (1398465038,), (1398465041,), (1398465044,), (1398465055,), (1398465057,), (1398465059,), (1398465061,), (1398465083,), (1398465077,), (1398465080,), (1398465082,), (1398465097,), (1398465099,), (1398465101,), (1398465103,), (1398465106,), (1398465127,), (1398465128,), (1398465130,), (1398465132,), (1398465147,), (1398465148,), (1398465150,), (1398465152,), (1398465172,), (1398465173,), (1398465174,), (1398465175,), (1398465189,), (1398465295,), (1398465297,), (1398465306,), (1398465308,), (1398465332,), (1398465335,), (1398465362,), (1398465363,), (1398465364,), (1398465384,), (1398465385,), (1398465386,), (1398465389,), (1398465392,), (1398465395,), (1398465403,), (1398465406,), (1398465413,), (1398465416,), (1398465417,), (1398465420,), (1398465423,), (1398465436,), (1398465437,), (1398465438,), (1398465439,), (1398465462,), (1398465465,), (1398465467,), (1398465470,), (1398465474,), (1398465477,), (1398465490,), (1398465491,), (1398465492,), (1398465493,), (1398465496,), (1398465518,), (1398465519,), (1398465520,), (1398465521,), (1398465540,), (1398465543,), (1398465546,), (1398465548,), (1398465551,), (1398465554,), (1398465573,), (1398465569,), (1398465571,), (1398465590,), (1398465591,), (1398465592,), (1398465593,), (1398465618,), (1398465651,), (1398466204,), (1398466205,), (1398466235,), (1398466261,), (1398466264,), (1398466303,), (1398466415,), (1398466426,), (1398466443,), (1398466445,), (1398466448,), (1398466455,), (1398466458,), (1398466459,), (1398466461,), (1398466463,), (1398466468,), (1398466500,), (1398466535,), (1398466567,), (1398466586,), (1398466599,), (1398466601,), (1398466602,), (1398466603,), (1398466649,), (1398466651,), (1398466655,), (1398466658,), (1398466662,), (1398466664,), (1398466766,), (1398466768,), (1398466770,), (1398466772,), (1398466821,), (1398466822,), (1398466823,), (1398466824,), (1398466827,), (1398466854,), (1398466856,), (1398466857,), (1398466860,), (1398466863,), (1398466865,), (1398466879,), (1398466881,), (1398466883,), (1398466886,), (1398466889,), (1398466919,), (1398466920,), (1398466929,), (1398466961,), (1398467069,), (1398467191,), (1398467360,), (1398467362,), (1398467364,), (1398467367,), (1398467370,), (1398467372,), (1398467378,), (1398467382,), (1398467384,), (1398467391,), (1398467393,), (1398467394,), (1398467396,), (1398467398,), (1398467413,), (1398467415,), (1398467421,), (1398467423,), (1398467431,), (1398467439,), (1398467460,), (1398467451,), (1398467452,), (1398467453,), (1398467454,), (1398467457,), (1398467476,), (1398467478,), (1398467479,), (1398467623,), (1398467625,), (1398467627,), (1398467629,), (1398467632,), (1398467635,), (1398467674,), (1398467676,), (1398467686,), (1398467720,), (1398467760,), (1398467948,), (1398467949,), (1398467971,), (1398467973,), (1398467976,), (1398468059,), (1398468061,), (1398468063,), (1398468065,), (1398468074,), (1398468076,), (1398468078,), (1398468080,), (1398468082,), (1398468083,), (1398468099,), (1398468102,), (1398468105,), (1398468110,), (1398468114,), (1398468116,), (1398468132,), (1398468133,), (1398468155,), (1398468247,), (1398468750,), (1398468752,), (1398468838,), (1398468852,), (1398468936,), (1398468945,), (1398469031,), (1398469050,), (1398469118,), (1398469159,), (1398469210,), (1398469263,), (1398469324,), (1398469325,), (1398469326,), (1398469328,), (1398469330,), (1398469600,), (1398469680,), (1398469744,), (1398469806,), (1398469873,), (1398470266,), (1398470272,), (1398470280,), (1398470304,), (1398470307,), (1398470310,), (1398470320,), (1398470325,), (1398470326,), (1398470327,), (1398470329,), (1398470339,), (1398470341,), (1398470343,), (1398470345,), (1398470373,), (1398470375,), (1398470378,), (1398470380,), (1398470383,), (1398470387,), (1398470702,), (1398470513,), (1398470608,), (1398471203,), (1398471205,), (1398471289,), (1398471393,), (1398471432,), (1398471499,), (1398471752,), (1398471754,), (1398471756,), (1398471767,), (1398471802,), (1398471836,), (1398471896,), (1398471897,), (1398471898,), (1398471900,), (1398471905,), (1398471908,), (1398471909,), (1398471910,), (1398471911,), (1398471925,), (1398471927,), (1398471929,), (1398471933,), (1398471944,), (1398471951,), (1398471953,), (1398471989,), (1398471992,), (1398471993,), (1398471994,), (1398471997,), (1398472034,), (1398472035,), (1398472036,), (1398472037,), (1398472040,), (1398472066,), (1398472068,), (1398472070,), (1398472072,), (1398472075,), (1398472078,), (1398472079,), (1398472080,), (1398472090,), (1398472091,), (1398472092,), (1398472103,), (1398472104,), (1398472105,), (1398472107,), (1398472109,), (1398472111,), (1398472121,), (1398472123,), (1398472125,), (1398472127,), (1398472130,), (1398472280,), (1398472312,), (1398472344,), (1398472377,), (1398472413,), (1398472508,), (1398472500,), (1398472503,), (1398472506,), (1398472524,), (1398472538,), (1398472539,), (1398472541,), (1398472543,), (1398472696,), (1398472698,), (1398472700,), (1398472709,), (1398472711,), (1398472713,), (1398472715,), (1398472718,), (1398472721,), (1398472723,), (1398472752,), (1398472755,), (1398472757,), (1398472758,), (1398472772,), (1398472773,), (1398472774,), (1398472777,), (1398472780,), (1398472782,), (1398472790,), (1398472792,), (1398472937,), (1398472972,), (1398472973,), (1398472976,), (1398472979,), (1398472983,), (1398473033,), (1398473035,), (1398473041,), (1398473042,), (1398473053,), (1398473055,), (1398473056,), (1398473057,), (1398473080,), (1398473088,), (1398473170,), (1398473172,), (1398473173,), (1398473174,), (1398473219,), (1398473224,), (1398473227,), (1398473232,), (1398473280,), (1398473274,), (1398473275,), (1398473276,), (1398473277,), (1398473291,), (1398473292,), (1398473293,), (1398473294,), (1398473296,), (1398473314,), (1398473316,), (1398473318,), (1398473321,), (1398473324,), (1398473325,), (1398473328,), (1398473330,), (1398473335,), (1398473336,), (1398473337,), (1398473338,), (1398473341,), (1398473344,), (1398473502,), (1398473621,), (1398473651,), (1398473681,), (1398473684,), (1398473718,), (1398473725,), (1398473730,), (1398473732,), (1398473735,), (1398473783,), (1398473784,), (1398473786,), (1398473788,), (1398473791,), (1398473794,), (1398473802,), (1398473803,), (1398473804,), (1398473815,), (1398473817,), (1398473819,), (1398473821,), (1398473824,), (1398473859,), (1398473861,), (1398473862,), (1398473863,), (1398473866,), (1398473877,), (1398473879,), (1398473881,), (1398473882,), (1398473899,), (1398473901,), (1398473903,), (1398473904,), (1398473907,), (1398473927,), (1398473929,), (1398473931,), (1398473933,), (1398473935,), (1398473937,), (1398473955,), (1398473956,), (1398473961,), (1398473968,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08122025': {'nb_upload': 71, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29264471]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899] map_info['map_portfolio_photo'] : {29264471: [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899, 1398473882, 1398473881, 1398473879, 1398473877, 1398473866, 1398473863, 1398473862, 1398473861, 1398473859, 1398473824, 1398473821, 1398473819, 1398473817, 1398473815, 1398473804, 1398473803, 1398473802, 1398473794, 1398473791, 1398473788, 1398473786, 1398473784, 1398473783, 1398473735, 1398473732, 1398473730, 1398473725, 1398473718, 1398473684, 1398473681, 1398473651, 1398473621, 1398473502, 1398473344, 1398473341, 1398473338, 1398473337, 1398473336, 1398473335, 1398473330, 1398473328, 1398473325, 1398473324, 1398473321, 1398473318, 1398473316, 1398473314, 1398473296, 1398473294, 1398473293, 1398473292, 1398473291, 1398473277, 1398473276, 1398473275, 1398473274]} final : True mtd_id 4302 list_pids : [1398473968, 1398473961, 1398473956, 1398473955, 1398473937, 1398473935, 1398473933, 1398473931, 1398473929, 1398473927, 1398473907, 1398473904, 1398473903, 1398473901, 1398473899] Looping around the photos to save general results len do output : 1 /29264471Didn'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, '4197992') ('4302', '29264471', '1398473968', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473961', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473956', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473955', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473937', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473935', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473933', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473931', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473929', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473927', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473907', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473904', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473903', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473901', None, None, None, None, None, '4197992') ('4302', None, None, None, None, None, None, None, '4197992') ('4302', '29264471', '1398473899', None, None, None, None, None, '4197992') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '29264471', 'None', None, None, None, None, '4197992'), ('4302', '29264471', '1398473968', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473961', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473956', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473955', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473937', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473935', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473933', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473931', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473929', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473927', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473907', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473904', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473903', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473901', None, None, None, None, None, '4197992'), ('4302', '29264471', '1398473899', None, None, None, None, None, '4197992')] time used for this insertion : 0.020521879196166992 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0501513481140137 time spend to save output : 0.020817279815673828 total time spend for step 5 : 2.0709686279296875 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 (4197992) 2.40user 2.44system 0:11.02elapsed 43%CPU (0avgtext+0avgdata 167988maxresident)k 19792inputs+12344outputs (227major+79011minor)pagefaults 0swaps