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 : 1770395 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 (3481501) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3481501) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803890 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3481501'] with mtr_portfolio_ids : ['25803890'] and first list_photo_ids : [] new path : /proc/1770395/ Name: python3 Umask: 0002 State: R (running) Tgid: 1770395 Ngid: 0 Pid: 1770395 PPid: 1770390 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1770395 NSpid: 1770395 NSpgid: 1769180 NSsid: 1769180 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99204 kB VmRSS: 99204 kB RssAnon: 59816 kB RssFile: 39388 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 109 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1770395', 'Ngid': '0', 'Pid': '1770395', 'PPid': '1770390', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1770395', 'NSpid': '1770395', 'NSpgid': '1769180', 'NSsid': '1769180', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99204 kB', 'VmRSS': '99204 kB', 'RssAnon': '59816 kB', 'RssFile': '39388 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '109'} ('datou_batch_current', '1770395', '1106868', '0', '1106868', '865620', '99204', b'', 'marlene', '3481501') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25803890) 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 (3481501 ) ) 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 (25803890) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1375803836, 'portfolio_id': 25803890}, {'photo_id': 1375803834, 'portfolio_id': 25803890}, {'photo_id': 1375803820, 'portfolio_id': 25803890}, {'photo_id': 1375803816, 'portfolio_id': 25803890}, {'photo_id': 1375803814, 'portfolio_id': 25803890}, {'photo_id': 1375803811, 'portfolio_id': 25803890}, {'photo_id': 1375803807, 'portfolio_id': 25803890}, {'photo_id': 1375803805, 'portfolio_id': 25803890}, {'photo_id': 1375803798, 'portfolio_id': 25803890}, {'photo_id': 1375803796, 'portfolio_id': 25803890}, {'photo_id': 1375803794, 'portfolio_id': 25803890}, {'photo_id': 1375803791, 'portfolio_id': 25803890}, {'photo_id': 1375803788, 'portfolio_id': 25803890}, {'photo_id': 1375803785, 'portfolio_id': 25803890}, {'photo_id': 1375803778, 'portfolio_id': 25803890}, {'photo_id': 1375803776, 'portfolio_id': 25803890}, {'photo_id': 1375803773, 'portfolio_id': 25803890}, {'photo_id': 1375803770, 'portfolio_id': 25803890}, {'photo_id': 1375803766, 'portfolio_id': 25803890}, {'photo_id': 1375803763, 'portfolio_id': 25803890}, {'photo_id': 1375803741, 'portfolio_id': 25803890}, {'photo_id': 1375803735, 'portfolio_id': 25803890}, {'photo_id': 1375803729, 'portfolio_id': 25803890}, {'photo_id': 1375803723, 'portfolio_id': 25803890}, {'photo_id': 1375803721, 'portfolio_id': 25803890}, {'photo_id': 1375803720, 'portfolio_id': 25803890}, {'photo_id': 1375803697, 'portfolio_id': 25803890}, {'photo_id': 1375803692, 'portfolio_id': 25803890}, {'photo_id': 1375803675, 'portfolio_id': 25803890}, {'photo_id': 1375803672, 'portfolio_id': 25803890}, {'photo_id': 1375803643, 'portfolio_id': 25803890}, {'photo_id': 1375803464, 'portfolio_id': 25803890}, {'photo_id': 1375803438, 'portfolio_id': 25803890}, {'photo_id': 1375803412, 'portfolio_id': 25803890}, {'photo_id': 1375803389, 'portfolio_id': 25803890}, {'photo_id': 1375803365, 'portfolio_id': 25803890}, {'photo_id': 1375803247, 'portfolio_id': 25803890}, {'photo_id': 1375803243, 'portfolio_id': 25803890}, {'photo_id': 1375803240, 'portfolio_id': 25803890}, {'photo_id': 1375803238, 'portfolio_id': 25803890}, {'photo_id': 1375803237, 'portfolio_id': 25803890}, {'photo_id': 1375803235, 'portfolio_id': 25803890}, {'photo_id': 1375803049, 'portfolio_id': 25803890}, {'photo_id': 1375803022, 'portfolio_id': 25803890}, {'photo_id': 1375802998, 'portfolio_id': 25803890}, {'photo_id': 1375802973, 'portfolio_id': 25803890}, {'photo_id': 1375802948, 'portfolio_id': 25803890}, {'photo_id': 1375802732, 'portfolio_id': 25803890}, {'photo_id': 1375802670, 'portfolio_id': 25803890}, {'photo_id': 1375802640, 'portfolio_id': 25803890}, {'photo_id': 1375802614, 'portfolio_id': 25803890}, {'photo_id': 1375802591, 'portfolio_id': 25803890}, {'photo_id': 1375802567, 'portfolio_id': 25803890}, {'photo_id': 1375802423, 'portfolio_id': 25803890}, {'photo_id': 1375802398, 'portfolio_id': 25803890}, {'photo_id': 1375802372, 'portfolio_id': 25803890}, {'photo_id': 1375802344, 'portfolio_id': 25803890}, {'photo_id': 1375802316, 'portfolio_id': 25803890}, {'photo_id': 1375802134, 'portfolio_id': 25803890}, {'photo_id': 1375802003, 'portfolio_id': 25803890}, {'photo_id': 1375801968, 'portfolio_id': 25803890}, {'photo_id': 1375801922, 'portfolio_id': 25803890}, {'photo_id': 1375801872, 'portfolio_id': 25803890}, {'photo_id': 1375801825, 'portfolio_id': 25803890}, {'photo_id': 1375801782, 'portfolio_id': 25803890}, {'photo_id': 1375801593, 'portfolio_id': 25803890}, {'photo_id': 1375801571, 'portfolio_id': 25803890}, {'photo_id': 1375801548, 'portfolio_id': 25803890}, {'photo_id': 1375801523, 'portfolio_id': 25803890}, {'photo_id': 1375801497, 'portfolio_id': 25803890}, {'photo_id': 1375801473, 'portfolio_id': 25803890}, {'photo_id': 1375801379, 'portfolio_id': 25803890}, {'photo_id': 1375801352, 'portfolio_id': 25803890}, {'photo_id': 1375801345, 'portfolio_id': 25803890}, {'photo_id': 1375801340, 'portfolio_id': 25803890}, {'photo_id': 1375801336, 'portfolio_id': 25803890}, {'photo_id': 1375801334, 'portfolio_id': 25803890}, {'photo_id': 1375801203, 'portfolio_id': 25803890}, {'photo_id': 1375801162, 'portfolio_id': 25803890}, {'photo_id': 1375801137, 'portfolio_id': 25803890}, {'photo_id': 1375801111, 'portfolio_id': 25803890}, {'photo_id': 1375801101, 'portfolio_id': 25803890}, {'photo_id': 1375801100, 'portfolio_id': 25803890}, {'photo_id': 1375800797, 'portfolio_id': 25803890}, {'photo_id': 1375800774, 'portfolio_id': 25803890}, {'photo_id': 1375800753, 'portfolio_id': 25803890}] map_portfolio_id_photo_id: {25803890: [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763, 1375803741, 1375803735, 1375803729, 1375803723, 1375803721, 1375803720, 1375803697, 1375803692, 1375803675, 1375803672, 1375803643, 1375803464, 1375803438, 1375803412, 1375803389, 1375803365, 1375803247, 1375803243, 1375803240, 1375803238, 1375803237, 1375803235, 1375803049, 1375803022, 1375802998, 1375802973, 1375802948, 1375802732, 1375802670, 1375802640, 1375802614, 1375802591, 1375802567, 1375802423, 1375802398, 1375802372, 1375802344, 1375802316, 1375802134, 1375802003, 1375801968, 1375801922, 1375801872, 1375801825, 1375801782, 1375801593, 1375801571, 1375801548, 1375801523, 1375801497, 1375801473, 1375801379, 1375801352, 1375801345, 1375801340, 1375801336, 1375801334, 1375801203, 1375801162, 1375801137, 1375801111, 1375801101, 1375801100, 1375800797, 1375800774, 1375800753]} ##### 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.01637744903564453 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Aug 8 06:14:28 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 (25803890) 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 : 25803890 get user id for portfolio 25803890 get sub ptf for main ptf 25803890, type 3726 and hashtags ['Carton_gris', 'Carton_brun', 'flou', 'cartonnette', 'metal', 'mal_croppe', 'autre_refus', 'Teint_Dans_La_Masse', 'plastique', 'papier', 'environnement', 'kraft'] 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`=25803890 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','cartonnette','metal','mal_croppe','autre_refus','Teint_Dans_La_Masse','plastique','papier','environnement','kraft')) 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`=25803890 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','cartonnette','metal','mal_croppe','autre_refus','Teint_Dans_La_Masse','plastique','papier','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25803890, 'sub_port_id': 25803903, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389825, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}, 'metal': {'main_port_id': 25803890, 'sub_port_id': 25803904, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389826, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}, 'Carton_brun': {'main_port_id': 25803890, 'sub_port_id': 25803905, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389827, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}, 'mal_croppe': {'main_port_id': 25803890, 'sub_port_id': 25803906, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389828, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}, 'Carton_gris': {'main_port_id': 25803890, 'sub_port_id': 25803907, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389829, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}, 'cartonnette': {'main_port_id': 25803890, 'sub_port_id': 25803908, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389830, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}, 'flou': {'main_port_id': 25803890, 'sub_port_id': 25803909, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389831, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}, 'kraft': {'main_port_id': 25803890, 'sub_port_id': 25803910, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389832, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}, 'papier': {'main_port_id': 25803890, 'sub_port_id': 25803911, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389833, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}, 'plastique': {'main_port_id': 25803890, 'sub_port_id': 25803912, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389834, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25803890, 'sub_port_id': 25803913, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389835, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}, 'autre_refus': {'main_port_id': 25803890, 'sub_port_id': 25803914, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389836, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803903 , 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=25803890 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 (25803903) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803904 , 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=25803890 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 (25803904) result : ((1375803665,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803905 , 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=25803890 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 (25803905) result : ((1375803647,), (1375803649,), (1375803831,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803906 , 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=25803890 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 (25803906) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803907 , 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=25803890 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 (25803907) result : ((1375802489,), (1375803629,), (1375803828,), (1375803830,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803908 , 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=25803890 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 (25803908) result : ((1375803637,), (1375803639,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803909 , 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=25803890 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 (25803909) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803910 , 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=25803890 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 (25803910) result : ((1375802496,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803911 , 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=25803890 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 (25803911) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803912 , 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=25803890 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 (25803912) result : ((1375803657,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803913 , 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=25803890 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 (25803913) result : ((1375803607,), (1375803608,), (1375803609,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25803914 , 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=25803890 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 (25803914) result : ((1375802481,), (1375803618,), (1375803620,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25803890) result : ((1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) 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 (1375801100) and cspi.crop_hashtag_id = chi.id; 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`=25803890 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','cartonnette','metal','mal_croppe','autre_refus','Teint_Dans_La_Masse','plastique','papier','environnement','kraft')) 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`=25803890 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','cartonnette','metal','mal_croppe','autre_refus','Teint_Dans_La_Masse','plastique','papier','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25803890, 'sub_port_id': 25803916, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389837, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}, 'metal': {'main_port_id': 25803890, 'sub_port_id': 25803917, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389838, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}, 'Carton_brun': {'main_port_id': 25803890, 'sub_port_id': 25803918, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389839, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}, 'mal_croppe': {'main_port_id': 25803890, 'sub_port_id': 25803919, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389840, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}, 'Carton_gris': {'main_port_id': 25803890, 'sub_port_id': 25803920, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389841, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}, 'cartonnette': {'main_port_id': 25803890, 'sub_port_id': 25803921, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389842, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}, 'flou': {'main_port_id': 25803890, 'sub_port_id': 25803922, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389843, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}, 'kraft': {'main_port_id': 25803890, 'sub_port_id': 25803923, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389844, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}, 'papier': {'main_port_id': 25803890, 'sub_port_id': 25803924, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389845, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}, 'plastique': {'main_port_id': 25803890, 'sub_port_id': 25803925, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389846, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 25803890, 'sub_port_id': 25803926, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389847, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}, 'autre_refus': {'main_port_id': 25803890, 'sub_port_id': 25803927, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17389848, 'last_updated_at': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 8, 6, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 8, 6, 3, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803916,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803903 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803917,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803904 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803918,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803905 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803919,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803906 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803920,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803907 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803921,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803908 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803922,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803909 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803923,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803910 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803924,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803911 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803925,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803912 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803926,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803913 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25803927,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25803914 lien utilise dans velours : https://www.fotonower.com/velours/25803916,25803917,25803918,25803919,25803920,25803921,25803922,25803923,25803924,25803925,25803926,25803927?tags=environnement,metal,Carton_brun,mal_croppe,Carton_gris,cartonnette,flou,kraft,papier,plastique,Teint_Dans_La_Masse,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25803890]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763] map_info['map_portfolio_photo'] : {25803890: [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763, 1375803741, 1375803735, 1375803729, 1375803723, 1375803721, 1375803720, 1375803697, 1375803692, 1375803675, 1375803672, 1375803643, 1375803464, 1375803438, 1375803412, 1375803389, 1375803365, 1375803247, 1375803243, 1375803240, 1375803238, 1375803237, 1375803235, 1375803049, 1375803022, 1375802998, 1375802973, 1375802948, 1375802732, 1375802670, 1375802640, 1375802614, 1375802591, 1375802567, 1375802423, 1375802398, 1375802372, 1375802344, 1375802316, 1375802134, 1375802003, 1375801968, 1375801922, 1375801872, 1375801825, 1375801782, 1375801593, 1375801571, 1375801548, 1375801523, 1375801497, 1375801473, 1375801379, 1375801352, 1375801345, 1375801340, 1375801336, 1375801334, 1375801203, 1375801162, 1375801137, 1375801111, 1375801101, 1375801100, 1375800797, 1375800774, 1375800753]} final : False mtd_id 4302 list_pids : [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763] Looping around the photos to save general results len do output : 1 /25803890. 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, '3481501') ('4302', '25803890', '1375803836', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803834', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803820', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803816', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803814', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803811', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803807', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803805', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803798', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803796', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803794', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803791', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803788', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803785', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803778', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803776', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803773', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803770', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803766', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803763', None, None, None, None, None, '3481501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '25803890', "{'environnement': 25803903, 'metal': 25803904, 'Carton_brun': 25803905, 'mal_croppe': 25803906, 'Carton_gris': 25803907, 'cartonnette': 25803908, 'flou': 25803909, 'kraft': 25803910, 'papier': 25803911, 'plastique': 25803912, 'Teint_Dans_La_Masse': 25803913, 'autre_refus': 25803914}", None, None, None, None, '3481501'), ('4302', '25803890', '1375803836', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803834', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803820', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803816', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803814', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803811', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803807', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803805', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803798', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803796', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803794', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803791', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803788', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803785', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803778', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803776', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803773', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803770', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803766', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803763', None, None, None, None, None, '3481501')] time used for this insertion : 0.018617630004882812 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.47025322914123535 time spend to save output : 0.019083738327026367 total time spend for step 1 : 0.4893369674682617 step2:final Fri Aug 8 06:14:29 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 (25803890) 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 25803890 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1375800797,1375802134,1375800774,1375802003,1375800753,1375801593,1375801203,1375801162,1375801571,1375801137,1375801548,1375801111,1375801523,1375801497,1375801101,1375801473,1375801100,1375801379,1375801352,1375801345,1375801340,1375801336,1375801334,1375801968,1375801922,1375801872,1375801825,1375801782,1375802423,1375802398,1375802372,1375802344,1375802316,1375802732,1375802670,1375802640,1375802614,1375802591,1375802567,1375803049,1375803022,1375802998,1375802973,1375802948,1375803247,1375803243,1375803240,1375803238,1375803237,1375803235,1375803464,1375803438,1375803412,1375803389,1375803365,1375803836,1375803697,1375803692,1375803834,1375803675,1375803820,1375803672,1375803798,1375803643,1375803796,1375803741,1375803735,1375803794,1375803729,1375803791,1375803723,1375803788,1375803721,1375803785,1375803720,1375803778,1375803776,1375803773,1375803770,1375803766,1375803763,1375803816,1375803814,1375803811,1375803807,1375803805); 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([25803890]) Inside saveOutput : final : False verbose : True original output for save of step final : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} new output for save of step final : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763] map_info['map_portfolio_photo'] : {25803890: [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763, 1375803741, 1375803735, 1375803729, 1375803723, 1375803721, 1375803720, 1375803697, 1375803692, 1375803675, 1375803672, 1375803643, 1375803464, 1375803438, 1375803412, 1375803389, 1375803365, 1375803247, 1375803243, 1375803240, 1375803238, 1375803237, 1375803235, 1375803049, 1375803022, 1375802998, 1375802973, 1375802948, 1375802732, 1375802670, 1375802640, 1375802614, 1375802591, 1375802567, 1375802423, 1375802398, 1375802372, 1375802344, 1375802316, 1375802134, 1375802003, 1375801968, 1375801922, 1375801872, 1375801825, 1375801782, 1375801593, 1375801571, 1375801548, 1375801523, 1375801497, 1375801473, 1375801379, 1375801352, 1375801345, 1375801340, 1375801336, 1375801334, 1375801203, 1375801162, 1375801137, 1375801111, 1375801101, 1375801100, 1375800797, 1375800774, 1375800753]} final : False mtd_id 4302 list_pids : [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763] Looping around the photos to save general results len do output : 20 /1375803836.Didn't retrieve data . /1375803834.Didn't retrieve data . /1375803820.Didn't retrieve data . /1375803816.Didn't retrieve data . /1375803814.Didn't retrieve data . /1375803811.Didn't retrieve data . /1375803807.Didn't retrieve data . /1375803805.Didn't retrieve data . /1375803798.Didn't retrieve data . /1375803796.Didn't retrieve data . /1375803794.Didn't retrieve data . /1375803791.Didn't retrieve data . /1375803788.Didn't retrieve data . /1375803785.Didn't retrieve data . /1375803778.Didn't retrieve data . /1375803776.Didn't retrieve data . /1375803773.Didn't retrieve data . /1375803770.Didn't retrieve data . /1375803766.Didn't retrieve data . /1375803763.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, '3481501') ('4302', '25803890', '1375803836', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803834', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803820', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803816', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803814', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803811', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803807', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803805', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803798', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803796', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803794', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803791', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803788', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803785', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803778', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803776', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803773', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803770', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803766', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803763', None, None, None, None, None, '3481501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 60 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', '25803890', '1375803836', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803834', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803820', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803816', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803814', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803811', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803807', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803805', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803798', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803796', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803794', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803791', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803788', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803785', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803778', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803776', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803773', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803770', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803766', '0.04166344758966123', None, None, None, None, '3481501'), ('4302', '25803890', '1375803763', '0.04166344758966123', None, None, None, None, '3481501')] time used for this insertion : 0.018331050872802734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06882143020629883 time spend to save output : 0.019229650497436523 total time spend for step 2 : 0.08805108070373535 step3:velours_tree Fri Aug 8 06:14:29 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 : {25803890: [{'environnement': 25803903, 'metal': 25803904, 'Carton_brun': 25803905, 'mal_croppe': 25803906, 'Carton_gris': 25803907, 'cartonnette': 25803908, 'flou': 25803909, 'kraft': 25803910, 'papier': 25803911, 'plastique': 25803912, 'Teint_Dans_La_Masse': 25803913, 'autre_refus': 25803914}]} input_args_next_step : {25803890: ()} output_args : {25803890: [{'environnement': 25803903, 'metal': 25803904, 'Carton_brun': 25803905, 'mal_croppe': 25803906, 'Carton_gris': 25803907, 'cartonnette': 25803908, 'flou': 25803909, 'kraft': 25803910, 'papier': 25803911, 'plastique': 25803912, 'Teint_Dans_La_Masse': 25803913, 'autre_refus': 25803914}]} args : 25803890 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 : ({'environnement': 25803903, 'metal': 25803904, 'Carton_brun': 25803905, 'mal_croppe': 25803906, 'Carton_gris': 25803907, 'cartonnette': 25803908, 'flou': 25803909, 'kraft': 25803910, 'papier': 25803911, 'plastique': 25803912, 'Teint_Dans_La_Masse': 25803913, 'autre_refus': 25803914},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25803890) 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([25803890]) 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.27823734283447266 time spend to save output : 7.987022399902344e-05 total time spend for step 3 : 0.2783172130584717 step4:send_mail_cod Fri Aug 8 06:14:29 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 : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} input_args_next_step : {1375803836: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803836 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803834 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803820 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803816 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803814 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803811 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803807 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803805 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803798 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803796 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803794 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803791 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803788 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803785 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803778 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803776 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803773 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803770 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803766 depend.output_id : 0 input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ()} output_args : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',)} args : 1375803763 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 : {25803890: [{'environnement': 25803903, 'metal': 25803904, 'Carton_brun': 25803905, 'mal_croppe': 25803906, 'Carton_gris': 25803907, 'cartonnette': 25803908, 'flou': 25803909, 'kraft': 25803910, 'papier': 25803911, 'plastique': 25803912, 'Teint_Dans_La_Masse': 25803913, 'autre_refus': 25803914}]} input_args_next_step : {1375803836: ('0.04166344758966123',), 1375803834: ('0.04166344758966123',), 1375803820: ('0.04166344758966123',), 1375803816: ('0.04166344758966123',), 1375803814: ('0.04166344758966123',), 1375803811: ('0.04166344758966123',), 1375803807: ('0.04166344758966123',), 1375803805: ('0.04166344758966123',), 1375803798: ('0.04166344758966123',), 1375803796: ('0.04166344758966123',), 1375803794: ('0.04166344758966123',), 1375803791: ('0.04166344758966123',), 1375803788: ('0.04166344758966123',), 1375803785: ('0.04166344758966123',), 1375803778: ('0.04166344758966123',), 1375803776: ('0.04166344758966123',), 1375803773: ('0.04166344758966123',), 1375803770: ('0.04166344758966123',), 1375803766: ('0.04166344758966123',), 1375803763: ('0.04166344758966123',), 25803890: ()} output_args : {25803890: [{'environnement': 25803903, 'metal': 25803904, 'Carton_brun': 25803905, 'mal_croppe': 25803906, 'Carton_gris': 25803907, 'cartonnette': 25803908, 'flou': 25803909, 'kraft': 25803910, 'papier': 25803911, 'plastique': 25803912, 'Teint_Dans_La_Masse': 25803913, 'autre_refus': 25803914}]} args : 25803890 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 :21, first value : ('0.04166344758966123',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25803890) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1375803836,1375803834,1375803820,1375803816,1375803814,1375803811,1375803807,1375803805,1375803798,1375803796,1375803794,1375803791,1375803788,1375803785,1375803778,1375803776,1375803773,1375803770,1375803766,1375803763) Found this number of photos: 20 ##### Call download_photos : nb_thread : 5 begin to download photo : 1375803763 begin to download photo : 1375803778 begin to download photo : 1375803796 begin to download photo : 1375803814 download finish for photo 1375803796 begin to download photo : 1375803798 download finish for photo 1375803778 begin to download photo : 1375803785 download finish for photo 1375803814 begin to download photo : 1375803816 download finish for photo 1375803763 begin to download photo : 1375803766 download finish for photo 1375803798 begin to download photo : 1375803805 download finish for photo 1375803785 begin to download photo : 1375803788 download finish for photo 1375803766 begin to download photo : 1375803770 download finish for photo 1375803816 begin to download photo : 1375803820 download finish for photo 1375803805 begin to download photo : 1375803807 download finish for photo 1375803788 begin to download photo : 1375803791 download finish for photo 1375803820 begin to download photo : 1375803834 download finish for photo 1375803770 begin to download photo : 1375803773 download finish for photo 1375803807 begin to download photo : 1375803811 download finish for photo 1375803791 begin to download photo : 1375803794 download finish for photo 1375803773 begin to download photo : 1375803776 download finish for photo 1375803834 begin to download photo : 1375803836 download finish for photo 1375803811 download finish for photo 1375803794 download finish for photo 1375803836 download finish for photo 1375803776 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 results_Auto_P25803890_08-08-2025_06_14_30.pdf 25803904 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803904 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375803665: '1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795939_0.png'} change filename to text .imagette258039041754626470/ imagette258039041754626470/1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795939_0.png.png imagette258039061754626470/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/2d36ef5283b6823144af04081979f360_89641431.png imagette258039041754626470 25803906 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803906 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258039061754626470 25803908 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803908 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375803637: '1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795940_0.png', 1375803639: '1754626167_2804532_1375801334_3ef37d72ba89c61de16c4eb4bfaec350_rle_crop_3906795986_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/b631d378c292fb73ad7eb84c240ca8db_86979741.png change filename to text .imagette258039081754626470/ imagette258039081754626470/1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795940_0.png.png imagette258039081754626470/1754626167_2804532_1375801334_3ef37d72ba89c61de16c4eb4bfaec350_rle_crop_3906795986_0.png.png imagette258039091754626470/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/4f6b862d5b68b501ed627b7ee605b0b4_75667301.png imagette258039081754626470 25803909 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803909 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258039091754626470 25803910 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375802496: '1754625925_2796804_1375800753_c049c45700e667838f5fc1c7855089e6_rle_crop_3906795528_0.png'} change filename to text .imagette258039101754626470/ imagette258039101754626470/1754625925_2796804_1375800753_c049c45700e667838f5fc1c7855089e6_rle_crop_3906795528_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/985a73069790d491de9b05e3b810d90a_76818064.png imagette258039101754626470 25803912 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803912 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375803657: '1754626167_2804532_1375801340_40d79b660bb5abc60b59ca1d97e9e7cc_rle_crop_3906795959_0.png'} change filename to text .imagette258039121754626470/ imagette258039121754626470/1754626167_2804532_1375801340_40d79b660bb5abc60b59ca1d97e9e7cc_rle_crop_3906795959_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/1a459a4e10cd217c775c5c13ccf1ad4d_56465342.png imagette258039121754626470 25803914 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803914 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375802481: '1754625925_2796804_1375800753_c049c45700e667838f5fc1c7855089e6_rle_crop_3906795531_0.png', 1375803618: '1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795946_0.png', 1375803620: '1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795938_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/252e619853ceb10243bdb845582755fc_84380152.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/950154916b5bb3fc97ae1057090693db_65184349.png change filename to text .imagette258039141754626470/ imagette258039141754626470/1754625925_2796804_1375800753_c049c45700e667838f5fc1c7855089e6_rle_crop_3906795531_0.png.png imagette258039141754626470/1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795938_0.png.png imagette258039141754626470/1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795946_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/a68ff5058057f4b6be391d62604922e7_50559441.png imagette258039141754626470 25803905 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803905 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375803647: '1754626167_2804532_1375801352_ae6a71007fa24f2f5c2d4aa79236882e_rle_crop_3906795929_0.png', 1375803649: '1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795943_0.png', 1375803831: '1754626405_2812674_1375803022_660d8abf35ed4b357ed0a8cd24d30879_rle_crop_3906796277_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/9c888f8f5075473f56ab38db32ae2797_47625808.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/785e621a64b4b189f9cc921152855145_13217983.png change filename to text .imagette258039051754626470/ imagette258039051754626470/1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795943_0.png.png imagette258039051754626470/1754626167_2804532_1375801352_ae6a71007fa24f2f5c2d4aa79236882e_rle_crop_3906795929_0.png.png imagette258039051754626470/1754626405_2812674_1375803022_660d8abf35ed4b357ed0a8cd24d30879_rle_crop_3906796277_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/acb6c5e31ec051b0b999750f436bc121_76319017.png imagette258039051754626470 25803907 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803907 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375802489: '1754625925_2796804_1375800774_a04b5b08142796d2eb5d7f08b9940051_rle_crop_3906795523_0.png', 1375803629: '1754626167_2804532_1375801340_40d79b660bb5abc60b59ca1d97e9e7cc_rle_crop_3906795960_0.png', 1375803828: '1754626405_2812674_1375803022_660d8abf35ed4b357ed0a8cd24d30879_rle_crop_3906796280_0.png', 1375803830: '1754626405_2812674_1375802948_c41a074a41df5b0fb70cefff82291fe4_rle_crop_3906796304_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/58810bad4cc99ad35576d462871e1ce0_22235319.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/84b8a6df1eb034d7b084993a0e159829_20777324.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/3f7e77d9cf76583f7da7ea05c7f94115_82833331.png change filename to text .imagette258039071754626470/ imagette258039071754626470/1754626167_2804532_1375801340_40d79b660bb5abc60b59ca1d97e9e7cc_rle_crop_3906795960_0.png.png imagette258039071754626470/1754626405_2812674_1375803022_660d8abf35ed4b357ed0a8cd24d30879_rle_crop_3906796280_0.png.png imagette258039071754626470/1754626405_2812674_1375802948_c41a074a41df5b0fb70cefff82291fe4_rle_crop_3906796304_0.png.png imagette258039071754626470/1754625925_2796804_1375800774_a04b5b08142796d2eb5d7f08b9940051_rle_crop_3906795523_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/68f9047c1d3da5e03b6c51b78507b170_99379817.png imagette258039071754626470 25803913 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803913 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1375803607: '1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795942_0.png', 1375803608: '1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795945_0.png', 1375803609: '1754626167_2804532_1375801340_40d79b660bb5abc60b59ca1d97e9e7cc_rle_crop_3906795957_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/360bfabac36613bd72bbc0c20706d291_64027328.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/8ab32186db1d970ccc94cdba5c368493_93594092.png change filename to text .imagette258039131754626471/ imagette258039131754626471/1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795942_0.png.png imagette258039131754626471/1754626167_2804532_1375801340_40d79b660bb5abc60b59ca1d97e9e7cc_rle_crop_3906795957_0.png.png imagette258039131754626471/1754626167_2804532_1375801345_d229a5cdbb49f72f49de87cca133a8fb_rle_crop_3906795945_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/a9fc2c1ca22a284007669bc4c49e4194_18061812.png imagette258039131754626471 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25803890 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25803916,25803917,25803918,25803919,25803920,25803921,25803922,25803923,25803924,25803925,25803926,25803927?tags=environnement,metal,Carton_brun,mal_croppe,Carton_gris,cartonnette,flou,kraft,papier,plastique,Teint_Dans_La_Masse,autre_refus your option no_mail is active, we will not send the real mail to your client args[1375803836] : ('0.04166344758966123',) no score found for photo 1375803836 We are sending mail with results at report@fotonower.com args[1375803834] : ('0.04166344758966123',) no score found for photo 1375803834 We are sending mail with results at report@fotonower.com args[1375803820] : ('0.04166344758966123',) no score found for photo 1375803820 We are sending mail with results at report@fotonower.com args[1375803816] : ('0.04166344758966123',) no score found for photo 1375803816 We are sending mail with results at report@fotonower.com args[1375803814] : ('0.04166344758966123',) no score found for photo 1375803814 We are sending mail with results at report@fotonower.com args[1375803811] : ('0.04166344758966123',) no score found for photo 1375803811 We are sending mail with results at report@fotonower.com args[1375803807] : ('0.04166344758966123',) no score found for photo 1375803807 We are sending mail with results at report@fotonower.com args[1375803805] : ('0.04166344758966123',) no score found for photo 1375803805 We are sending mail with results at report@fotonower.com args[1375803798] : ('0.04166344758966123',) no score found for photo 1375803798 We are sending mail with results at report@fotonower.com args[1375803796] : ('0.04166344758966123',) no score found for photo 1375803796 We are sending mail with results at report@fotonower.com args[1375803794] : ('0.04166344758966123',) no score found for photo 1375803794 We are sending mail with results at report@fotonower.com args[1375803791] : ('0.04166344758966123',) no score found for photo 1375803791 We are sending mail with results at report@fotonower.com args[1375803788] : ('0.04166344758966123',) no score found for photo 1375803788 We are sending mail with results at report@fotonower.com args[1375803785] : ('0.04166344758966123',) no score found for photo 1375803785 We are sending mail with results at report@fotonower.com args[1375803778] : ('0.04166344758966123',) no score found for photo 1375803778 We are sending mail with results at report@fotonower.com args[1375803776] : ('0.04166344758966123',) no score found for photo 1375803776 We are sending mail with results at report@fotonower.com args[1375803773] : ('0.04166344758966123',) no score found for photo 1375803773 We are sending mail with results at report@fotonower.com args[1375803770] : ('0.04166344758966123',) no score found for photo 1375803770 We are sending mail with results at report@fotonower.com args[1375803766] : ('0.04166344758966123',) no score found for photo 1375803766 We are sending mail with results at report@fotonower.com args[1375803763] : ('0.04166344758966123',) no score found for photo 1375803763 We are sending mail with results at report@fotonower.com refus_total : 0.04166344758966123 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803890 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_P25803890_08-08-2025_06_14_30.pdf results_Auto_P25803890_08-08-2025_06_14_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803890_08-08-2025_06_14_30.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','25803890','results_Auto_P25803890_08-08-2025_06_14_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803890_08-08-2025_06_14_30.pdf','pdf','','0.21','0.04166344758966123') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25803890]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763] map_info['map_portfolio_photo'] : {25803890: [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763, 1375803741, 1375803735, 1375803729, 1375803723, 1375803721, 1375803720, 1375803697, 1375803692, 1375803675, 1375803672, 1375803643, 1375803464, 1375803438, 1375803412, 1375803389, 1375803365, 1375803247, 1375803243, 1375803240, 1375803238, 1375803237, 1375803235, 1375803049, 1375803022, 1375802998, 1375802973, 1375802948, 1375802732, 1375802670, 1375802640, 1375802614, 1375802591, 1375802567, 1375802423, 1375802398, 1375802372, 1375802344, 1375802316, 1375802134, 1375802003, 1375801968, 1375801922, 1375801872, 1375801825, 1375801782, 1375801593, 1375801571, 1375801548, 1375801523, 1375801497, 1375801473, 1375801379, 1375801352, 1375801345, 1375801340, 1375801336, 1375801334, 1375801203, 1375801162, 1375801137, 1375801111, 1375801101, 1375801100, 1375800797, 1375800774, 1375800753]} final : False mtd_id 4302 list_pids : [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763] 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, '3481501') ('4302', '25803890', '1375803836', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803834', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803820', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803816', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803814', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803811', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803807', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803805', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803798', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803796', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803794', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803791', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803788', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803785', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803778', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803776', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803773', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803770', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803766', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803763', None, None, None, None, None, '3481501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25803890', '1375803836', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803834', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803820', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803816', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803814', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803811', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803807', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803805', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803798', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803796', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803794', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803791', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803788', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803785', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803778', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803776', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803773', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803770', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803766', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803763', None, None, None, None, None, '3481501')] time used for this insertion : 0.024332523345947266 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.751230001449585 time spend to save output : 0.024608135223388672 total time spend for step 4 : 3.7758381366729736 step5:split_time_score Fri Aug 8 06:14:33 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 : ['25803890'] 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 : [('25803890',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25803890) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1375803796: {'path': 'temp/1754626469_1770395_1375803796_89b1f4217cbd408367040faa31856ad3.jpg', 'extension': 'jpg'}, 1375803798: {'path': 'temp/1754626469_1770395_1375803798_ac4c4ddc79c1761dc08099c570027645.jpg', 'extension': 'jpg'}, 1375803805: {'path': 'temp/1754626469_1770395_1375803805_d8956f8fc3eda9aa7aaf7d877d183a78.jpg', 'extension': 'jpg'}, 1375803807: {'path': 'temp/1754626469_1770395_1375803807_1ce0d72b1a487119b90adb7de525da23.jpg', 'extension': 'jpg'}, 1375803811: {'path': 'temp/1754626469_1770395_1375803811_a1db812d3d480c973820f6b306fbb9c9.jpg', 'extension': 'jpg'}, 1375803778: {'path': 'temp/1754626469_1770395_1375803778_a4f8fc10192cdab0967b1e6ef8225c7c.jpg', 'extension': 'jpg'}, 1375803785: {'path': 'temp/1754626469_1770395_1375803785_0163574a26daa08d0c206ffbb6fcd7ef.jpg', 'extension': 'jpg'}, 1375803788: {'path': 'temp/1754626469_1770395_1375803788_c63206ad0769801748786899f7c31ad8.jpg', 'extension': 'jpg'}, 1375803791: {'path': 'temp/1754626469_1770395_1375803791_07b5749c33425ee243610772d6f4cabf.jpg', 'extension': 'jpg'}, 1375803794: {'path': 'temp/1754626469_1770395_1375803794_52578ce1537b639e09cc338c75d34d25.jpg', 'extension': 'jpg'}, 1375803814: {'path': 'temp/1754626469_1770395_1375803814_8a8d679b81346df19066024e5428f9a8.jpg', 'extension': 'jpg'}, 1375803816: {'path': 'temp/1754626469_1770395_1375803816_93ecbf971462cb01f589be1f66805c6c.jpg', 'extension': 'jpg'}, 1375803820: {'path': 'temp/1754626469_1770395_1375803820_c801952c9f5eea6c44d05260ba333ed9.jpg', 'extension': 'jpg'}, 1375803834: {'path': 'temp/1754626469_1770395_1375803834_35ced074b1a2e891707472b756a8041b.jpg', 'extension': 'jpg'}, 1375803836: {'path': 'temp/1754626469_1770395_1375803836_27665cea7a6c30a1d69ea16cd751a9ce.jpg', 'extension': 'jpg'}, 1375803763: {'path': 'temp/1754626469_1770395_1375803763_6a43e20bdf480deaf0f7e02abf2106a8.jpg', 'extension': 'jpg'}, 1375803766: {'path': 'temp/1754626469_1770395_1375803766_da5cac26f78c8f908cc60b0717911597.jpg', 'extension': 'jpg'}, 1375803770: {'path': 'temp/1754626469_1770395_1375803770_bfc24ad91627ff93efa4918efb2e0cca.jpg', 'extension': 'jpg'}, 1375803773: {'path': 'temp/1754626469_1770395_1375803773_c7312c8d611a8f48d987fe7d08ed7d4d.jpg', 'extension': 'jpg'}, 1375803776: {'path': 'temp/1754626469_1770395_1375803776_1824c9766aa0e8c47e3e2745d18b501b.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 = 25803890; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25803890 group by h (('06', 86),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25803890 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 (25803890) 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 (25803890) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08082025 25803890 Nombre de photos uploadées : 86 / 23040 (0%) 08082025 25803890 Nombre de photos taguées (types de déchets): 0 / 86 (0%) 08082025 25803890 Nombre de photos taguées (volume) : 0 / 86 (0%) [{'photo_id': 1375800797, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/87a00b96177796a7b3f6a4f9fe80eb44.jpg', 'username': None, 'uploaded_at': 1754625667, 'text': 'image_08082025_06_00_14_010201m0.jpg 1e-05 for time 1, id_amount 0 this amount prod time diff : 1e-05'}, {'photo_id': 1375802134, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/c038ad5e400e98eeb405fb70989aec21.jpg', 'username': None, 'uploaded_at': 1754625903, 'text': 'image_08082025_06_00_14_10201.jpg'}, {'photo_id': 1375800774, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/a04b5b08142796d2eb5d7f08b9940051.jpg', 'username': None, 'uploaded_at': 1754625667, 'text': 'image_08082025_06_00_34_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1375802003, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/8/be524aec11786c874dfd1a9bcbd84ce8.jpg', 'username': None, 'uploaded_at': 1754625867, 'text': 'image_08082025_06_00_34_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004399299621582031 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25803890, '2025-08-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-08' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2085247,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21483159065246582 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 2085247 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25799827, 'dashboard_result_id': 13769818, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799827_08-08-2025_00_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799839, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25799927, 'dashboard_result_id': 13769819, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799927_08-08-2025_00_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799958, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25800110, 'dashboard_result_id': 13769820, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800110_08-08-2025_00_47_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25800112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800123, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25800322, 'dashboard_result_id': 13769821, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800322_08-08-2025_01_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800334, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25800662, 'dashboard_result_id': 13769822, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800662_08-08-2025_01_49_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800675, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25800775, 'dashboard_result_id': 13769823, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800775_08-08-2025_02_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25800776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800787, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25801008, 'dashboard_result_id': 13769824, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801008_08-08-2025_02_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801023, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25801368, 'dashboard_result_id': 13769825, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801368_08-08-2025_02_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801381, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25801481, 'dashboard_result_id': 13769826, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801481_08-08-2025_02_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801494, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25801571, 'dashboard_result_id': 13769827, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801571_08-08-2025_03_02_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801583, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25801970, 'dashboard_result_id': 13769828, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801970_08-08-2025_03_36_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801982, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25802109, 'dashboard_result_id': 13769829, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802109_08-08-2025_04_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802123, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25802632, 'dashboard_result_id': 13769830, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802632_08-08-2025_05_22_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25802634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802645, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25802900, 'dashboard_result_id': 13769831, '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_P25802900_08-08-2025_05_35_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802916, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25803160, 'dashboard_result_id': 13769832, '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_P25803160_08-08-2025_05_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803196, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25803515, 'dashboard_result_id': 13769833, '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_P25803515_08-08-2025_06_07_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803559, 'pht': 3726}}"}, {'dashboat_entry_day': 2085247, 'dashboard_run_id': 2094135, 'mtr_portfolio_id': 25803890, 'dashboard_result_id': 13769834, '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_P25803890_08-08-2025_06_12_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803914, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25799827 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480390, 'mtr_portfolio_id': 25799827, 'created_at': datetime.datetime(2025, 8, 8, 0, 16, 31), 'result': '0.09979469037252053', 'result_long': None, 'result_double': None}] Qualite : 0.09979469037252053 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25799827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799827_08-08-2025_00_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25799827 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799827_08-08-2025_00_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799839, 'pht': 3726}}" where mtr_portfolio_id = 25799827 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25799827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769818, 0.09979469037252053, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799827_08-08-2025_00_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799829, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799830, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799839, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25799927 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480403, 'mtr_portfolio_id': 25799927, 'created_at': datetime.datetime(2025, 8, 8, 0, 32, 57), 'result': '0.059587379092336044', 'result_long': None, 'result_double': None}] Qualite : 0.059587379092336044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25799927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799927_08-08-2025_00_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25799927 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799927_08-08-2025_00_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799958, 'pht': 3726}}" where mtr_portfolio_id = 25799927 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25799927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769819, 0.059587379092336044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25799927_08-08-2025_00_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25799947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25799948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25799949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25799950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25799951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25799952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25799953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25799954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25799955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25799956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25799957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25799958, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25800110 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480435, 'mtr_portfolio_id': 25800110, 'created_at': datetime.datetime(2025, 8, 8, 0, 47), 'result': '0.1798647083655333', 'result_long': None, 'result_double': None}] Qualite : 0.1798647083655333 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800110_08-08-2025_00_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800110 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800110_08-08-2025_00_47_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25800112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800123, 'pht': 3726}}" where mtr_portfolio_id = 25800110 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25800110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769820, 0.1798647083655333, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800110_08-08-2025_00_47_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25800112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800113, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800114, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800123, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25800322 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480474, 'mtr_portfolio_id': 25800322, 'created_at': datetime.datetime(2025, 8, 8, 1, 32, 58), 'result': '0.12666235646319696', 'result_long': None, 'result_double': None}] Qualite : 0.12666235646319696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800322 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800322_08-08-2025_01_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800322 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800322_08-08-2025_01_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800334, 'pht': 3726}}" where mtr_portfolio_id = 25800322 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25800322 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769821, 0.12666235646319696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800322_08-08-2025_01_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800334, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25800662 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480562, 'mtr_portfolio_id': 25800662, 'created_at': datetime.datetime(2025, 8, 8, 1, 49), 'result': '0.042249612763709726', 'result_long': None, 'result_double': None}] Qualite : 0.042249612763709726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800662_08-08-2025_01_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800662 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800662_08-08-2025_01_49_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800675, 'pht': 3726}}" where mtr_portfolio_id = 25800662 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25800662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769822, 0.042249612763709726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800662_08-08-2025_01_49_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800664, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25800670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800675, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25800775 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480587, 'mtr_portfolio_id': 25800775, 'created_at': datetime.datetime(2025, 8, 8, 2, 4, 59), 'result': '0.035763394118270876', 'result_long': None, 'result_double': None}] Qualite : 0.035763394118270876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25800775 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800775_08-08-2025_02_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25800775 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800775_08-08-2025_02_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25800776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800787, 'pht': 3726}}" where mtr_portfolio_id = 25800775 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25800775 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769823, 0.035763394118270876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25800775_08-08-2025_02_05_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25800776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25800777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25800778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25800779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25800780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25800781, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25800782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25800783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25800784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25800785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25800786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25800787, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25801008 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480648, 'mtr_portfolio_id': 25801008, 'created_at': datetime.datetime(2025, 8, 8, 2, 16, 58), 'result': '0.0623854119578064', 'result_long': None, 'result_double': None}] Qualite : 0.0623854119578064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801008_08-08-2025_02_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801008 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801008_08-08-2025_02_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801023, 'pht': 3726}}" where mtr_portfolio_id = 25801008 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25801008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769824, 0.0623854119578064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801008_08-08-2025_02_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801020, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801022, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801023, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25801368 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480678, 'mtr_portfolio_id': 25801368, 'created_at': datetime.datetime(2025, 8, 8, 2, 34, 59), 'result': '0.058163930809467225', 'result_long': None, 'result_double': None}] Qualite : 0.058163930809467225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801368_08-08-2025_02_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801368 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801368_08-08-2025_02_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801381, 'pht': 3726}}" where mtr_portfolio_id = 25801368 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25801368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769825, 0.058163930809467225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801368_08-08-2025_02_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801381, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25801481 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480706, 'mtr_portfolio_id': 25801481, 'created_at': datetime.datetime(2025, 8, 8, 2, 50, 31), 'result': '0.19000420461687445', 'result_long': None, 'result_double': None}] Qualite : 0.19000420461687445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801481_08-08-2025_02_50_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801481 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801481_08-08-2025_02_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801494, 'pht': 3726}}" where mtr_portfolio_id = 25801481 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25801481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769826, 0.19000420461687445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801481_08-08-2025_02_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801493, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801494, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25801571 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480734, 'mtr_portfolio_id': 25801571, 'created_at': datetime.datetime(2025, 8, 8, 3, 2, 29), 'result': '0.03534131412552654', 'result_long': None, 'result_double': None}] Qualite : 0.03534131412552654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801571_08-08-2025_03_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801571 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801571_08-08-2025_03_02_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801583, 'pht': 3726}}" where mtr_portfolio_id = 25801571 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25801571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769827, 0.03534131412552654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801571_08-08-2025_03_02_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801577, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801579, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801581, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801583, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25801970 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480811, 'mtr_portfolio_id': 25801970, 'created_at': datetime.datetime(2025, 8, 8, 3, 36, 58), 'result': '0.07121941165480151', 'result_long': None, 'result_double': None}] Qualite : 0.07121941165480151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25801970 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801970_08-08-2025_03_36_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25801970 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801970_08-08-2025_03_36_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801982, 'pht': 3726}}" where mtr_portfolio_id = 25801970 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25801970 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769828, 0.07121941165480151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25801970_08-08-2025_03_36_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25801971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25801972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25801973, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25801974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25801975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25801976, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25801977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25801978, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25801979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25801980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25801981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25801982, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25802109 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3480855, 'mtr_portfolio_id': 25802109, 'created_at': datetime.datetime(2025, 8, 8, 4, 5), 'result': '0.07652594118949221', 'result_long': None, 'result_double': None}] Qualite : 0.07652594118949221 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25802109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802109_08-08-2025_04_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25802109 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802109_08-08-2025_04_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802123, 'pht': 3726}}" where mtr_portfolio_id = 25802109 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25802109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769829, 0.07652594118949221, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802109_08-08-2025_04_05_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802123, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25802632 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3481009, 'mtr_portfolio_id': 25802632, 'created_at': datetime.datetime(2025, 8, 8, 5, 22, 30), 'result': '0.03909585061617039', 'result_long': None, 'result_double': None}] Qualite : 0.03909585061617039 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25802632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802632_08-08-2025_05_22_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25802632 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802632_08-08-2025_05_22_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25802634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802645, 'pht': 3726}}" where mtr_portfolio_id = 25802632 and dashboard_run_id = 2094135 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25802632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769830, 0.03909585061617039, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802632_08-08-2025_05_22_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25802634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802638, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802645, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25802900 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': 3481038, 'mtr_portfolio_id': 25802900, 'created_at': datetime.datetime(2025, 8, 8, 5, 35, 33), 'result': '0.06062113137789978', 'result_long': None, 'result_double': None}] Qualite : 0.06062113137789978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25802900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802900_08-08-2025_05_35_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25802900 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_P25802900_08-08-2025_05_35_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802916, 'pht': 3726}}" where mtr_portfolio_id = 25802900 and dashboard_run_id = 2094135 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`=25802900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769831, 0.06062113137789978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25802900_08-08-2025_05_35_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25802905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25802906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25802907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25802908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25802909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25802910, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25802911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25802912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25802913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25802914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25802915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25802916, '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 = 25803160 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': 3481124, 'mtr_portfolio_id': 25803160, 'created_at': datetime.datetime(2025, 8, 8, 5, 49, 1), 'result': '0.04045505143194338', 'result_long': None, 'result_double': None}] Qualite : 0.04045505143194338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25803160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803160_08-08-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25803160 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_P25803160_08-08-2025_05_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803196, 'pht': 3726}}" where mtr_portfolio_id = 25803160 and dashboard_run_id = 2094135 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`=25803160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769832, 0.04045505143194338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803160_08-08-2025_05_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803196, '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 = 25803515 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': 3481350, 'mtr_portfolio_id': 25803515, 'created_at': datetime.datetime(2025, 8, 8, 6, 7, 28), 'result': '0.04910239351254456', 'result_long': None, 'result_double': None}] Qualite : 0.04910239351254456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25803515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803515_08-08-2025_06_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25803515 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_P25803515_08-08-2025_06_07_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803559, 'pht': 3726}}" where mtr_portfolio_id = 25803515 and dashboard_run_id = 2094135 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`=25803515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769833, 0.04910239351254456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803515_08-08-2025_06_07_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803548, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803559, '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 = 25803890 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': 3481501, 'mtr_portfolio_id': 25803890, 'created_at': datetime.datetime(2025, 8, 8, 6, 14, 29), 'result': '0.04166344758966123', 'result_long': None, 'result_double': None}] Qualite : 0.04166344758966123 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25803890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803890_08-08-2025_06_14_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25803890 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_P25803890_08-08-2025_06_14_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803914, 'pht': 3726}}" where mtr_portfolio_id = 25803890 and dashboard_run_id = 2094135 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`=25803890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13769834, 0.04166344758966123, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25803890_08-08-2025_06_14_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25803903, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25803904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25803905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25803906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25803907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25803908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25803909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25803910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25803911, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25803912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25803913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25803914, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25799827,25799927,25800110,25800322,25800662,25800775,25801008,25801368,25801481,25801571,25801970,25802109,25802632,25802900,25803160,25803515,25803890) result : ((1375774972,), (1375774992,), (1375775015,), (1375775058,), (1375775136,), (1375775191,), (1375775202,), (1375775411,), (1375775410,), (1375775461,), (1375775462,), (1375775578,), (1375775637,), (1375775667,), (1375775864,), (1375775889,), (1375775890,), (1375775904,), (1375775947,), (1375775975,), (1375775977,), (1375776093,), (1375776090,), (1375776092,), (1375776222,), (1375776273,), (1375776302,), (1375776434,), (1375776499,), (1375776501,), (1375776516,), (1375776518,), (1375776523,), (1375776543,), (1375776546,), (1375776570,), (1375776591,), (1375776593,), (1375776618,), (1375776646,), (1375776694,), (1375776696,), (1375776754,), (1375776815,), (1375776853,), (1375776877,), (1375776909,), (1375776910,), (1375776977,), (1375776978,), (1375781039,), (1375781057,), (1375781145,), (1375781147,), (1375781162,), (1375781252,), (1375781275,), (1375781294,), (1375781316,), (1375781318,), (1375781382,), (1375781408,), (1375781412,), (1375781453,), (1375781514,), (1375781516,), (1375781541,), (1375781542,), (1375781568,), (1375781582,), (1375781583,), (1375781675,), (1375781676,), (1375781724,), (1375781745,), (1375781748,), (1375781774,), (1375781776,), (1375781835,), (1375782143,), (1375782856,), (1375782880,), (1375785041,), (1375785066,), (1375786986,), (1375786987,), (1375787002,), (1375787025,), (1375787026,), (1375787093,), (1375787112,), (1375787217,), (1375787236,), (1375787238,), (1375787242,), (1375787343,), (1375787387,), (1375787433,), (1375787498,), (1375787517,), (1375787538,), (1375787575,), (1375787578,), (1375787581,), (1375787721,), (1375787722,), (1375787742,), (1375787743,), (1375787794,), (1375787913,), (1375787953,), (1375787954,), (1375787980,), (1375787981,), (1375787983,), (1375787988,), (1375788008,), (1375788010,), (1375788083,), (1375788154,), (1375788549,), (1375789049,), (1375791171,), (1375791189,), (1375791222,), (1375791224,), (1375791268,), (1375791314,), (1375791357,), (1375791359,), (1375791539,), (1375791822,), (1375791825,), (1375791837,), (1375791838,), (1375791840,), (1375791895,), (1375791924,), (1375791941,), (1375791969,), (1375791996,), (1375792021,), (1375792048,), (1375792959,), (1375793540,), (1375794182,), (1375794555,), (1375797628,), (1375798026,), (1375798052,), (1375798075,), (1375798101,), (1375798249,), (1375798252,), (1375798472,), (1375798490,), (1375798507,), (1375798559,), (1375798561,), (1375798563,), (1375798565,), (1375798586,), (1375798589,), (1375798593,), (1375798597,), (1375798601,), (1375798620,), (1375798622,), (1375798624,), (1375798627,), (1375798631,), (1375798644,), (1375798647,), (1375798656,), (1375798661,), (1375798663,), (1375798668,), (1375798682,), (1375798684,), (1375798687,), (1375798690,), (1375798693,), (1375798696,), (1375798708,), (1375798710,), (1375798713,), (1375798716,), (1375798717,), (1375798719,), (1375798724,), (1375798727,), (1375798730,), (1375798732,), (1375798734,), (1375798737,), (1375798748,), (1375798751,), (1375798753,), (1375798755,), (1375798757,), (1375798841,), (1375798913,), (1375798915,), (1375798923,), (1375798943,), (1375798954,), (1375798829,), (1375798830,), (1375798833,), (1375798836,), (1375798838,), (1375798853,), (1375798855,), (1375798857,), (1375798858,), (1375798859,), (1375798861,), (1375798867,), (1375798870,), (1375798874,), (1375798878,), (1375798880,), (1375798887,), (1375798902,), (1375798904,), (1375798907,), (1375798910,), (1375798964,), (1375798966,), (1375798970,), (1375798973,), (1375798976,), (1375799005,), (1375799008,), (1375799013,), (1375799016,), (1375799020,), (1375799022,), (1375799032,), (1375799036,), (1375799039,), (1375799043,), (1375799045,), (1375799047,), (1375799063,), (1375799068,), (1375799074,), (1375799078,), (1375799089,), (1375799093,), (1375799095,), (1375799120,), (1375799125,), (1375799141,), (1375799144,), (1375799147,), (1375799149,), (1375799152,), (1375799155,), (1375799177,), (1375799180,), (1375799182,), (1375799185,), (1375799188,), (1375799206,), (1375799207,), (1375799209,), (1375799234,), (1375799237,), (1375799240,), (1375799243,), (1375799246,), (1375799272,), (1375799276,), (1375799280,), (1375799295,), (1375799310,), (1375799331,), (1375799335,), (1375799337,), (1375799340,), (1375799343,), (1375799374,), (1375799379,), (1375799440,), (1375799442,), (1375799462,), (1375799465,), (1375799466,), (1375799477,), (1375799361,), (1375799363,), (1375799366,), (1375799369,), (1375799396,), (1375799401,), (1375799404,), (1375799409,), (1375799413,), (1375799416,), (1375799422,), (1375799424,), (1375799427,), (1375799437,), (1375799454,), (1375799458,), (1375799460,), (1375799490,), (1375799493,), (1375799495,), (1375799498,), (1375799502,), (1375799503,), (1375799514,), (1375799517,), (1375799519,), (1375799521,), (1375799547,), (1375799549,), (1375799550,), (1375799553,), (1375799557,), (1375799560,), (1375799582,), (1375799589,), (1375799593,), (1375799595,), (1375799615,), (1375799623,), (1375799626,), (1375799629,), (1375799633,), (1375799637,), (1375799651,), (1375799653,), (1375799655,), (1375799659,), (1375799662,), (1375799666,), (1375799674,), (1375799676,), (1375799677,), (1375799679,), (1375799687,), (1375799691,), (1375799694,), (1375799698,), (1375799701,), (1375799703,), (1375799716,), (1375799719,), (1375799722,), (1375799723,), (1375799743,), (1375799745,), (1375799748,), (1375799751,), (1375799754,), (1375799758,), (1375799768,), (1375799775,), (1375799777,), (1375799780,), (1375799785,), (1375799788,), (1375799791,), (1375799805,), (1375799806,), (1375799807,), (1375799809,), (1375799816,), (1375799830,), (1375799855,), (1375799857,), (1375799860,), (1375799862,), (1375799899,), (1375799882,), (1375799890,), (1375799891,), (1375799893,), (1375799895,), (1375799919,), (1375799923,), (1375799925,), (1375799928,), (1375799948,), (1375799949,), (1375799950,), (1375799952,), (1375799954,), (1375799957,), (1375799974,), (1375799975,), (1375799978,), (1375799986,), (1375799988,), (1375800013,), (1375800015,), (1375800018,), (1375800021,), (1375800022,), (1375800024,), (1375800054,), (1375800056,), (1375800057,), (1375800060,), (1375800079,), (1375800080,), (1375800082,), (1375800086,), (1375800088,), (1375800092,), (1375800101,), (1375800103,), (1375800104,), (1375800105,), (1375800110,), (1375800122,), (1375800133,), (1375800140,), (1375800143,), (1375800158,), (1375800162,), (1375800164,), (1375800167,), (1375800171,), (1375800174,), (1375800196,), (1375800198,), (1375800199,), (1375800200,), (1375800203,), (1375800238,), (1375800243,), (1375800251,), (1375800254,), (1375800257,), (1375800270,), (1375800271,), (1375800272,), (1375800275,), (1375800280,), (1375800304,), (1375800305,), (1375800307,), (1375800310,), (1375800311,), (1375800314,), (1375800328,), (1375800347,), (1375800374,), (1375800401,), (1375800424,), (1375800451,), (1375800536,), (1375800566,), (1375800594,), (1375800636,), (1375800822,), (1375802163,), (1375800753,), (1375800774,), (1375800797,), (1375801100,), (1375801101,), (1375801111,), (1375801137,), (1375801162,), (1375801203,), (1375801334,), (1375801336,), (1375801340,), (1375801345,), (1375801352,), (1375801379,), (1375801473,), (1375801497,), (1375801523,), (1375801548,), (1375801571,), (1375801593,), (1375801782,), (1375801825,), (1375801872,), (1375801922,), (1375801968,), (1375802003,), (1375802134,), (1375802316,), (1375802344,), (1375802372,), (1375802398,), (1375802423,), (1375802567,), (1375802591,), (1375802614,), (1375802640,), (1375802670,), (1375802732,), (1375802948,), (1375802973,), (1375802998,), (1375803022,), (1375803049,), (1375803235,), (1375803237,), (1375803238,), (1375803240,), (1375803243,), (1375803247,), (1375803365,), (1375803389,), (1375803412,), (1375803438,), (1375803464,), (1375803643,), (1375803672,), (1375803675,), (1375803692,), (1375803697,), (1375803720,), (1375803721,), (1375803723,), (1375803729,), (1375803735,), (1375803741,), (1375803763,), (1375803766,), (1375803770,), (1375803773,), (1375803776,), (1375803778,), (1375803785,), (1375803788,), (1375803791,), (1375803794,), (1375803796,), (1375803798,), (1375803805,), (1375803807,), (1375803811,), (1375803814,), (1375803816,), (1375803820,), (1375803834,), (1375803836,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08082025': {'nb_upload': 86, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25803890]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763] map_info['map_portfolio_photo'] : {25803890: [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763, 1375803741, 1375803735, 1375803729, 1375803723, 1375803721, 1375803720, 1375803697, 1375803692, 1375803675, 1375803672, 1375803643, 1375803464, 1375803438, 1375803412, 1375803389, 1375803365, 1375803247, 1375803243, 1375803240, 1375803238, 1375803237, 1375803235, 1375803049, 1375803022, 1375802998, 1375802973, 1375802948, 1375802732, 1375802670, 1375802640, 1375802614, 1375802591, 1375802567, 1375802423, 1375802398, 1375802372, 1375802344, 1375802316, 1375802134, 1375802003, 1375801968, 1375801922, 1375801872, 1375801825, 1375801782, 1375801593, 1375801571, 1375801548, 1375801523, 1375801497, 1375801473, 1375801379, 1375801352, 1375801345, 1375801340, 1375801336, 1375801334, 1375801203, 1375801162, 1375801137, 1375801111, 1375801101, 1375801100, 1375800797, 1375800774, 1375800753]} final : True mtd_id 4302 list_pids : [1375803836, 1375803834, 1375803820, 1375803816, 1375803814, 1375803811, 1375803807, 1375803805, 1375803798, 1375803796, 1375803794, 1375803791, 1375803788, 1375803785, 1375803778, 1375803776, 1375803773, 1375803770, 1375803766, 1375803763] Looping around the photos to save general results len do output : 1 /25803890Didn'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, '3481501') ('4302', '25803890', '1375803836', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803834', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803820', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803816', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803814', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803811', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803807', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803805', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803798', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803796', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803794', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803791', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803788', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803785', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803778', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803776', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803773', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803770', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803766', None, None, None, None, None, '3481501') ('4302', None, None, None, None, None, None, None, '3481501') ('4302', '25803890', '1375803763', None, None, None, None, None, '3481501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '25803890', 'None', None, None, None, None, '3481501'), ('4302', '25803890', '1375803836', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803834', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803820', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803816', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803814', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803811', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803807', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803805', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803798', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803796', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803794', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803791', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803788', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803785', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803778', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803776', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803773', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803770', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803766', None, None, None, None, None, '3481501'), ('4302', '25803890', '1375803763', None, None, None, None, None, '3481501')] time used for this insertion : 0.017271995544433594 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9199283123016357 time spend to save output : 0.017572879791259766 total time spend for step 5 : 1.9375011920928955 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 (3481501) 2.39user 2.34system 0:10.36elapsed 45%CPU (0avgtext+0avgdata 167260maxresident)k 0inputs+13704outputs (9major+72572minor)pagefaults 0swaps