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 : 1324447 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 (3248715) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3248715) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708456 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3248715'] with mtr_portfolio_ids : ['24708456'] and first list_photo_ids : [] new path : /proc/1324447/ Name: python3 Umask: 0002 State: R (running) Tgid: 1324447 Ngid: 0 Pid: 1324447 PPid: 1324446 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1324447 NSpid: 1324447 NSpgid: 1322630 NSsid: 1322630 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100188 kB VmRSS: 100188 kB RssAnon: 59804 kB RssFile: 40384 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/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: 53 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1324447', 'Ngid': '0', 'Pid': '1324447', 'PPid': '1324446', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1324447', 'NSpid': '1324447', 'NSpgid': '1322630', 'NSsid': '1322630', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100188 kB', 'VmRSS': '100188 kB', 'RssAnon': '59804 kB', 'RssFile': '40384 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/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': '53', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '1324447', '1106868', '0', '1106868', '865620', '100188', b'', 'marlene', '3248715') 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 (24708456) 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 (3248715 ) ) 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 (24708456) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371120537, 'portfolio_id': 24708456}, {'photo_id': 1371120533, 'portfolio_id': 24708456}, {'photo_id': 1371120530, 'portfolio_id': 24708456}, {'photo_id': 1371120526, 'portfolio_id': 24708456}, {'photo_id': 1371120523, 'portfolio_id': 24708456}, {'photo_id': 1371120519, 'portfolio_id': 24708456}, {'photo_id': 1371120505, 'portfolio_id': 24708456}, {'photo_id': 1371120504, 'portfolio_id': 24708456}, {'photo_id': 1371120498, 'portfolio_id': 24708456}, {'photo_id': 1371120493, 'portfolio_id': 24708456}, {'photo_id': 1371120487, 'portfolio_id': 24708456}, {'photo_id': 1371120476, 'portfolio_id': 24708456}, {'photo_id': 1371120464, 'portfolio_id': 24708456}, {'photo_id': 1371120463, 'portfolio_id': 24708456}, {'photo_id': 1371120459, 'portfolio_id': 24708456}, {'photo_id': 1371120455, 'portfolio_id': 24708456}, {'photo_id': 1371120451, 'portfolio_id': 24708456}, {'photo_id': 1371120445, 'portfolio_id': 24708456}, {'photo_id': 1371120430, 'portfolio_id': 24708456}, {'photo_id': 1371120428, 'portfolio_id': 24708456}, {'photo_id': 1371120425, 'portfolio_id': 24708456}, {'photo_id': 1371120421, 'portfolio_id': 24708456}, {'photo_id': 1371120418, 'portfolio_id': 24708456}, {'photo_id': 1371120414, 'portfolio_id': 24708456}, {'photo_id': 1371120400, 'portfolio_id': 24708456}, {'photo_id': 1371120399, 'portfolio_id': 24708456}, {'photo_id': 1371120397, 'portfolio_id': 24708456}, {'photo_id': 1371120394, 'portfolio_id': 24708456}, {'photo_id': 1371120390, 'portfolio_id': 24708456}, {'photo_id': 1371120384, 'portfolio_id': 24708456}, {'photo_id': 1371120341, 'portfolio_id': 24708456}, {'photo_id': 1371120339, 'portfolio_id': 24708456}, {'photo_id': 1371120334, 'portfolio_id': 24708456}, {'photo_id': 1371120329, 'portfolio_id': 24708456}, {'photo_id': 1371120325, 'portfolio_id': 24708456}, {'photo_id': 1371120319, 'portfolio_id': 24708456}, {'photo_id': 1371120304, 'portfolio_id': 24708456}, {'photo_id': 1371120301, 'portfolio_id': 24708456}, {'photo_id': 1371120296, 'portfolio_id': 24708456}, {'photo_id': 1371120293, 'portfolio_id': 24708456}, {'photo_id': 1371120291, 'portfolio_id': 24708456}, {'photo_id': 1371120288, 'portfolio_id': 24708456}, {'photo_id': 1371120276, 'portfolio_id': 24708456}, {'photo_id': 1371120272, 'portfolio_id': 24708456}, {'photo_id': 1371120265, 'portfolio_id': 24708456}, {'photo_id': 1371120263, 'portfolio_id': 24708456}, {'photo_id': 1371120261, 'portfolio_id': 24708456}, {'photo_id': 1371120257, 'portfolio_id': 24708456}, {'photo_id': 1371120233, 'portfolio_id': 24708456}, {'photo_id': 1371120231, 'portfolio_id': 24708456}, {'photo_id': 1371120229, 'portfolio_id': 24708456}, {'photo_id': 1371120226, 'portfolio_id': 24708456}, {'photo_id': 1371120222, 'portfolio_id': 24708456}, {'photo_id': 1371120217, 'portfolio_id': 24708456}, {'photo_id': 1371120187, 'portfolio_id': 24708456}, {'photo_id': 1371120184, 'portfolio_id': 24708456}, {'photo_id': 1371120181, 'portfolio_id': 24708456}, {'photo_id': 1371120178, 'portfolio_id': 24708456}, {'photo_id': 1371120173, 'portfolio_id': 24708456}, {'photo_id': 1371120168, 'portfolio_id': 24708456}] map_portfolio_id_photo_id: {24708456: [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476, 1371120464, 1371120463, 1371120459, 1371120455, 1371120451, 1371120445, 1371120430, 1371120428, 1371120425, 1371120421, 1371120418, 1371120414, 1371120400, 1371120399, 1371120397, 1371120394, 1371120390, 1371120384, 1371120341, 1371120339, 1371120334, 1371120329, 1371120325, 1371120319, 1371120304, 1371120301, 1371120296, 1371120293, 1371120291, 1371120288, 1371120276, 1371120272, 1371120265, 1371120263, 1371120261, 1371120257, 1371120233, 1371120231, 1371120229, 1371120226, 1371120222, 1371120217, 1371120187, 1371120184, 1371120181, 1371120178, 1371120173, 1371120168]} ##### 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.015313386917114258 #### 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 Tue Jul 8 03:26:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24708456) 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 : 24708456 get user id for portfolio 24708456 get sub ptf for main ptf 24708456, type 3726 and hashtags ['Teint_Dans_La_Masse', 'cartonnette', 'kraft', 'papier', 'autre_refus', 'Carton_gris', 'metal', 'mal_croppe', 'plastique', 'Carton_brun', 'flou', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24708456 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','kraft','papier','autre_refus','Carton_gris','metal','mal_croppe','plastique','Carton_brun','flou','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24708456 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','kraft','papier','autre_refus','Carton_gris','metal','mal_croppe','plastique','Carton_brun','flou','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 24708456, 'sub_port_id': 24708484, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614567, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}, 'environnement': {'main_port_id': 24708456, 'sub_port_id': 24708485, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614568, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 24708456, 'sub_port_id': 24708486, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614569, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}, 'metal': {'main_port_id': 24708456, 'sub_port_id': 24708487, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614570, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}, 'Carton_brun': {'main_port_id': 24708456, 'sub_port_id': 24708488, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614571, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}, 'autre_refus': {'main_port_id': 24708456, 'sub_port_id': 24708489, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614572, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}, 'plastique': {'main_port_id': 24708456, 'sub_port_id': 24708490, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614573, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}, 'papier': {'main_port_id': 24708456, 'sub_port_id': 24708491, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614574, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}, 'mal_croppe': {'main_port_id': 24708456, 'sub_port_id': 24708492, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614575, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}, 'cartonnette': {'main_port_id': 24708456, 'sub_port_id': 24708493, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614576, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}, 'flou': {'main_port_id': 24708456, 'sub_port_id': 24708494, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614577, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}, 'kraft': {'main_port_id': 24708456, 'sub_port_id': 24708495, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614578, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24708484 , 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=24708456 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 (24708484) result : ((1371120313,), (1371120314,), (1371120315,), (1371120408,), (1371120480,), (1371120482,), (1371120554,), (1371120555,), (1371120588,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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 24708485 , 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=24708456 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 (24708485) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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 24708486 , 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=24708456 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 (24708486) result : ((1371120310,), (1371120311,), (1371120312,), (1371120472,), (1371120474,), (1371120506,), (1371120507,), (1371120552,), (1371120577,), (1371120578,), (1371120579,), (1371120580,), (1371120581,), (1371120582,), (1371120583,), (1371120584,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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 24708487 , 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=24708456 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 (24708487) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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 24708488 , 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=24708456 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 (24708488) result : ((1371120435,), (1371120436,), (1371120437,), (1371120483,), (1371120509,), (1371120510,), (1371120556,), (1371120557,), (1371120590,), (1371120591,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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 24708489 , 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=24708456 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 (24708489) result : ((1371120307,), (1371120308,), (1371120309,), (1371120317,), (1371120477,), (1371120553,), (1371120585,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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 24708490 , 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=24708456 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 (24708490) result : ((1371120316,), (1371120438,), (1371120559,), (1371120560,), (1371120561,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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 24708491 , 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=24708456 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 (24708491) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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 24708492 , 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=24708456 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 (24708492) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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 24708493 , 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=24708456 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 (24708493) result : ((1371120410,), (1371120433,), (1371120508,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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 24708494 , 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=24708456 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 (24708494) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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 24708495 , 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=24708456 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 (24708495) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24708456) result : ((1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) 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 (1371120400) 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`=24708456 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','kraft','papier','autre_refus','Carton_gris','metal','mal_croppe','plastique','Carton_brun','flou','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24708456 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','kraft','papier','autre_refus','Carton_gris','metal','mal_croppe','plastique','Carton_brun','flou','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 24708456, 'sub_port_id': 24708496, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614579, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}, 'environnement': {'main_port_id': 24708456, 'sub_port_id': 24708497, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614580, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}, 'Teint_Dans_La_Masse': {'main_port_id': 24708456, 'sub_port_id': 24708498, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614581, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}, 'metal': {'main_port_id': 24708456, 'sub_port_id': 24708499, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614582, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}, 'Carton_brun': {'main_port_id': 24708456, 'sub_port_id': 24708500, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614583, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}, 'autre_refus': {'main_port_id': 24708456, 'sub_port_id': 24708501, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614584, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}, 'plastique': {'main_port_id': 24708456, 'sub_port_id': 24708502, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614585, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}, 'papier': {'main_port_id': 24708456, 'sub_port_id': 24708503, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614586, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}, 'mal_croppe': {'main_port_id': 24708456, 'sub_port_id': 24708504, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614587, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}, 'cartonnette': {'main_port_id': 24708456, 'sub_port_id': 24708505, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614588, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}, 'flou': {'main_port_id': 24708456, 'sub_port_id': 24708506, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614589, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}, 'kraft': {'main_port_id': 24708456, 'sub_port_id': 24708507, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16614590, 'last_updated_at': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 3, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 3, 19)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708486 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708487 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708500,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708488 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708489 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708502,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708490 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708503,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708491 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708504,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708492 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708505,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708493 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708506,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708494 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24708507,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24708495 lien utilise dans velours : https://www.fotonower.com/velours/24708496,24708497,24708498,24708499,24708500,24708501,24708502,24708503,24708504,24708505,24708506,24708507?tags=Carton_gris,environnement,Teint_Dans_La_Masse,metal,Carton_brun,autre_refus,plastique,papier,mal_croppe,cartonnette,flou,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24708456]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476] map_info['map_portfolio_photo'] : {24708456: [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476, 1371120464, 1371120463, 1371120459, 1371120455, 1371120451, 1371120445, 1371120430, 1371120428, 1371120425, 1371120421, 1371120418, 1371120414, 1371120400, 1371120399, 1371120397, 1371120394, 1371120390, 1371120384, 1371120341, 1371120339, 1371120334, 1371120329, 1371120325, 1371120319, 1371120304, 1371120301, 1371120296, 1371120293, 1371120291, 1371120288, 1371120276, 1371120272, 1371120265, 1371120263, 1371120261, 1371120257, 1371120233, 1371120231, 1371120229, 1371120226, 1371120222, 1371120217, 1371120187, 1371120184, 1371120181, 1371120178, 1371120173, 1371120168]} final : False mtd_id 4302 list_pids : [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476] Looping around the photos to save general results len do output : 1 /24708456. 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, '3248715') ('4302', '24708456', '1371120537', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120533', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120530', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120526', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120523', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120519', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120505', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120504', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120498', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120493', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120487', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120476', None, None, None, None, None, '3248715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24708456', "{'Carton_gris': 24708484, 'environnement': 24708485, 'Teint_Dans_La_Masse': 24708486, 'metal': 24708487, 'Carton_brun': 24708488, 'autre_refus': 24708489, 'plastique': 24708490, 'papier': 24708491, 'mal_croppe': 24708492, 'cartonnette': 24708493, 'flou': 24708494, 'kraft': 24708495}", None, None, None, None, '3248715'), ('4302', '24708456', '1371120537', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120533', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120530', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120526', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120523', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120519', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120505', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120504', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120498', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120493', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120487', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120476', None, None, None, None, None, '3248715')] time used for this insertion : 0.01684117317199707 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.47434020042419434 time spend to save output : 0.017102718353271484 total time spend for step 1 : 0.4914429187774658 step2:final Tue Jul 8 03:26:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24708456) 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 24708456 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371120187,1371120184,1371120181,1371120178,1371120173,1371120168,1371120233,1371120231,1371120229,1371120226,1371120222,1371120217,1371120276,1371120272,1371120265,1371120263,1371120261,1371120257,1371120304,1371120301,1371120296,1371120293,1371120291,1371120288,1371120341,1371120339,1371120334,1371120329,1371120325,1371120319,1371120400,1371120399,1371120397,1371120394,1371120390,1371120384,1371120430,1371120428,1371120425,1371120421,1371120418,1371120414,1371120464,1371120463,1371120459,1371120455,1371120451,1371120445,1371120505,1371120504,1371120498,1371120493,1371120487,1371120476,1371120537,1371120533,1371120530,1371120526,1371120523,1371120519); 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([24708456]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} new output for save of step final : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476] map_info['map_portfolio_photo'] : {24708456: [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476, 1371120464, 1371120463, 1371120459, 1371120455, 1371120451, 1371120445, 1371120430, 1371120428, 1371120425, 1371120421, 1371120418, 1371120414, 1371120400, 1371120399, 1371120397, 1371120394, 1371120390, 1371120384, 1371120341, 1371120339, 1371120334, 1371120329, 1371120325, 1371120319, 1371120304, 1371120301, 1371120296, 1371120293, 1371120291, 1371120288, 1371120276, 1371120272, 1371120265, 1371120263, 1371120261, 1371120257, 1371120233, 1371120231, 1371120229, 1371120226, 1371120222, 1371120217, 1371120187, 1371120184, 1371120181, 1371120178, 1371120173, 1371120168]} final : False mtd_id 4302 list_pids : [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476] Looping around the photos to save general results len do output : 12 /1371120537.Didn't retrieve data . /1371120533.Didn't retrieve data . /1371120530.Didn't retrieve data . /1371120526.Didn't retrieve data . /1371120523.Didn't retrieve data . /1371120519.Didn't retrieve data . /1371120505.Didn't retrieve data . /1371120504.Didn't retrieve data . /1371120498.Didn't retrieve data . /1371120493.Didn't retrieve data . /1371120487.Didn't retrieve data . /1371120476.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, '3248715') ('4302', '24708456', '1371120537', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120533', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120530', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120526', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120523', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120519', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120505', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120504', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120498', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120493', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120487', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120476', None, None, None, None, None, '3248715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '24708456', '1371120537', '0.03984221104987882', None, None, None, None, '3248715'), ('4302', '24708456', '1371120533', '0.03984221104987882', None, None, None, None, '3248715'), ('4302', '24708456', '1371120530', '0.03984221104987882', None, None, None, None, '3248715'), ('4302', '24708456', '1371120526', '0.03984221104987882', None, None, None, None, '3248715'), ('4302', '24708456', '1371120523', '0.03984221104987882', None, None, None, None, '3248715'), ('4302', '24708456', '1371120519', '0.03984221104987882', None, None, None, None, '3248715'), ('4302', '24708456', '1371120505', '0.03984221104987882', None, None, None, None, '3248715'), ('4302', '24708456', '1371120504', '0.03984221104987882', None, None, None, None, '3248715'), ('4302', '24708456', '1371120498', '0.03984221104987882', None, None, None, None, '3248715'), ('4302', '24708456', '1371120493', '0.03984221104987882', None, None, None, None, '3248715'), ('4302', '24708456', '1371120487', '0.03984221104987882', None, None, None, None, '3248715'), ('4302', '24708456', '1371120476', '0.03984221104987882', None, None, None, None, '3248715')] time used for this insertion : 0.016491413116455078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07293105125427246 time spend to save output : 0.01704573631286621 total time spend for step 2 : 0.08997678756713867 step3:velours_tree Tue Jul 8 03:26:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24708456: [{'Carton_gris': 24708484, 'environnement': 24708485, 'Teint_Dans_La_Masse': 24708486, 'metal': 24708487, 'Carton_brun': 24708488, 'autre_refus': 24708489, 'plastique': 24708490, 'papier': 24708491, 'mal_croppe': 24708492, 'cartonnette': 24708493, 'flou': 24708494, 'kraft': 24708495}]} input_args_next_step : {24708456: ()} output_args : {24708456: [{'Carton_gris': 24708484, 'environnement': 24708485, 'Teint_Dans_La_Masse': 24708486, 'metal': 24708487, 'Carton_brun': 24708488, 'autre_refus': 24708489, 'plastique': 24708490, 'papier': 24708491, 'mal_croppe': 24708492, 'cartonnette': 24708493, 'flou': 24708494, 'kraft': 24708495}]} args : 24708456 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 : ({'Carton_gris': 24708484, 'environnement': 24708485, 'Teint_Dans_La_Masse': 24708486, 'metal': 24708487, 'Carton_brun': 24708488, 'autre_refus': 24708489, 'plastique': 24708490, 'papier': 24708491, 'mal_croppe': 24708492, 'cartonnette': 24708493, 'flou': 24708494, 'kraft': 24708495},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24708456) 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([24708456]) 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.27810120582580566 time spend to save output : 4.76837158203125e-05 total time spend for step 3 : 0.278148889541626 step4:send_mail_cod Tue Jul 8 03:26:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} input_args_next_step : {1371120537: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120537 depend.output_id : 0 input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120533 depend.output_id : 0 input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120530 depend.output_id : 0 input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120526 depend.output_id : 0 input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120523 depend.output_id : 0 input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120519 depend.output_id : 0 input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120505 depend.output_id : 0 input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120504 depend.output_id : 0 input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120498 depend.output_id : 0 input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120493 depend.output_id : 0 input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120487 depend.output_id : 0 input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ()} output_args : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',)} args : 1371120476 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 : {24708456: [{'Carton_gris': 24708484, 'environnement': 24708485, 'Teint_Dans_La_Masse': 24708486, 'metal': 24708487, 'Carton_brun': 24708488, 'autre_refus': 24708489, 'plastique': 24708490, 'papier': 24708491, 'mal_croppe': 24708492, 'cartonnette': 24708493, 'flou': 24708494, 'kraft': 24708495}]} input_args_next_step : {1371120537: ('0.03984221104987882',), 1371120533: ('0.03984221104987882',), 1371120530: ('0.03984221104987882',), 1371120526: ('0.03984221104987882',), 1371120523: ('0.03984221104987882',), 1371120519: ('0.03984221104987882',), 1371120505: ('0.03984221104987882',), 1371120504: ('0.03984221104987882',), 1371120498: ('0.03984221104987882',), 1371120493: ('0.03984221104987882',), 1371120487: ('0.03984221104987882',), 1371120476: ('0.03984221104987882',), 24708456: ()} output_args : {24708456: [{'Carton_gris': 24708484, 'environnement': 24708485, 'Teint_Dans_La_Masse': 24708486, 'metal': 24708487, 'Carton_brun': 24708488, 'autre_refus': 24708489, 'plastique': 24708490, 'papier': 24708491, 'mal_croppe': 24708492, 'cartonnette': 24708493, 'flou': 24708494, 'kraft': 24708495}]} args : 24708456 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 :13, first value : ('0.03984221104987882',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24708456) 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 (1371120537,1371120533,1371120530,1371120526,1371120523,1371120519,1371120505,1371120504,1371120498,1371120493,1371120487,1371120476) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371120476 begin to download photo : 1371120498 begin to download photo : 1371120519 begin to download photo : 1371120530 download finish for photo 1371120530 begin to download photo : 1371120533 download finish for photo 1371120498 begin to download photo : 1371120504 download finish for photo 1371120519 begin to download photo : 1371120523 download finish for photo 1371120476 begin to download photo : 1371120487 download finish for photo 1371120523 begin to download photo : 1371120526 download finish for photo 1371120533 begin to download photo : 1371120537 download finish for photo 1371120504 begin to download photo : 1371120505 download finish for photo 1371120487 begin to download photo : 1371120493 download finish for photo 1371120505 download finish for photo 1371120526 download finish for photo 1371120537 download finish for photo 1371120493 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette247084871751938020/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24708456_08-07-2025_03_27_00.pdf 24708487 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=24708487 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247084871751938020 24708489 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=24708489 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371120307: '1751937566_3306562_1371120233_d7c5a091f5d2d0f6b701a0448657d0af_rle_crop_3875488814_0.png', 1371120308: '1751937566_3306562_1371120231_3fd7d9d7188acae9d48e867fd58e28d0_rle_crop_3875488821_0.png', 1371120309: '1751937566_3306562_1371120222_083aff8000c827dc0a864e3ce0ed3459_rle_crop_3875488885_0.png', 1371120317: '1751937566_2315687_1371120168_2e1065dffa41236ba77cc00116cbe24e_rle_crop_3875488927_0.png', 1371120477: '1751937807_3312240_1371120339_54e7490e2e0a2f4dbc7ba8aac648594a_rle_crop_3875489625_0.png', 1371120553: '1751937925_3315046_1371120425_e296689f1c9ccb9d4eaaf97fb7a8d0e9_rle_crop_3875490055_0.png', 1371120585: '1751937965_2331470_1371120451_64537996b27b66fc24f331db7fd31f91_rle_crop_3875490274_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5e9f517db2f1af0776864b58d5c18a8c_29186153.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1ab6d6b6175d7492230be4b589edd83a_35950109.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/2ecbc1b46b37ae1f256db4148d8a7a0d_91352509.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/990a0495ed3f82587ed512a35a2dad66_33220566.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e0c783cbaf3151e8ac4f4007d9e59030_98957502.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7c5689b1ea362d5a265d87afb3252ec7_41809200.png change filename to text .imagette247084891751938020/ imagette247084891751938020/1751937807_3312240_1371120339_54e7490e2e0a2f4dbc7ba8aac648594a_rle_crop_3875489625_0.png.png imagette247084891751938020/1751937566_3306562_1371120233_d7c5a091f5d2d0f6b701a0448657d0af_rle_crop_3875488814_0.png.png imagette247084891751938020/1751937925_3315046_1371120425_e296689f1c9ccb9d4eaaf97fb7a8d0e9_rle_crop_3875490055_0.png.png imagette247084891751938020/1751937566_3306562_1371120231_3fd7d9d7188acae9d48e867fd58e28d0_rle_crop_3875488821_0.png.png imagette247084891751938020/1751937566_3306562_1371120222_083aff8000c827dc0a864e3ce0ed3459_rle_crop_3875488885_0.png.png imagette247084891751938020/1751937566_2315687_1371120168_2e1065dffa41236ba77cc00116cbe24e_rle_crop_3875488927_0.png.png imagette247084891751938020/1751937965_2331470_1371120451_64537996b27b66fc24f331db7fd31f91_rle_crop_3875490274_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/32bc8aab560bbc2292c76f6a8fc4f943_80549415.png imagette247084891751938020 24708490 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=24708490 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371120316: '1751937566_3306562_1371120226_1197387572722442b062af2b186a6aff_rle_crop_3875488865_0.png', 1371120438: '1751937727_2323475_1371120293_09d10e6438183a48772cf96c34e68ef4_rle_crop_3875489411_0.png', 1371120559: '1751937925_3315046_1371120425_e296689f1c9ccb9d4eaaf97fb7a8d0e9_rle_crop_3875490053_0.png', 1371120560: '1751937925_3315046_1371120421_d47965769772f416059791d839f27cf7_rle_crop_3875490071_0.png', 1371120561: '1751937925_3315046_1371120418_b9b31cefaf9e964dfd05b0bd2647a97b_rle_crop_3875490089_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ff35cbb092cbb352332f7432f0c1f7f3_85604941.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/74f1fe487599762e6d9cd35078256161_84536201.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/8d62e7800f4fdeb693fa17d252d3fb62_75006368.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1e70758acb6c7a4e786000f2c597e3af_87828934.png change filename to text .imagette247084901751938020/ imagette247084901751938020/1751937925_3315046_1371120418_b9b31cefaf9e964dfd05b0bd2647a97b_rle_crop_3875490089_0.png.png imagette247084901751938020/1751937925_3315046_1371120425_e296689f1c9ccb9d4eaaf97fb7a8d0e9_rle_crop_3875490053_0.png.png imagette247084901751938020/1751937566_3306562_1371120226_1197387572722442b062af2b186a6aff_rle_crop_3875488865_0.png.png imagette247084901751938020/1751937727_2323475_1371120293_09d10e6438183a48772cf96c34e68ef4_rle_crop_3875489411_0.png.png imagette247084901751938020/1751937925_3315046_1371120421_d47965769772f416059791d839f27cf7_rle_crop_3875490071_0.png.png imagette247084921751938021/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b80097cfaecce8806d919e175999e378_66115630.png imagette247084901751938020 24708492 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=24708492 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247084921751938021 24708493 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=24708493 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371120410: '1751937685_3309487_1371120257_e19ba8c2ff1ebdf64e80281c1f87c09b_rle_crop_3875489234_0.png', 1371120433: '1751937727_2323475_1371120304_d8bbb262c7ece4e11e531048fcf1eff6_rle_crop_3875489383_0.png', 1371120508: '1751937844_2326412_1371120399_a9e06fbfa3bed537bd7e1a1c25b0c77e_rle_crop_3875489801_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6e4f915d93ec0f017e055db0d25c0c84_19990939.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/cb69dee1e443483a5c0132440d5da4cf_68293631.png change filename to text .imagette247084931751938021/ imagette247084931751938021/1751937844_2326412_1371120399_a9e06fbfa3bed537bd7e1a1c25b0c77e_rle_crop_3875489801_0.png.png imagette247084931751938021/1751937727_2323475_1371120304_d8bbb262c7ece4e11e531048fcf1eff6_rle_crop_3875489383_0.png.png imagette247084931751938021/1751937685_3309487_1371120257_e19ba8c2ff1ebdf64e80281c1f87c09b_rle_crop_3875489234_0.png.png imagette247084941751938021/ imagette247084951751938021/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/45e84cdb564ab0bece9b10c91678e884_98827284.png imagette247084931751938021 24708494 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=24708494 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247084941751938021 24708495 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=24708495 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247084951751938021 24708484 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=24708484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371120313: '1751937566_3306562_1371120233_d7c5a091f5d2d0f6b701a0448657d0af_rle_crop_3875488811_0.png', 1371120314: '1751937566_3306562_1371120233_d7c5a091f5d2d0f6b701a0448657d0af_rle_crop_3875488813_0.png', 1371120315: '1751937566_3306562_1371120226_1197387572722442b062af2b186a6aff_rle_crop_3875488866_0.png', 1371120408: '1751937685_3309487_1371120261_71c194f403bdd7df99a42b00618305c7_rle_crop_3875489223_0.png', 1371120480: '1751937807_3312240_1371120341_5bbc85ac42f5315a30dd86a2a075e49b_rle_crop_3875489607_0.png', 1371120482: '1751937807_3312240_1371120339_54e7490e2e0a2f4dbc7ba8aac648594a_rle_crop_3875489627_0.png', 1371120554: '1751937925_3315046_1371120430_edc3b01a7b7ab1fd7112b5b462d7ddc6_rle_crop_3875490020_0.png', 1371120555: '1751937925_3315046_1371120428_df3c57321bf0cc7d5bbc81c5c2979b5a_rle_crop_3875490033_0.png', 1371120588: '1751937965_2331470_1371120459_f6be03f1a9e030c7f24232deba66ca8b_rle_crop_3875490262_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/cdf42ce688928929ce3669bf0599c5a3_56453032.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5f235762e9b7ab251d7488742b7a7e23_33456079.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b55d19087d5b79c976ddae94028acae4_86957356.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/dba1dd6b554e98b696a5ef1bf44edb15_92971083.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/915998a861107fa0f4ae2d31412358a1_89264681.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b1890fb6cdbdcd136ce5e2219942a555_36531679.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b8456fdf6c8e6f9ebf6761337ea3b6f8_76795431.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/556818e25df1e75bf077d5e52e43369e_14777972.png change filename to text .imagette247084841751938021/ imagette247084841751938021/1751937925_3315046_1371120430_edc3b01a7b7ab1fd7112b5b462d7ddc6_rle_crop_3875490020_0.png.png imagette247084841751938021/1751937807_3312240_1371120339_54e7490e2e0a2f4dbc7ba8aac648594a_rle_crop_3875489627_0.png.png imagette247084841751938021/1751937925_3315046_1371120428_df3c57321bf0cc7d5bbc81c5c2979b5a_rle_crop_3875490033_0.png.png imagette247084841751938021/1751937566_3306562_1371120233_d7c5a091f5d2d0f6b701a0448657d0af_rle_crop_3875488811_0.png.png imagette247084841751938021/1751937566_3306562_1371120226_1197387572722442b062af2b186a6aff_rle_crop_3875488866_0.png.png imagette247084841751938021/1751937566_3306562_1371120233_d7c5a091f5d2d0f6b701a0448657d0af_rle_crop_3875488813_0.png.png imagette247084841751938021/1751937965_2331470_1371120459_f6be03f1a9e030c7f24232deba66ca8b_rle_crop_3875490262_0.png.png imagette247084841751938021/1751937685_3309487_1371120261_71c194f403bdd7df99a42b00618305c7_rle_crop_3875489223_0.png.png imagette247084841751938021/1751937807_3312240_1371120341_5bbc85ac42f5315a30dd86a2a075e49b_rle_crop_3875489607_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/118a418a60b6497cfd8b2d60d1dfcc7e_31324334.png imagette247084841751938021 24708486 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=24708486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371120310: '1751937566_2315687_1371120181_45bd9c1c20e0fdbafd78ba3466e877bb_rle_crop_3875488877_0.png', 1371120311: '1751937566_2315687_1371120173_c93c9dc07fefa3b9c688b9d0abb3c977_rle_crop_3875488919_0.png', 1371120312: '1751937566_2315687_1371120168_2e1065dffa41236ba77cc00116cbe24e_rle_crop_3875488929_0.png', 1371120472: '1751937807_3312240_1371120341_5bbc85ac42f5315a30dd86a2a075e49b_rle_crop_3875489611_0.png', 1371120474: '1751937807_3312240_1371120339_54e7490e2e0a2f4dbc7ba8aac648594a_rle_crop_3875489624_0.png', 1371120506: '1751937844_2326412_1371120400_17b97e2099c2cd27aae0c6676d94d8cc_rle_crop_3875489794_0.png', 1371120507: '1751937844_2326412_1371120397_3ffa583fca653b9b08030a9e0772d47e_rle_crop_3875489818_0.png', 1371120552: '1751937925_3315046_1371120414_77f8480b7d8b345c129f42e540dd0402_rle_crop_3875490104_0.png', 1371120577: '1751937965_2331470_1371120464_90800834c93d14a0fffff992db46beba_rle_crop_3875490238_0.png', 1371120578: '1751937965_2331470_1371120463_6e1cb028990ba44178e96db472d1273a_rle_crop_3875490243_0.png', 1371120579: '1751937965_2331470_1371120463_6e1cb028990ba44178e96db472d1273a_rle_crop_3875490244_0.png', 1371120580: '1751937965_2331470_1371120463_6e1cb028990ba44178e96db472d1273a_rle_crop_3875490248_0.png', 1371120581: '1751937965_2331470_1371120459_f6be03f1a9e030c7f24232deba66ca8b_rle_crop_3875490257_0.png', 1371120582: '1751937965_2331470_1371120455_19d66f8cbae1849683281b9d96f3b0f7_rle_crop_3875490270_0.png', 1371120583: '1751937965_2331470_1371120451_64537996b27b66fc24f331db7fd31f91_rle_crop_3875490280_0.png', 1371120584: '1751937965_2331470_1371120445_fa9a6e7be2748e307622a6df0f331174_rle_crop_3875490285_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f64c91c60f989cdede67d97c721b432c_62042315.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/2e12e9dcdf31182d632e4ec81a2add59_22640373.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/90a14ddc6cb30cdab957545fde5eca52_76754169.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/44c87c568b124e35f23a41a76055d859_19591677.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ed227eb10462181d45c26b27f438b88c_54873778.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/106b6ee894b822e8f5960bc01c5dd286_4191118.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/fbcbf644a1997456e35d5e07f348b140_7801049.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ed027ca8250b07d2e7762d1fa21c084f_57751486.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9b337375ca32d59b4366d311bdd9797d_55497422.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/27e1c21ea343a9b048cdefba6d13305a_24928777.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e9f9e9f360e8b8ea8e963180e217166b_34355656.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6621469f7bff7945ddcd5c73f43898fb_58080857.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e708ee56e7339ca2a137afd623e7d650_80832398.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/034c64978b224d328fb1f407d675e34f_22561087.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/f23547e157a5bee93db456c2ea27e75f_62071235.png change filename to text .imagette247084861751938022/ imagette247084861751938022/1751937965_2331470_1371120451_64537996b27b66fc24f331db7fd31f91_rle_crop_3875490280_0.png.png imagette247084861751938022/1751937965_2331470_1371120464_90800834c93d14a0fffff992db46beba_rle_crop_3875490238_0.png.png imagette247084861751938022/1751937566_2315687_1371120173_c93c9dc07fefa3b9c688b9d0abb3c977_rle_crop_3875488919_0.png.png imagette247084861751938022/1751937844_2326412_1371120400_17b97e2099c2cd27aae0c6676d94d8cc_rle_crop_3875489794_0.png.png imagette247084861751938022/1751937925_3315046_1371120414_77f8480b7d8b345c129f42e540dd0402_rle_crop_3875490104_0.png.png imagette247084861751938022/1751937965_2331470_1371120463_6e1cb028990ba44178e96db472d1273a_rle_crop_3875490244_0.png.png imagette247084861751938022/1751937566_2315687_1371120168_2e1065dffa41236ba77cc00116cbe24e_rle_crop_3875488929_0.png.png imagette247084861751938022/1751937807_3312240_1371120339_54e7490e2e0a2f4dbc7ba8aac648594a_rle_crop_3875489624_0.png.png imagette247084861751938022/1751937965_2331470_1371120445_fa9a6e7be2748e307622a6df0f331174_rle_crop_3875490285_0.png.png imagette247084861751938022/1751937844_2326412_1371120397_3ffa583fca653b9b08030a9e0772d47e_rle_crop_3875489818_0.png.png imagette247084861751938022/1751937807_3312240_1371120341_5bbc85ac42f5315a30dd86a2a075e49b_rle_crop_3875489611_0.png.png imagette247084861751938022/1751937965_2331470_1371120463_6e1cb028990ba44178e96db472d1273a_rle_crop_3875490243_0.png.png imagette247084861751938022/1751937965_2331470_1371120459_f6be03f1a9e030c7f24232deba66ca8b_rle_crop_3875490257_0.png.png imagette247084861751938022/1751937965_2331470_1371120463_6e1cb028990ba44178e96db472d1273a_rle_crop_3875490248_0.png.png imagette247084861751938022/1751937965_2331470_1371120455_19d66f8cbae1849683281b9d96f3b0f7_rle_crop_3875490270_0.png.png imagette247084861751938022/1751937566_2315687_1371120181_45bd9c1c20e0fdbafd78ba3466e877bb_rle_crop_3875488877_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/8a08127a4bef953aa4df2bc11bea35c4_45098593.png imagette247084861751938022 24708488 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=24708488 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371120435: '1751937727_2323475_1371120304_d8bbb262c7ece4e11e531048fcf1eff6_rle_crop_3875489381_0.png', 1371120436: '1751937727_2323475_1371120304_d8bbb262c7ece4e11e531048fcf1eff6_rle_crop_3875489376_0.png', 1371120437: '1751937727_2323475_1371120301_36e8643469780fddda547ec40428cf3a_rle_crop_3875489391_0.png', 1371120483: '1751937807_3312240_1371120334_e3aeaa34f83c00666e2cce1dcc26ffba_rle_crop_3875489637_0.png', 1371120509: '1751937844_2326412_1371120400_17b97e2099c2cd27aae0c6676d94d8cc_rle_crop_3875489792_0.png', 1371120510: '1751937844_2326412_1371120397_3ffa583fca653b9b08030a9e0772d47e_rle_crop_3875489812_0.png', 1371120556: '1751937925_3315046_1371120428_df3c57321bf0cc7d5bbc81c5c2979b5a_rle_crop_3875490039_0.png', 1371120557: '1751937925_3315046_1371120425_e296689f1c9ccb9d4eaaf97fb7a8d0e9_rle_crop_3875490050_0.png', 1371120590: '1751937965_2331470_1371120459_f6be03f1a9e030c7f24232deba66ca8b_rle_crop_3875490259_0.png', 1371120591: '1751937965_2331470_1371120455_19d66f8cbae1849683281b9d96f3b0f7_rle_crop_3875490266_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b9412d059977f0b5b51d6233889f367a_38169027.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0ecd13b2d860fd308c0307296e9a15ef_3546000.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/92b7121b423b282ff991ce8123da0cfd_38580939.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/bfdade0252378035fcbe816632018f75_95393803.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/842cffd5e27dbff6933a4b8afd73d281_72472102.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9ff0c78e7cbaf511f2d0c1cfe4986310_93463774.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/d9fd46d04c018268f5ae7151c9527923_5166882.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5d689c11845ff76902c1f9939850c872_35102899.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9ce8942f8b2bbfb32322f33f80cb45b6_67680100.png change filename to text .imagette247084881751938023/ imagette247084881751938023/1751937727_2323475_1371120304_d8bbb262c7ece4e11e531048fcf1eff6_rle_crop_3875489376_0.png.png imagette247084881751938023/1751937727_2323475_1371120304_d8bbb262c7ece4e11e531048fcf1eff6_rle_crop_3875489381_0.png.png imagette247084881751938023/1751937727_2323475_1371120301_36e8643469780fddda547ec40428cf3a_rle_crop_3875489391_0.png.png imagette247084881751938023/1751937965_2331470_1371120455_19d66f8cbae1849683281b9d96f3b0f7_rle_crop_3875490266_0.png.png imagette247084881751938023/1751937925_3315046_1371120425_e296689f1c9ccb9d4eaaf97fb7a8d0e9_rle_crop_3875490050_0.png.png imagette247084881751938023/1751937844_2326412_1371120400_17b97e2099c2cd27aae0c6676d94d8cc_rle_crop_3875489792_0.png.png imagette247084881751938023/1751937807_3312240_1371120334_e3aeaa34f83c00666e2cce1dcc26ffba_rle_crop_3875489637_0.png.png imagette247084881751938023/1751937844_2326412_1371120397_3ffa583fca653b9b08030a9e0772d47e_rle_crop_3875489812_0.png.png imagette247084881751938023/1751937965_2331470_1371120459_f6be03f1a9e030c7f24232deba66ca8b_rle_crop_3875490259_0.png.png imagette247084881751938023/1751937925_3315046_1371120428_df3c57321bf0cc7d5bbc81c5c2979b5a_rle_crop_3875490039_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/fc9ce81e8787c51f6c0c71433c5a7134_22764678.png imagette247084881751938023 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24708456 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24708496,24708497,24708498,24708499,24708500,24708501,24708502,24708503,24708504,24708505,24708506,24708507?tags=Carton_gris,environnement,Teint_Dans_La_Masse,metal,Carton_brun,autre_refus,plastique,papier,mal_croppe,cartonnette,flou,kraft your option no_mail is active, we will not send the real mail to your client args[1371120537] : ('0.03984221104987882',) no score found for photo 1371120537 We are sending mail with results at report@fotonower.com args[1371120533] : ('0.03984221104987882',) no score found for photo 1371120533 We are sending mail with results at report@fotonower.com args[1371120530] : ('0.03984221104987882',) no score found for photo 1371120530 We are sending mail with results at report@fotonower.com args[1371120526] : ('0.03984221104987882',) no score found for photo 1371120526 We are sending mail with results at report@fotonower.com args[1371120523] : ('0.03984221104987882',) no score found for photo 1371120523 We are sending mail with results at report@fotonower.com args[1371120519] : ('0.03984221104987882',) no score found for photo 1371120519 We are sending mail with results at report@fotonower.com args[1371120505] : ('0.03984221104987882',) no score found for photo 1371120505 We are sending mail with results at report@fotonower.com args[1371120504] : ('0.03984221104987882',) no score found for photo 1371120504 We are sending mail with results at report@fotonower.com args[1371120498] : ('0.03984221104987882',) no score found for photo 1371120498 We are sending mail with results at report@fotonower.com args[1371120493] : ('0.03984221104987882',) no score found for photo 1371120493 We are sending mail with results at report@fotonower.com args[1371120487] : ('0.03984221104987882',) no score found for photo 1371120487 We are sending mail with results at report@fotonower.com args[1371120476] : ('0.03984221104987882',) no score found for photo 1371120476 We are sending mail with results at report@fotonower.com refus_total : 0.03984221104987882 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=24708456 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_P24708456_08-07-2025_03_27_00.pdf results_Auto_P24708456_08-07-2025_03_27_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_03_27_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24708456','results_Auto_P24708456_08-07-2025_03_27_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_03_27_00.pdf','pdf','','0.26','0.03984221104987882') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24708456]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476] map_info['map_portfolio_photo'] : {24708456: [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476, 1371120464, 1371120463, 1371120459, 1371120455, 1371120451, 1371120445, 1371120430, 1371120428, 1371120425, 1371120421, 1371120418, 1371120414, 1371120400, 1371120399, 1371120397, 1371120394, 1371120390, 1371120384, 1371120341, 1371120339, 1371120334, 1371120329, 1371120325, 1371120319, 1371120304, 1371120301, 1371120296, 1371120293, 1371120291, 1371120288, 1371120276, 1371120272, 1371120265, 1371120263, 1371120261, 1371120257, 1371120233, 1371120231, 1371120229, 1371120226, 1371120222, 1371120217, 1371120187, 1371120184, 1371120181, 1371120178, 1371120173, 1371120168]} final : False mtd_id 4302 list_pids : [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476] 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, '3248715') ('4302', '24708456', '1371120537', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120533', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120530', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120526', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120523', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120519', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120505', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120504', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120498', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120493', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120487', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120476', None, None, None, None, None, '3248715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '24708456', '1371120537', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120533', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120530', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120526', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120523', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120519', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120505', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120504', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120498', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120493', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120487', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120476', None, None, None, None, None, '3248715')] time used for this insertion : 0.013686180114746094 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.794774770736694 time spend to save output : 0.01394510269165039 total time spend for step 4 : 4.808719873428345 step5:split_time_score Tue Jul 8 03:27:04 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 : ['24708456'] 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 : [('24708456',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24708456) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371120498: {'path': 'temp/1751938019_1324447_1371120498_1fcc66afc22591828ef4f25dc083c221.jpg', 'extension': 'jpg'}, 1371120504: {'path': 'temp/1751938019_1324447_1371120504_9b928e94c902eb2bf789120eef2fee63.jpg', 'extension': 'jpg'}, 1371120505: {'path': 'temp/1751938019_1324447_1371120505_c9079b0f7867a5cf6b5358c3911245ae.jpg', 'extension': 'jpg'}, 1371120519: {'path': 'temp/1751938019_1324447_1371120519_0a0b299acbd73c27b6ed520305293cdc.jpg', 'extension': 'jpg'}, 1371120523: {'path': 'temp/1751938019_1324447_1371120523_3d90b1fa0c00564e42a68082bbf388e3.jpg', 'extension': 'jpg'}, 1371120526: {'path': 'temp/1751938019_1324447_1371120526_2171a27c4643416333cc40507a64a09c.jpg', 'extension': 'jpg'}, 1371120530: {'path': 'temp/1751938019_1324447_1371120530_c5359f623a5678c4f27ee579c83e930a.jpg', 'extension': 'jpg'}, 1371120533: {'path': 'temp/1751938019_1324447_1371120533_c6fb685422f21304eff24949ef4a022e.jpg', 'extension': 'jpg'}, 1371120537: {'path': 'temp/1751938019_1324447_1371120537_c39ce029fd9a4ace48c29c273091c9e8.jpg', 'extension': 'jpg'}, 1371120476: {'path': 'temp/1751938019_1324447_1371120476_32b3c43f58a2cd7f3a8892eef77781ff.jpg', 'extension': 'jpg'}, 1371120487: {'path': 'temp/1751938019_1324447_1371120487_9867c48d04e902c1958964f1b24f4926.jpg', 'extension': 'jpg'}, 1371120493: {'path': 'temp/1751938019_1324447_1371120493_f1fd2e5373bd481caa9c298f87d6d939.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 = 24708456; (('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 = 24708456 group by h (('03', 60),) 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=24708456 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 (24708456) 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 (24708456) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08072025 24708456 Nombre de photos uploadées : 60 / 23040 (0%) 08072025 24708456 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 08072025 24708456 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1371120187, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7dd2e6495b5a5bcbb750ccc9a0014de5.jpg', 'username': None, 'uploaded_at': 1751937364, 'text': 'image_08072025_03_15_04_10150.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371120184, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/55dbd0ee488e65d47f7822d038165e89.jpg', 'username': None, 'uploaded_at': 1751937364, 'text': 'image_08072025_03_15_14_10137.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371120181, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/45bd9c1c20e0fdbafd78ba3466e877bb.jpg', 'username': None, 'uploaded_at': 1751937364, 'text': 'image_08072025_03_15_24_10136.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371120178, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0d4931242697c9e2a159beb80328180e.jpg', 'username': None, 'uploaded_at': 1751937364, 'text': 'image_08072025_03_15_34_10136.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002885580062866211 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24708456, '2025-07-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1960471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02795696258544922 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= 1960471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24702229, 'dashboard_result_id': 12261462, '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_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24702755, 'dashboard_result_id': 12261463, '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_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24703205, 'dashboard_result_id': 12261464, '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_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24703713, 'dashboard_result_id': 12261465, '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_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24704184, 'dashboard_result_id': 12261466, '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_P24704184_08-07-2025_01_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24704667, 'dashboard_result_id': 12261467, '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_P24704667_08-07-2025_01_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24705055, 'dashboard_result_id': 12261468, '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_P24705055_08-07-2025_01_46_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24705431, 'dashboard_result_id': 12261469, '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_P24705431_08-07-2025_02_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24706018, 'dashboard_result_id': 12261470, '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_P24706018_08-07-2025_02_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24706657, 'dashboard_result_id': 12261471, '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_P24706657_08-07-2025_02_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24707037, 'dashboard_result_id': 12261472, '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_P24707037_08-07-2025_02_46_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24707471, 'dashboard_result_id': 12261473, '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_P24707471_08-07-2025_03_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24707886, 'dashboard_result_id': 12261474, '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_P24707886_08-07-2025_03_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1968239, 'mtr_portfolio_id': 24708456, 'dashboard_result_id': 12261475, '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_P24708456_08-07-2025_03_24_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, '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 = 24702229 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': 3248100, 'mtr_portfolio_id': 24702229, 'created_at': datetime.datetime(2025, 7, 8, 0, 16, 29), 'result': '0.03432764518805383', 'result_long': None, 'result_double': None}] Qualite : 0.03432764518805383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_00_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702229 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_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}" where mtr_portfolio_id = 24702229 and dashboard_run_id = 1968239 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`=24702229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261462, 0.03432764518805383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, '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 = 24702755 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': 3248151, 'mtr_portfolio_id': 24702755, 'created_at': datetime.datetime(2025, 7, 8, 0, 32, 58), 'result': '0.029028561484370358', 'result_long': None, 'result_double': None}] Qualite : 0.029028561484370358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702755 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_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}" where mtr_portfolio_id = 24702755 and dashboard_run_id = 1968239 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`=24702755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261463, 0.029028561484370358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, '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 = 24703205 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': 3248189, 'mtr_portfolio_id': 24703205, 'created_at': datetime.datetime(2025, 7, 8, 0, 46, 30), 'result': '0.0338677238874439', 'result_long': None, 'result_double': None}] Qualite : 0.0338677238874439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_00_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703205 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_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}" where mtr_portfolio_id = 24703205 and dashboard_run_id = 1968239 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`=24703205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261464, 0.0338677238874439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, '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 = 24703713 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': 3248233, 'mtr_portfolio_id': 24703713, 'created_at': datetime.datetime(2025, 7, 8, 1, 0, 58), 'result': '0.03287787548647065', 'result_long': None, 'result_double': None}] Qualite : 0.03287787548647065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_01_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703713 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_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}" where mtr_portfolio_id = 24703713 and dashboard_run_id = 1968239 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`=24703713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261465, 0.03287787548647065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, '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 = 24704184 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': 3248282, 'mtr_portfolio_id': 24704184, 'created_at': datetime.datetime(2025, 7, 8, 1, 16, 30), 'result': '0.05429139786994954', 'result_long': None, 'result_double': None}] Qualite : 0.05429139786994954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_01_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704184 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_P24704184_08-07-2025_01_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}" where mtr_portfolio_id = 24704184 and dashboard_run_id = 1968239 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`=24704184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261466, 0.05429139786994954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_01_16_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, '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 = 24704667 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': 3248323, 'mtr_portfolio_id': 24704667, 'created_at': datetime.datetime(2025, 7, 8, 1, 33), 'result': '0.051405322418618504', 'result_long': None, 'result_double': None}] Qualite : 0.051405322418618504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_01_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704667 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_P24704667_08-07-2025_01_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}" where mtr_portfolio_id = 24704667 and dashboard_run_id = 1968239 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`=24704667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261467, 0.051405322418618504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_01_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, '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 = 24705055 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': 3248364, 'mtr_portfolio_id': 24705055, 'created_at': datetime.datetime(2025, 7, 8, 1, 46, 29), 'result': '0.04872368510622181', 'result_long': None, 'result_double': None}] Qualite : 0.04872368510622181 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24705055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_01_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24705055 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_P24705055_08-07-2025_01_46_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, 'pht': 3726}}" where mtr_portfolio_id = 24705055 and dashboard_run_id = 1968239 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`=24705055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261468, 0.04872368510622181, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_01_46_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, '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 = 24705431 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': 3248419, 'mtr_portfolio_id': 24705431, 'created_at': datetime.datetime(2025, 7, 8, 2, 2, 59), 'result': '0.03593759906248776', 'result_long': None, 'result_double': None}] Qualite : 0.03593759906248776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24705431 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705431_08-07-2025_02_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24705431 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_P24705431_08-07-2025_02_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, 'pht': 3726}}" where mtr_portfolio_id = 24705431 and dashboard_run_id = 1968239 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`=24705431 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261469, 0.03593759906248776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705431_08-07-2025_02_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, '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 = 24706018 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': 3248477, 'mtr_portfolio_id': 24706018, 'created_at': datetime.datetime(2025, 7, 8, 2, 16, 56), 'result': '0.04979104997550057', 'result_long': None, 'result_double': None}] Qualite : 0.04979104997550057 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24706018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706018_08-07-2025_02_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24706018 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_P24706018_08-07-2025_02_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, 'pht': 3726}}" where mtr_portfolio_id = 24706018 and dashboard_run_id = 1968239 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`=24706018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261470, 0.04979104997550057, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706018_08-07-2025_02_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, '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 = 24706657 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': 3248529, 'mtr_portfolio_id': 24706657, 'created_at': datetime.datetime(2025, 7, 8, 2, 33, 30), 'result': '0.06157198977439709', 'result_long': None, 'result_double': None}] Qualite : 0.06157198977439709 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24706657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706657_08-07-2025_02_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24706657 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_P24706657_08-07-2025_02_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, 'pht': 3726}}" where mtr_portfolio_id = 24706657 and dashboard_run_id = 1968239 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`=24706657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261471, 0.06157198977439709, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706657_08-07-2025_02_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, '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 = 24707037 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': 3248565, 'mtr_portfolio_id': 24707037, 'created_at': datetime.datetime(2025, 7, 8, 2, 46, 28), 'result': '0.0514299607126689', 'result_long': None, 'result_double': None}] Qualite : 0.0514299607126689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707037_08-07-2025_02_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707037 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_P24707037_08-07-2025_02_46_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, 'pht': 3726}}" where mtr_portfolio_id = 24707037 and dashboard_run_id = 1968240 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`=24707037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261472, 0.0514299607126689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707037_08-07-2025_02_46_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, '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 = 24707471 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': 3248606, 'mtr_portfolio_id': 24707471, 'created_at': datetime.datetime(2025, 7, 8, 3, 3, 28), 'result': '0.0460695503295449', 'result_long': None, 'result_double': None}] Qualite : 0.0460695503295449 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707471_08-07-2025_03_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707471 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_P24707471_08-07-2025_03_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, 'pht': 3726}}" where mtr_portfolio_id = 24707471 and dashboard_run_id = 1968240 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`=24707471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261473, 0.0460695503295449, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707471_08-07-2025_03_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, '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 = 24707886 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': 3248664, 'mtr_portfolio_id': 24707886, 'created_at': datetime.datetime(2025, 7, 8, 3, 16, 58), 'result': '0.037421865257762185', 'result_long': None, 'result_double': None}] Qualite : 0.037421865257762185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707886_08-07-2025_03_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707886 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_P24707886_08-07-2025_03_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, 'pht': 3726}}" where mtr_portfolio_id = 24707886 and dashboard_run_id = 1968240 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`=24707886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261474, 0.037421865257762185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707886_08-07-2025_03_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, '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 = 24708456 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': 3248715, 'mtr_portfolio_id': 24708456, 'created_at': datetime.datetime(2025, 7, 8, 3, 26, 59), 'result': '0.03984221104987882', 'result_long': None, 'result_double': None}] Qualite : 0.03984221104987882 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24708456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_03_27_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24708456 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_P24708456_08-07-2025_03_27_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, 'pht': 3726}}" where mtr_portfolio_id = 24708456 and dashboard_run_id = 1968240 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`=24708456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12261475, 0.03984221104987882, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_03_27_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, '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 (24702229,24702755,24703205,24703713,24704184,24704667,24705055,24705431,24706018,24706657,24707037,24707471,24707886,24708456) result : ((1371103946,), (1371103951,), (1371103984,), (1371103989,), (1371103998,), (1371104125,), (1371104160,), (1371104195,), (1371104223,), (1371104232,), (1371104236,), (1371104398,), (1371104404,), (1371104407,), (1371104408,), (1371104411,), (1371104414,), (1371104420,), (1371104422,), (1371104424,), (1371104427,), (1371104430,), (1371104432,), (1371104435,), (1371104437,), (1371104440,), (1371104443,), (1371104445,), (1371104449,), (1371104484,), (1371104486,), (1371104489,), (1371104496,), (1371104533,), (1371104536,), (1371104541,), (1371104546,), (1371104549,), (1371104578,), (1371104613,), (1371104634,), (1371104648,), (1371104658,), (1371104662,), (1371104667,), (1371104671,), (1371104674,), (1371104686,), (1371104690,), (1371104695,), (1371104701,), (1371104711,), (1371104713,), (1371104734,), (1371104740,), (1371104745,), (1371104750,), (1371104753,), (1371104754,), (1371104789,), (1371104792,), (1371104795,), (1371104798,), (1371104800,), (1371104803,), (1371104825,), (1371104831,), (1371104833,), (1371104835,), (1371104837,), (1371104845,), (1371104874,), (1371104891,), (1371104896,), (1371104899,), (1371104902,), (1371104920,), (1371104959,), (1371104970,), (1371104973,), (1371104977,), (1371104980,), (1371104982,), (1371104990,), (1371104994,), (1371104999,), (1371105001,), (1371105004,), (1371105006,), (1371105016,), (1371105025,), (1371105029,), (1371105034,), (1371105039,), (1371105041,), (1371105058,), (1371105063,), (1371105066,), (1371105069,), (1371105076,), (1371105082,), (1371105095,), (1371105103,), (1371105106,), (1371105108,), (1371105110,), (1371105111,), (1371105131,), (1371105135,), (1371105141,), (1371105146,), (1371105150,), (1371105153,), (1371105163,), (1371105177,), (1371105189,), (1371105191,), (1371105194,), (1371105195,), (1371105216,), (1371105220,), (1371105224,), (1371105227,), (1371105231,), (1371105234,), (1371105244,), (1371105258,), (1371105268,), (1371105271,), (1371105274,), (1371105276,), (1371105308,), (1371105311,), (1371105316,), (1371105319,), (1371105323,), (1371105326,), (1371105336,), (1371105350,), (1371105352,), (1371105354,), (1371105357,), (1371105360,), (1371105382,), (1371105386,), (1371105390,), (1371105394,), (1371105398,), (1371105400,), (1371105425,), (1371105437,), (1371105444,), (1371105448,), (1371105451,), (1371105453,), (1371105473,), (1371105478,), (1371105482,), (1371105486,), (1371105489,), (1371105492,), (1371105506,), (1371105513,), (1371105520,), (1371105530,), (1371105534,), (1371105535,), (1371105575,), (1371105584,), (1371105597,), (1371105599,), (1371105601,), (1371105602,), (1371105655,), (1371105665,), (1371105715,), (1371105727,), (1371105731,), (1371105732,), (1371105757,), (1371105826,), (1371105830,), (1371105833,), (1371105845,), (1371105857,), (1371105896,), (1371105921,), (1371105925,), (1371105940,), (1371105948,), (1371105950,), (1371106000,), (1371106003,), (1371106007,), (1371106010,), (1371106013,), (1371106017,), (1371106186,), (1371106226,), (1371106262,), (1371106296,), (1371106330,), (1371106362,), (1371106568,), (1371106605,), (1371106636,), (1371106641,), (1371106645,), (1371106647,), (1371106683,), (1371106718,), (1371106760,), (1371106796,), (1371106827,), (1371106839,), (1371106906,), (1371106910,), (1371106914,), (1371106919,), (1371106924,), (1371106927,), (1371106941,), (1371106952,), (1371106957,), (1371106966,), (1371106969,), (1371106971,), (1371106984,), (1371106989,), (1371106992,), (1371106998,), (1371107002,), (1371107004,), (1371107018,), (1371107032,), (1371107037,), (1371107041,), (1371107045,), (1371107048,), (1371107069,), (1371107074,), (1371107077,), (1371107081,), (1371107082,), (1371107090,), (1371107118,), (1371107122,), (1371107127,), (1371107129,), (1371107131,), (1371107132,), (1371107145,), (1371107156,), (1371107160,), (1371107163,), (1371107165,), (1371107166,), (1371107186,), (1371107189,), (1371107193,), (1371107196,), (1371107199,), (1371107202,), (1371107212,), (1371107217,), (1371107222,), (1371107227,), (1371107238,), (1371107240,), (1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,), (1371107910,), (1371107954,), (1371107989,), (1371108019,), (1371108050,), (1371108095,), (1371108907,), (1371108975,), (1371109030,), (1371109069,), (1371109105,), (1371109137,), (1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,), (1371109850,), (1371109861,), (1371109865,), (1371109869,), (1371109872,), (1371109874,), (1371109890,), (1371109896,), (1371109901,), (1371109904,), (1371109906,), (1371109907,), (1371109923,), (1371109934,), (1371109938,), (1371109947,), (1371109949,), (1371109950,), (1371109965,), (1371109970,), (1371109972,), (1371109973,), (1371109974,), (1371109975,), (1371109989,), (1371110002,), (1371110006,), (1371110008,), (1371110010,), (1371110012,), (1371110035,), (1371110038,), (1371110040,), (1371110042,), (1371110044,), (1371110045,), (1371110060,), (1371110073,), (1371110078,), (1371110080,), (1371110082,), (1371110083,), (1371110093,), (1371110097,), (1371110101,), (1371110105,), (1371110109,), (1371110110,), (1371110117,), (1371110124,), (1371110139,), (1371110143,), (1371110146,), (1371110147,), (1371110167,), (1371110170,), (1371110173,), (1371110177,), (1371110180,), (1371110182,), (1371110189,), (1371110192,), (1371110205,), (1371110208,), (1371110210,), (1371110212,), (1371110234,), (1371110238,), (1371110242,), (1371110246,), (1371110251,), (1371110254,), (1371110264,), (1371110267,), (1371110281,), (1371110284,), (1371110287,), (1371110289,), (1371110311,), (1371110314,), (1371110317,), (1371110320,), (1371110323,), (1371110325,), (1371110336,), (1371110353,), (1371110355,), (1371110359,), (1371110362,), (1371110364,), (1371110383,), (1371110388,), (1371110392,), (1371110396,), (1371110399,), (1371110401,), (1371110410,), (1371110418,), (1371110434,), (1371110442,), (1371110446,), (1371110448,), (1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,), (1371111008,), (1371111012,), (1371111015,), (1371111019,), (1371111022,), (1371111024,), (1371111038,), (1371111044,), (1371111048,), (1371111055,), (1371111061,), (1371111062,), (1371111078,), (1371111083,), (1371111087,), (1371111089,), (1371111096,), (1371111099,), (1371111110,), (1371111112,), (1371111115,), (1371111118,), (1371111122,), (1371111126,), (1371111135,), (1371111138,), (1371111143,), (1371111148,), (1371111152,), (1371111155,), (1371111176,), (1371111179,), (1371111181,), (1371111184,), (1371111186,), (1371111190,), (1371111214,), (1371111218,), (1371111224,), (1371111229,), (1371111233,), (1371111236,), (1371111256,), (1371111261,), (1371111265,), (1371111269,), (1371111271,), (1371111272,), (1371111312,), (1371111316,), (1371111321,), (1371111331,), (1371111337,), (1371111342,), (1371111357,), (1371111364,), (1371111370,), (1371111381,), (1371111385,), (1371111386,), (1371111398,), (1371111403,), (1371111406,), (1371111408,), (1371111410,), (1371111411,), (1371111436,), (1371111441,), (1371111443,), (1371111446,), (1371111449,), (1371111450,), (1371111800,), (1371111869,), (1371111935,), (1371112005,), (1371112071,), (1371112141,), (1371113397,), (1371113435,), (1371113473,), (1371113512,), (1371113544,), (1371113576,), (1371113821,), (1371113891,), (1371113964,), (1371114061,), (1371114131,), (1371114262,), (1371114298,), (1371114422,), (1371114493,), (1371114565,), (1371114632,), (1371114816,), (1371114822,), (1371114855,), (1371114866,), (1371114894,), (1371114914,), (1371115019,), (1371115052,), (1371115065,), (1371115067,), (1371115072,), (1371115106,), (1371115167,), (1371115171,), (1371115176,), (1371115180,), (1371115183,), (1371115184,), (1371115208,), (1371115212,), (1371115216,), (1371115218,), (1371115221,), (1371115223,), (1371115244,), (1371115246,), (1371115248,), (1371115250,), (1371115252,), (1371115254,), (1371115289,), (1371115292,), (1371115294,), (1371115295,), (1371115296,), (1371115299,), (1371115313,), (1371115315,), (1371115318,), (1371115320,), (1371115324,), (1371115326,), (1371115343,), (1371115344,), (1371115345,), (1371115347,), (1371115348,), (1371115350,), (1371115371,), (1371115375,), (1371115378,), (1371115381,), (1371115384,), (1371115385,), (1371115410,), (1371115418,), (1371115422,), (1371115426,), (1371115428,), (1371115429,), (1371115459,), (1371115462,), (1371115465,), (1371115468,), (1371115470,), (1371115472,), (1371115491,), (1371115494,), (1371115496,), (1371115498,), (1371115500,), (1371115503,), (1371115525,), (1371115528,), (1371115531,), (1371115538,), (1371115540,), (1371115542,), (1371115559,), (1371115560,), (1371115562,), (1371115563,), (1371115565,), (1371115568,), (1371115585,), (1371115587,), (1371115597,), (1371115602,), (1371115607,), (1371115609,), (1371115616,), (1371115618,), (1371115620,), (1371115623,), (1371115624,), (1371115628,), (1371115643,), (1371115645,), (1371115648,), (1371115650,), (1371115652,), (1371115653,), (1371115661,), (1371115665,), (1371115667,), (1371115671,), (1371115674,), (1371115676,), (1371115704,), (1371115708,), (1371115712,), (1371115714,), (1371115716,), (1371115717,), (1371115727,), (1371115730,), (1371115734,), (1371115736,), (1371115738,), (1371115739,), (1371115747,), (1371115752,), (1371115755,), (1371115758,), (1371115761,), (1371115762,), (1371115772,), (1371115775,), (1371115778,), (1371115780,), (1371115783,), (1371115784,), (1371115799,), (1371115803,), (1371115806,), (1371115808,), (1371115811,), (1371115813,), (1371115819,), (1371115821,), (1371115823,), (1371115825,), (1371115828,), (1371115830,), (1371115846,), (1371115848,), (1371115851,), (1371115853,), (1371115856,), (1371115864,), (1371115878,), (1371115880,), (1371115883,), (1371115885,), (1371115888,), (1371115890,), (1371115901,), (1371115903,), (1371115906,), (1371115908,), (1371115910,), (1371115911,), (1371115925,), (1371115928,), (1371115931,), (1371115934,), (1371115938,), (1371115947,), (1371115958,), (1371115961,), (1371115964,), (1371115966,), (1371115970,), (1371115973,), (1371115989,), (1371115993,), (1371115996,), (1371116000,), (1371116003,), (1371116005,), (1371116017,), (1371116025,), (1371116029,), (1371116032,), (1371116034,), (1371116035,), (1371116053,), (1371116057,), (1371116061,), (1371116063,), (1371116065,), (1371116066,), (1371116077,), (1371116082,), (1371116087,), (1371116091,), (1371116093,), (1371116094,), (1371116101,), (1371116105,), (1371116109,), (1371116113,), (1371116115,), (1371116117,), (1371116129,), (1371116132,), (1371116134,), (1371116137,), (1371116140,), (1371116142,), (1371116160,), (1371116163,), (1371116165,), (1371116169,), (1371116172,), (1371116174,), (1371116193,), (1371116198,), (1371116200,), (1371116203,), (1371116205,), (1371116206,), (1371116212,), (1371116216,), (1371116220,), (1371116225,), (1371116228,), (1371116229,), (1371116240,), (1371116244,), (1371116248,), (1371116251,), (1371116253,), (1371116254,), (1371116286,), (1371116290,), (1371116293,), (1371116296,), (1371116298,), (1371116299,), (1371116305,), (1371116308,), (1371116319,), (1371116323,), (1371116325,), (1371116326,), (1371116342,), (1371116346,), (1371116349,), (1371116352,), (1371116354,), (1371116356,), (1371116366,), (1371116371,), (1371116373,), (1371116375,), (1371116377,), (1371116378,), (1371116405,), (1371116410,), (1371116414,), (1371116417,), (1371116419,), (1371116421,), (1371116437,), (1371116444,), (1371116450,), (1371116453,), (1371116455,), (1371116456,), (1371116464,), (1371116468,), (1371116471,), (1371116474,), (1371116476,), (1371116477,), (1371116487,), (1371116490,), (1371116493,), (1371116496,), (1371116498,), (1371116499,), (1371116520,), (1371116525,), (1371116528,), (1371116531,), (1371116533,), (1371116534,), (1371116551,), (1371116557,), (1371116560,), (1371116563,), (1371116565,), (1371116566,), (1371116596,), (1371116600,), (1371116603,), (1371116607,), (1371116609,), (1371116610,), (1371116624,), (1371116632,), (1371116634,), (1371116636,), (1371116638,), (1371116640,), (1371116653,), (1371116656,), (1371116660,), (1371116663,), (1371116665,), (1371116666,), (1371116677,), (1371116681,), (1371116683,), (1371116685,), (1371116688,), (1371116690,), (1371116697,), (1371116699,), (1371116702,), (1371116704,), (1371116706,), (1371116709,), (1371116717,), (1371116721,), (1371116724,), (1371116726,), (1371116729,), (1371116731,), (1371116747,), (1371116750,), (1371116753,), (1371116755,), (1371116758,), (1371116760,), (1371116835,), (1371116878,), (1371116915,), (1371116949,), (1371116983,), (1371117016,), (1371117526,), (1371117562,), (1371117600,), (1371117638,), (1371117676,), (1371117710,), (1371117976,), (1371118016,), (1371118052,), (1371118089,), (1371118127,), (1371118432,), (1371118475,), (1371118510,), (1371118545,), (1371118582,), (1371118633,), (1371119054,), (1371119090,), (1371119148,), (1371119219,), (1371119266,), (1371119318,), (1371119429,), (1371119433,), (1371119438,), (1371119442,), (1371119448,), (1371119481,), (1371119661,), (1371119687,), (1371119690,), (1371119724,), (1371119732,), (1371119734,), (1371119757,), (1371119759,), (1371119761,), (1371119765,), (1371119768,), (1371119771,), (1371119785,), (1371119789,), (1371119794,), (1371119798,), (1371119801,), (1371119802,), (1371119822,), (1371119829,), (1371119835,), (1371119839,), (1371119843,), (1371119844,), (1371119865,), (1371119869,), (1371119872,), (1371119875,), (1371119877,), (1371119880,), (1371119898,), (1371119900,), (1371119902,), (1371119904,), (1371119907,), (1371119910,), (1371119961,), (1371119965,), (1371119967,), (1371119970,), (1371119974,), (1371119975,), (1371119992,), (1371119996,), (1371119999,), (1371120001,), (1371120004,), (1371120006,), (1371120031,), (1371120034,), (1371120037,), (1371120040,), (1371120044,), (1371120047,), (1371120077,), (1371120080,), (1371120082,), (1371120084,), (1371120087,), (1371120089,), (1371120124,), (1371120128,), (1371120132,), (1371120133,), (1371120141,), (1371120142,), (1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08072025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24708456]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476] map_info['map_portfolio_photo'] : {24708456: [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476, 1371120464, 1371120463, 1371120459, 1371120455, 1371120451, 1371120445, 1371120430, 1371120428, 1371120425, 1371120421, 1371120418, 1371120414, 1371120400, 1371120399, 1371120397, 1371120394, 1371120390, 1371120384, 1371120341, 1371120339, 1371120334, 1371120329, 1371120325, 1371120319, 1371120304, 1371120301, 1371120296, 1371120293, 1371120291, 1371120288, 1371120276, 1371120272, 1371120265, 1371120263, 1371120261, 1371120257, 1371120233, 1371120231, 1371120229, 1371120226, 1371120222, 1371120217, 1371120187, 1371120184, 1371120181, 1371120178, 1371120173, 1371120168]} final : True mtd_id 4302 list_pids : [1371120537, 1371120533, 1371120530, 1371120526, 1371120523, 1371120519, 1371120505, 1371120504, 1371120498, 1371120493, 1371120487, 1371120476] Looping around the photos to save general results len do output : 1 /24708456Didn'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, '3248715') ('4302', '24708456', '1371120537', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120533', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120530', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120526', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120523', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120519', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120505', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120504', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120498', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120493', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120487', None, None, None, None, None, '3248715') ('4302', None, None, None, None, None, None, None, '3248715') ('4302', '24708456', '1371120476', None, None, None, None, None, '3248715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24708456', 'None', None, None, None, None, '3248715'), ('4302', '24708456', '1371120537', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120533', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120530', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120526', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120523', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120519', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120505', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120504', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120498', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120493', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120487', None, None, None, None, None, '3248715'), ('4302', '24708456', '1371120476', None, None, None, None, None, '3248715')] time used for this insertion : 0.01396632194519043 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9058976173400879 time spend to save output : 0.014181375503540039 total time spend for step 5 : 0.9200789928436279 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 (3248715) 2.06user 2.48system 0:09.74elapsed 46%CPU (0avgtext+0avgdata 161440maxresident)k 2008inputs+14136outputs (55major+64058minor)pagefaults 0swaps