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 : 136953 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 (2792146) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2792146) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669512 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2792146'] with mtr_portfolio_ids : ['22669512'] and first list_photo_ids : [] new path : /proc/136953/ Name: python3 Umask: 0002 State: R (running) Tgid: 136953 Ngid: 0 Pid: 136953 PPid: 136952 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 136953 NSpid: 136953 NSpgid: 136143 NSsid: 136143 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98920 kB VmRSS: 98920 kB RssAnon: 60204 kB RssFile: 38716 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 556 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 56 nonvoluntary_ctxt_switches: 197 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '136953', 'Ngid': '0', 'Pid': '136953', 'PPid': '136952', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '136953', 'NSpid': '136953', 'NSpgid': '136143', 'NSsid': '136143', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98920 kB', 'VmRSS': '98920 kB', 'RssAnon': '60204 kB', 'RssFile': '38716 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '556 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '56', 'nonvoluntary_ctxt_switches': '197'} ('datou_batch_current', '136953', '1107228', '0', '1107228', '865976', '98920', b'', 'marlene', '2792146') 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 (22669512) 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 (2792146 ) ) 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 (22669512) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1355993032, 'portfolio_id': 22669512}, {'photo_id': 1355992994, 'portfolio_id': 22669512}, {'photo_id': 1355992992, 'portfolio_id': 22669512}, {'photo_id': 1355992990, 'portfolio_id': 22669512}, {'photo_id': 1355992988, 'portfolio_id': 22669512}, {'photo_id': 1355992953, 'portfolio_id': 22669512}, {'photo_id': 1355992949, 'portfolio_id': 22669512}, {'photo_id': 1355992944, 'portfolio_id': 22669512}, {'photo_id': 1355992918, 'portfolio_id': 22669512}, {'photo_id': 1355992900, 'portfolio_id': 22669512}, {'photo_id': 1355992898, 'portfolio_id': 22669512}, {'photo_id': 1355992855, 'portfolio_id': 22669512}, {'photo_id': 1355992849, 'portfolio_id': 22669512}, {'photo_id': 1355992846, 'portfolio_id': 22669512}, {'photo_id': 1355992845, 'portfolio_id': 22669512}, {'photo_id': 1355992843, 'portfolio_id': 22669512}, {'photo_id': 1355992808, 'portfolio_id': 22669512}, {'photo_id': 1355992804, 'portfolio_id': 22669512}, {'photo_id': 1355992802, 'portfolio_id': 22669512}, {'photo_id': 1355992783, 'portfolio_id': 22669512}, {'photo_id': 1355992757, 'portfolio_id': 22669512}, {'photo_id': 1355992643, 'portfolio_id': 22669512}, {'photo_id': 1355992634, 'portfolio_id': 22669512}, {'photo_id': 1355992590, 'portfolio_id': 22669512}, {'photo_id': 1355992587, 'portfolio_id': 22669512}, {'photo_id': 1355992585, 'portfolio_id': 22669512}, {'photo_id': 1355992554, 'portfolio_id': 22669512}, {'photo_id': 1355992552, 'portfolio_id': 22669512}, {'photo_id': 1355992549, 'portfolio_id': 22669512}, {'photo_id': 1355992547, 'portfolio_id': 22669512}, {'photo_id': 1355992544, 'portfolio_id': 22669512}, {'photo_id': 1355992512, 'portfolio_id': 22669512}, {'photo_id': 1355992508, 'portfolio_id': 22669512}, {'photo_id': 1355992503, 'portfolio_id': 22669512}, {'photo_id': 1355992495, 'portfolio_id': 22669512}, {'photo_id': 1355992492, 'portfolio_id': 22669512}, {'photo_id': 1355992490, 'portfolio_id': 22669512}, {'photo_id': 1355992460, 'portfolio_id': 22669512}, {'photo_id': 1355992454, 'portfolio_id': 22669512}, {'photo_id': 1355992438, 'portfolio_id': 22669512}, {'photo_id': 1355992435, 'portfolio_id': 22669512}, {'photo_id': 1355992387, 'portfolio_id': 22669512}, {'photo_id': 1355992382, 'portfolio_id': 22669512}, {'photo_id': 1355992377, 'portfolio_id': 22669512}, {'photo_id': 1355992374, 'portfolio_id': 22669512}, {'photo_id': 1355992371, 'portfolio_id': 22669512}, {'photo_id': 1355992368, 'portfolio_id': 22669512}, {'photo_id': 1355992255, 'portfolio_id': 22669512}, {'photo_id': 1355992251, 'portfolio_id': 22669512}, {'photo_id': 1355992247, 'portfolio_id': 22669512}, {'photo_id': 1355992243, 'portfolio_id': 22669512}, {'photo_id': 1355992210, 'portfolio_id': 22669512}, {'photo_id': 1355992207, 'portfolio_id': 22669512}, {'photo_id': 1355992204, 'portfolio_id': 22669512}, {'photo_id': 1355992201, 'portfolio_id': 22669512}, {'photo_id': 1355992197, 'portfolio_id': 22669512}, {'photo_id': 1355992193, 'portfolio_id': 22669512}, {'photo_id': 1355992169, 'portfolio_id': 22669512}, {'photo_id': 1355992165, 'portfolio_id': 22669512}, {'photo_id': 1355992156, 'portfolio_id': 22669512}] map_portfolio_id_photo_id: {22669512: [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898, 1355992855, 1355992849, 1355992846, 1355992845, 1355992843, 1355992808, 1355992804, 1355992802, 1355992783, 1355992757, 1355992643, 1355992634, 1355992590, 1355992587, 1355992585, 1355992554, 1355992552, 1355992549, 1355992547, 1355992544, 1355992512, 1355992508, 1355992503, 1355992495, 1355992492, 1355992490, 1355992460, 1355992454, 1355992438, 1355992435, 1355992387, 1355992382, 1355992377, 1355992374, 1355992371, 1355992368, 1355992255, 1355992251, 1355992247, 1355992243, 1355992210, 1355992207, 1355992204, 1355992201, 1355992197, 1355992193, 1355992169, 1355992165, 1355992156]} ##### 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.015653610229492188 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon May 5 11:28:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22669512) 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 : 22669512 get user id for portfolio 22669512 get sub ptf for main ptf 22669512, type 3726 and hashtags ['autre_refus', 'metal', 'kraft', 'environnement', 'plastique', 'Carton_gris', 'Teint_Dans_La_Masse', 'mal_croppe', 'cartonnette', 'Carton_brun', 'flou', 'papier'] 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`=22669512 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','kraft','environnement','plastique','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','Carton_brun','flou','papier')) 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`=22669512 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','kraft','environnement','plastique','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','Carton_brun','flou','papier')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22669512, 'sub_port_id': 22669515, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090909, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}, 'Carton_brun': {'main_port_id': 22669512, 'sub_port_id': 22669516, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090910, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}, 'Carton_gris': {'main_port_id': 22669512, 'sub_port_id': 22669517, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090911, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22669512, 'sub_port_id': 22669518, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090912, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}, 'cartonnette': {'main_port_id': 22669512, 'sub_port_id': 22669519, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090913, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}, 'autre_refus': {'main_port_id': 22669512, 'sub_port_id': 22669520, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090914, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}, 'metal': {'main_port_id': 22669512, 'sub_port_id': 22669521, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090915, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}, 'flou': {'main_port_id': 22669512, 'sub_port_id': 22669522, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090916, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}, 'mal_croppe': {'main_port_id': 22669512, 'sub_port_id': 22669523, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090917, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}, 'plastique': {'main_port_id': 22669512, 'sub_port_id': 22669524, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090918, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}, 'papier': {'main_port_id': 22669512, 'sub_port_id': 22669525, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090919, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}, 'environnement': {'main_port_id': 22669512, 'sub_port_id': 22669526, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090920, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22669515 , 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=22669512 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 (22669515) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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 22669516 , 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=22669512 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 (22669516) result : ((1355992412,), (1355992428,), (1355992429,), (1355992430,), (1355992431,), (1355992433,), (1355992727,), (1355992728,), (1355992729,), (1355992862,), (1355992874,), (1355993007,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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 22669517 , 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=22669512 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 (22669517) result : ((1355992396,), (1355992409,), (1355992420,), (1355992421,), (1355992422,), (1355992423,), (1355992424,), (1355992425,), (1355992724,), (1355992873,), (1355992974,), (1355992975,), (1355992976,), (1355993014,), (1355993015,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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 22669518 , 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=22669512 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 (22669518) result : ((1355992418,), (1355992537,), (1355992538,), (1355992539,), (1355992715,), (1355992716,), (1355992717,), (1355992860,), (1355992861,), (1355992865,), (1355992866,), (1355992962,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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 22669519 , 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=22669512 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 (22669519) result : ((1355992399,), (1355992400,), (1355992427,), (1355992541,), (1355992723,), (1355992979,), (1355992980,), (1355993018,), (1355993019,), (1355993021,), (1355993022,), (1355993023,), (1355993024,), (1355993025,), (1355993027,), (1355993028,), (1355993029,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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 22669520 , 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=22669512 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 (22669520) result : ((1355992407,), (1355992408,), (1355992540,), (1355992720,), (1355992721,), (1355992871,), (1355992964,), (1355992965,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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 22669521 , 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=22669512 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 (22669521) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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 22669522 , 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=22669512 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 (22669522) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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 22669523 , 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=22669512 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 (22669523) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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 22669524 , 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=22669512 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 (22669524) result : ((1355992436,), (1355992734,), (1355992735,), (1355992736,), (1355992867,), (1355992868,), (1355992875,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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 22669525 , 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=22669512 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 (22669525) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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 22669526 , 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=22669512 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 (22669526) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22669512) result : ((1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) 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 (1355992900) 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`=22669512 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','kraft','environnement','plastique','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','Carton_brun','flou','papier')) 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`=22669512 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','kraft','environnement','plastique','Carton_gris','Teint_Dans_La_Masse','mal_croppe','cartonnette','Carton_brun','flou','papier')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22669512, 'sub_port_id': 22669539, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090933, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}, 'Carton_brun': {'main_port_id': 22669512, 'sub_port_id': 22669540, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090934, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}, 'Carton_gris': {'main_port_id': 22669512, 'sub_port_id': 22669541, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090935, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22669512, 'sub_port_id': 22669542, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090936, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}, 'cartonnette': {'main_port_id': 22669512, 'sub_port_id': 22669543, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090937, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}, 'autre_refus': {'main_port_id': 22669512, 'sub_port_id': 22669544, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090938, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}, 'metal': {'main_port_id': 22669512, 'sub_port_id': 22669545, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090939, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}, 'flou': {'main_port_id': 22669512, 'sub_port_id': 22669546, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090940, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}, 'mal_croppe': {'main_port_id': 22669512, 'sub_port_id': 22669547, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090941, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}, 'plastique': {'main_port_id': 22669512, 'sub_port_id': 22669548, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090942, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}, 'papier': {'main_port_id': 22669512, 'sub_port_id': 22669549, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090943, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}, 'environnement': {'main_port_id': 22669512, 'sub_port_id': 22669550, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15090944, 'last_updated_at': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 11, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 11, 21, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669539,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669515 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669540,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669516 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669541,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669517 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669542,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669518 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669543,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669519 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669544,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669520 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669545,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669521 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669546,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669522 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669523 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669524 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669525 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22669550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22669526 lien utilise dans velours : https://www.fotonower.com/velours/22669539,22669540,22669541,22669542,22669543,22669544,22669545,22669546,22669547,22669548,22669549,22669550?tags=kraft,Carton_brun,Carton_gris,Teint_Dans_La_Masse,cartonnette,autre_refus,metal,flou,mal_croppe,plastique,papier,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22669512]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898] map_info['map_portfolio_photo'] : {22669512: [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898, 1355992855, 1355992849, 1355992846, 1355992845, 1355992843, 1355992808, 1355992804, 1355992802, 1355992783, 1355992757, 1355992643, 1355992634, 1355992590, 1355992587, 1355992585, 1355992554, 1355992552, 1355992549, 1355992547, 1355992544, 1355992512, 1355992508, 1355992503, 1355992495, 1355992492, 1355992490, 1355992460, 1355992454, 1355992438, 1355992435, 1355992387, 1355992382, 1355992377, 1355992374, 1355992371, 1355992368, 1355992255, 1355992251, 1355992247, 1355992243, 1355992210, 1355992207, 1355992204, 1355992201, 1355992197, 1355992193, 1355992169, 1355992165, 1355992156]} final : False mtd_id 4302 list_pids : [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898] Looping around the photos to save general results len do output : 1 /22669512. 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, '2792146') ('4302', '22669512', '1355993032', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992994', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992992', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992990', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992988', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992953', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992949', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992944', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992918', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992900', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992898', None, None, None, None, None, '2792146') 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', None, '22669512', "{'kraft': 22669515, 'Carton_brun': 22669516, 'Carton_gris': 22669517, 'Teint_Dans_La_Masse': 22669518, 'cartonnette': 22669519, 'autre_refus': 22669520, 'metal': 22669521, 'flou': 22669522, 'mal_croppe': 22669523, 'plastique': 22669524, 'papier': 22669525, 'environnement': 22669526}", None, None, None, None, '2792146'), ('4302', '22669512', '1355993032', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992994', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992992', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992990', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992988', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992953', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992949', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992944', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992918', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992900', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992898', None, None, None, None, None, '2792146')] time used for this insertion : 0.014737844467163086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.47414565086364746 time spend to save output : 0.015000343322753906 total time spend for step 1 : 0.48914599418640137 step2:final Mon May 5 11:28:30 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 (22669512) 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 22669512 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1355992169,1355992165,1355992156,1355992210,1355992207,1355992204,1355992201,1355992197,1355992193,1355992255,1355992251,1355992247,1355992243,1355992387,1355992382,1355992377,1355992374,1355992371,1355992368,1355992460,1355992454,1355992438,1355992435,1355992512,1355992508,1355992503,1355992495,1355992492,1355992490,1355992554,1355992552,1355992549,1355992547,1355992544,1355992643,1355992634,1355992590,1355992587,1355992585,1355992808,1355992804,1355992802,1355992783,1355992757,1355992855,1355992849,1355992846,1355992845,1355992843,1355992953,1355992949,1355992944,1355992918,1355992900,1355992898,1355992994,1355992992,1355992990,1355992988,1355993032); 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([22669512]) Inside saveOutput : final : False verbose : True original output for save of step final : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} new output for save of step final : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898] map_info['map_portfolio_photo'] : {22669512: [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898, 1355992855, 1355992849, 1355992846, 1355992845, 1355992843, 1355992808, 1355992804, 1355992802, 1355992783, 1355992757, 1355992643, 1355992634, 1355992590, 1355992587, 1355992585, 1355992554, 1355992552, 1355992549, 1355992547, 1355992544, 1355992512, 1355992508, 1355992503, 1355992495, 1355992492, 1355992490, 1355992460, 1355992454, 1355992438, 1355992435, 1355992387, 1355992382, 1355992377, 1355992374, 1355992371, 1355992368, 1355992255, 1355992251, 1355992247, 1355992243, 1355992210, 1355992207, 1355992204, 1355992201, 1355992197, 1355992193, 1355992169, 1355992165, 1355992156]} final : False mtd_id 4302 list_pids : [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898] Looping around the photos to save general results len do output : 11 /1355993032.Didn't retrieve data . /1355992994.Didn't retrieve data . /1355992992.Didn't retrieve data . /1355992990.Didn't retrieve data . /1355992988.Didn't retrieve data . /1355992953.Didn't retrieve data . /1355992949.Didn't retrieve data . /1355992944.Didn't retrieve data . /1355992918.Didn't retrieve data . /1355992900.Didn't retrieve data . /1355992898.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, '2792146') ('4302', '22669512', '1355993032', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992994', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992992', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992990', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992988', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992953', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992949', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992944', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992918', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992900', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992898', None, None, None, None, None, '2792146') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '22669512', '1355993032', '0.040894796867475984', None, None, None, None, '2792146'), ('4302', '22669512', '1355992994', '0.040894796867475984', None, None, None, None, '2792146'), ('4302', '22669512', '1355992992', '0.040894796867475984', None, None, None, None, '2792146'), ('4302', '22669512', '1355992990', '0.040894796867475984', None, None, None, None, '2792146'), ('4302', '22669512', '1355992988', '0.040894796867475984', None, None, None, None, '2792146'), ('4302', '22669512', '1355992953', '0.040894796867475984', None, None, None, None, '2792146'), ('4302', '22669512', '1355992949', '0.040894796867475984', None, None, None, None, '2792146'), ('4302', '22669512', '1355992944', '0.040894796867475984', None, None, None, None, '2792146'), ('4302', '22669512', '1355992918', '0.040894796867475984', None, None, None, None, '2792146'), ('4302', '22669512', '1355992900', '0.040894796867475984', None, None, None, None, '2792146'), ('4302', '22669512', '1355992898', '0.040894796867475984', None, None, None, None, '2792146')] time used for this insertion : 0.01840066909790039 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07999706268310547 time spend to save output : 0.01902604103088379 total time spend for step 2 : 0.09902310371398926 step3:velours_tree Mon May 5 11:28:30 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 : {22669512: [{'kraft': 22669515, 'Carton_brun': 22669516, 'Carton_gris': 22669517, 'Teint_Dans_La_Masse': 22669518, 'cartonnette': 22669519, 'autre_refus': 22669520, 'metal': 22669521, 'flou': 22669522, 'mal_croppe': 22669523, 'plastique': 22669524, 'papier': 22669525, 'environnement': 22669526}]} input_args_next_step : {22669512: ()} output_args : {22669512: [{'kraft': 22669515, 'Carton_brun': 22669516, 'Carton_gris': 22669517, 'Teint_Dans_La_Masse': 22669518, 'cartonnette': 22669519, 'autre_refus': 22669520, 'metal': 22669521, 'flou': 22669522, 'mal_croppe': 22669523, 'plastique': 22669524, 'papier': 22669525, 'environnement': 22669526}]} args : 22669512 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 : ({'kraft': 22669515, 'Carton_brun': 22669516, 'Carton_gris': 22669517, 'Teint_Dans_La_Masse': 22669518, 'cartonnette': 22669519, 'autre_refus': 22669520, 'metal': 22669521, 'flou': 22669522, 'mal_croppe': 22669523, 'plastique': 22669524, 'papier': 22669525, 'environnement': 22669526},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22669512) 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([22669512]) 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.37525081634521484 time spend to save output : 5.459785461425781e-05 total time spend for step 3 : 0.3753054141998291 step4:send_mail_cod Mon May 5 11:28:30 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 : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} input_args_next_step : {1355993032: ()} output_args : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} args : 1355993032 depend.output_id : 0 input_args_next_step : {1355993032: ('0.040894796867475984',), 1355992994: ()} output_args : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} args : 1355992994 depend.output_id : 0 input_args_next_step : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ()} output_args : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} args : 1355992992 depend.output_id : 0 input_args_next_step : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ()} output_args : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} args : 1355992990 depend.output_id : 0 input_args_next_step : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ()} output_args : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} args : 1355992988 depend.output_id : 0 input_args_next_step : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ()} output_args : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} args : 1355992953 depend.output_id : 0 input_args_next_step : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ()} output_args : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} args : 1355992949 depend.output_id : 0 input_args_next_step : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ()} output_args : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} args : 1355992944 depend.output_id : 0 input_args_next_step : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ()} output_args : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} args : 1355992918 depend.output_id : 0 input_args_next_step : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ()} output_args : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} args : 1355992900 depend.output_id : 0 input_args_next_step : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ()} output_args : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',)} args : 1355992898 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 : {22669512: [{'kraft': 22669515, 'Carton_brun': 22669516, 'Carton_gris': 22669517, 'Teint_Dans_La_Masse': 22669518, 'cartonnette': 22669519, 'autre_refus': 22669520, 'metal': 22669521, 'flou': 22669522, 'mal_croppe': 22669523, 'plastique': 22669524, 'papier': 22669525, 'environnement': 22669526}]} input_args_next_step : {1355993032: ('0.040894796867475984',), 1355992994: ('0.040894796867475984',), 1355992992: ('0.040894796867475984',), 1355992990: ('0.040894796867475984',), 1355992988: ('0.040894796867475984',), 1355992953: ('0.040894796867475984',), 1355992949: ('0.040894796867475984',), 1355992944: ('0.040894796867475984',), 1355992918: ('0.040894796867475984',), 1355992900: ('0.040894796867475984',), 1355992898: ('0.040894796867475984',), 22669512: ()} output_args : {22669512: [{'kraft': 22669515, 'Carton_brun': 22669516, 'Carton_gris': 22669517, 'Teint_Dans_La_Masse': 22669518, 'cartonnette': 22669519, 'autre_refus': 22669520, 'metal': 22669521, 'flou': 22669522, 'mal_croppe': 22669523, 'plastique': 22669524, 'papier': 22669525, 'environnement': 22669526}]} args : 22669512 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 :12, first value : ('0.040894796867475984',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22669512) 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 (1355993032,1355992994,1355992992,1355992990,1355992988,1355992953,1355992949,1355992944,1355992918,1355992900,1355992898) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1355992898 begin to download photo : 1355992944 begin to download photo : 1355992988 begin to download photo : 1355992994 download finish for photo 1355992898 begin to download photo : 1355992900 download finish for photo 1355992994 begin to download photo : 1355993032 download finish for photo 1355992944 begin to download photo : 1355992949 download finish for photo 1355992988 begin to download photo : 1355992990 download finish for photo 1355992900 begin to download photo : 1355992918 download finish for photo 1355993032 download finish for photo 1355992990 begin to download photo : 1355992992 download finish for photo 1355992949 begin to download photo : 1355992953 download finish for photo 1355992918 download finish for photo 1355992992 download finish for photo 1355992953 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette226695151746437311/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P22669512_05-05-2025_11_28_31.pdf 22669515 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=22669515 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226695151746437311 22669519 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=22669519 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355993019: '1746437246_1343368_1355992804_24aae802da4e79250a55f1d33e024e0b_rle_crop_3784387321_0.png', 1355993029: '1746437246_1343368_1355992757_b9e18ca0ae9290b42c260c0ca7276a74_rle_crop_3784387369_0.png', 1355993028: '1746437246_1343368_1355992757_b9e18ca0ae9290b42c260c0ca7276a74_rle_crop_3784387359_0.png', 1355993027: '1746437246_1343368_1355992757_b9e18ca0ae9290b42c260c0ca7276a74_rle_crop_3784387360_0.png', 1355993025: '1746437246_1343368_1355992783_14943ed631f33cf7c538b4a0f5b788ad_rle_crop_3784387352_0.png', 1355993024: '1746437246_1343368_1355992783_14943ed631f33cf7c538b4a0f5b788ad_rle_crop_3784387349_0.png', 1355993023: '1746437246_1343368_1355992783_14943ed631f33cf7c538b4a0f5b788ad_rle_crop_3784387344_0.png', 1355993022: '1746437246_1343368_1355992802_a82a53ca7a1b8682a4dca73b389e3350_rle_crop_3784387336_0.png', 1355993021: '1746437246_1343368_1355992804_24aae802da4e79250a55f1d33e024e0b_rle_crop_3784387327_0.png', 1355992399: '1746436752_561426_1355992247_e68030d8fa89b733368d203cf2c57264_rle_crop_3784382437_0.png', 1355993018: '1746437246_1343368_1355992804_24aae802da4e79250a55f1d33e024e0b_rle_crop_3784387323_0.png', 1355992980: '1746437171_565642_1355992547_719e49b0d08bd1cd7dac21703a96a953_rle_crop_3784386935_0.png', 1355992979: '1746437171_565642_1355992552_43ab1eb5cfc1ea3312747a2d49d5d366_rle_crop_3784386903_0.png', 1355992723: '1746437005_1339591_1355992435_780413ddc7adc8fd7f812707cb80f0d7_rle_crop_3784385735_0.png', 1355992541: '1746436873_562702_1355992374_caa0e30f10aa7a412a8cbbaab598940a_rle_crop_3784384031_0.png', 1355992427: '1746436767_974637_1355992197_a3a634a823947610679c01333357a3c2_rle_crop_3784382733_0.png', 1355992400: '1746436752_561426_1355992247_e68030d8fa89b733368d203cf2c57264_rle_crop_3784382438_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/c6783f906588b20276ee43183320d00f_12010754.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/d1c26f88c1bf0809f720cf23b24ecfe0_22037407.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/fcb6d90030f16f6499a2648050e147a6_98998971.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/123378c13e3171b44cbae4bda91720c8_95951503.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/eaaa0c2a768c97e75b8dc9352e7c3c0b_6925412.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/403d5066f600dd7614f4e5dca10b9d92_81047740.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/71ec9396dd8938b8b3f2479eb0f1f747_5185295.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/7d78b877b6927d5e948bee258d8d0f8b_27580875.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/48d98b541ba319694b8f36056d2434db_17846724.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/dacace40297079f4e5f81860ef4be932_21110263.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/f73a6603772688d7c5c9082013a2a0ff_63803237.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/9d3c41cbfcf072e9ccb1006d0bbdd692_51181172.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/8accf0dc4c27aeff61e313b8c8cca5c8_8305441.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/6a78d781078aa9a27c9c5937225b62dd_24427220.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/6caccd5501f2ff75dfd4d8c218a34374_13667688.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/41f0103a981cf9afa82f5b6063e61f9d_47103963.png change filename to text .imagette226695191746437311/ imagette226695191746437311/1746437171_565642_1355992552_43ab1eb5cfc1ea3312747a2d49d5d366_rle_crop_3784386903_0.png.png imagette226695191746437311/1746436752_561426_1355992247_e68030d8fa89b733368d203cf2c57264_rle_crop_3784382437_0.png.png imagette226695191746437311/1746437246_1343368_1355992757_b9e18ca0ae9290b42c260c0ca7276a74_rle_crop_3784387359_0.png.png imagette226695191746437311/1746437005_1339591_1355992435_780413ddc7adc8fd7f812707cb80f0d7_rle_crop_3784385735_0.png.png imagette226695191746437311/1746437246_1343368_1355992757_b9e18ca0ae9290b42c260c0ca7276a74_rle_crop_3784387369_0.png.png imagette226695191746437311/1746437171_565642_1355992547_719e49b0d08bd1cd7dac21703a96a953_rle_crop_3784386935_0.png.png imagette226695191746437311/1746437246_1343368_1355992783_14943ed631f33cf7c538b4a0f5b788ad_rle_crop_3784387352_0.png.png imagette226695191746437311/1746437246_1343368_1355992757_b9e18ca0ae9290b42c260c0ca7276a74_rle_crop_3784387360_0.png.png imagette226695191746437311/1746437246_1343368_1355992804_24aae802da4e79250a55f1d33e024e0b_rle_crop_3784387327_0.png.png imagette226695191746437311/1746437246_1343368_1355992804_24aae802da4e79250a55f1d33e024e0b_rle_crop_3784387321_0.png.png imagette226695191746437311/1746436767_974637_1355992197_a3a634a823947610679c01333357a3c2_rle_crop_3784382733_0.png.png imagette226695191746437311/1746437246_1343368_1355992802_a82a53ca7a1b8682a4dca73b389e3350_rle_crop_3784387336_0.png.png imagette226695191746437311/1746436873_562702_1355992374_caa0e30f10aa7a412a8cbbaab598940a_rle_crop_3784384031_0.png.png imagette226695191746437311/1746436752_561426_1355992247_e68030d8fa89b733368d203cf2c57264_rle_crop_3784382438_0.png.png imagette226695191746437311/1746437246_1343368_1355992804_24aae802da4e79250a55f1d33e024e0b_rle_crop_3784387323_0.png.png imagette226695191746437311/1746437246_1343368_1355992783_14943ed631f33cf7c538b4a0f5b788ad_rle_crop_3784387344_0.png.png imagette226695191746437311/1746437246_1343368_1355992783_14943ed631f33cf7c538b4a0f5b788ad_rle_crop_3784387349_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/acab446f1ab76a39fd90368454fd1b03_90804367.png imagette226695191746437311 22669520 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=22669520 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355992407: '1746436765_1334307_1355992210_d6410251ac0546ecef65fa13ce3ae300_rle_crop_3784382643_0.png', 1355992408: '1746436765_1334307_1355992169_0d1656da197ec6dfb3e7c58beb6d3d79_rle_crop_3784382652_0.png', 1355992540: '1746436873_562702_1355992377_152cba8273ba45b662dfaf8f5314ef9e_rle_crop_3784384016_0.png', 1355992720: '1746436991_563768_1355992503_5255200d3615b1e01ab6651810782e34_rle_crop_3784385668_0.png', 1355992721: '1746436991_563768_1355992490_529df17fb86ea2179a805c3961b45dd8_rle_crop_3784385751_0.png', 1355992871: '1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386489_0.png', 1355992964: '1746437171_565642_1355992552_43ab1eb5cfc1ea3312747a2d49d5d366_rle_crop_3784386907_0.png', 1355992965: '1746437171_565642_1355992544_d4de95b53c6a0543b9fea50892f83f8d_rle_crop_3784386949_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/da1c320263c53975bed93682f0efd261_10428475.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/1d2560daeb71a6123fe21a8c73e11fcb_92927323.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/d9553e2ace32ba4a542ee2a09a9c7bfa_85944210.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/f218be6ca1f48fa5b4023109cb11894b_28817247.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/b27b6d33fb951ed21dd4dcbe806e1666_15173881.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/877e857ee66c9789fca4fcf07efd685f_4803153.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/48c5e927b658eb5d02725d7208340642_94926860.png change filename to text .imagette226695201746437312/ imagette226695201746437312/1746436765_1334307_1355992169_0d1656da197ec6dfb3e7c58beb6d3d79_rle_crop_3784382652_0.png.png imagette226695201746437312/1746437171_565642_1355992552_43ab1eb5cfc1ea3312747a2d49d5d366_rle_crop_3784386907_0.png.png imagette226695201746437312/1746437171_565642_1355992544_d4de95b53c6a0543b9fea50892f83f8d_rle_crop_3784386949_0.png.png imagette226695201746437312/1746436991_563768_1355992490_529df17fb86ea2179a805c3961b45dd8_rle_crop_3784385751_0.png.png imagette226695201746437312/1746436873_562702_1355992377_152cba8273ba45b662dfaf8f5314ef9e_rle_crop_3784384016_0.png.png imagette226695201746437312/1746436991_563768_1355992503_5255200d3615b1e01ab6651810782e34_rle_crop_3784385668_0.png.png imagette226695201746437312/1746436765_1334307_1355992210_d6410251ac0546ecef65fa13ce3ae300_rle_crop_3784382643_0.png.png imagette226695201746437312/1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386489_0.png.png imagette226695211746437312/ imagette226695221746437312/ imagette226695231746437312/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/139373baaaba3ff9988c871596365e4a_94415475.png imagette226695201746437312 22669521 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=22669521 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226695211746437312 22669522 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=22669522 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226695221746437312 22669523 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=22669523 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226695231746437312 22669524 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=22669524 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355992436: '1746436767_974637_1355992197_a3a634a823947610679c01333357a3c2_rle_crop_3784382744_0.png', 1355992734: '1746437005_1339591_1355992435_780413ddc7adc8fd7f812707cb80f0d7_rle_crop_3784385736_0.png', 1355992735: '1746436991_563768_1355992492_c0c756a2801b1f2f0a4b8222b2fa9b9c_rle_crop_3784385723_0.png', 1355992736: '1746436991_563768_1355992490_529df17fb86ea2179a805c3961b45dd8_rle_crop_3784385748_0.png', 1355992867: '1746437101_564798_1355992590_3583956a0a713b3f3a219d8f79a6ec3d_rle_crop_3784386449_0.png', 1355992868: '1746437101_564798_1355992585_9160fbb621df080a6bda3eff1b263953_rle_crop_3784386477_0.png', 1355992875: '1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386487_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/1a6aaa64af378f59d8e81a4c1b9cd296_6895091.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/5b11c1274e8f806391372d8ae7950b3f_7335969.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/e24c9642fc19bc8b20589b5b8174538f_90504564.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/ef343fa5eba6ac424697ed570154460c_17875904.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/8871d0667be01810e774c5dc2d38f0d4_6331436.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/bc4671576e0cdcb39b6981fc79423126_33797073.png change filename to text .imagette226695241746437312/ imagette226695241746437312/1746437101_564798_1355992585_9160fbb621df080a6bda3eff1b263953_rle_crop_3784386477_0.png.png imagette226695241746437312/1746436767_974637_1355992197_a3a634a823947610679c01333357a3c2_rle_crop_3784382744_0.png.png imagette226695241746437312/1746437005_1339591_1355992435_780413ddc7adc8fd7f812707cb80f0d7_rle_crop_3784385736_0.png.png imagette226695241746437312/1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386487_0.png.png imagette226695241746437312/1746437101_564798_1355992590_3583956a0a713b3f3a219d8f79a6ec3d_rle_crop_3784386449_0.png.png imagette226695241746437312/1746436991_563768_1355992490_529df17fb86ea2179a805c3961b45dd8_rle_crop_3784385748_0.png.png imagette226695241746437312/1746436991_563768_1355992492_c0c756a2801b1f2f0a4b8222b2fa9b9c_rle_crop_3784385723_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/10ba8f3033995ea3014863b309b42609_21664137.png imagette226695241746437312 22669516 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=22669516 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355992412: '1746436765_1334307_1355992169_0d1656da197ec6dfb3e7c58beb6d3d79_rle_crop_3784382650_0.png', 1355992428: '1746436767_974637_1355992201_b45aa59dd9fed59282f0cbdb09c75f37_rle_crop_3784382722_0.png', 1355992429: '1746436767_974637_1355992201_b45aa59dd9fed59282f0cbdb09c75f37_rle_crop_3784382717_0.png', 1355992430: '1746436767_974637_1355992197_a3a634a823947610679c01333357a3c2_rle_crop_3784382743_0.png', 1355992431: '1746436767_974637_1355992197_a3a634a823947610679c01333357a3c2_rle_crop_3784382741_0.png', 1355992433: '1746436767_974637_1355992193_73d049942f7e40757f5c6f746d1d073e_rle_crop_3784382750_0.png', 1355992727: '1746436991_563768_1355992495_affd05e6110ea1414e1dab06195ca56e_rle_crop_3784385702_0.png', 1355992728: '1746436991_563768_1355992495_affd05e6110ea1414e1dab06195ca56e_rle_crop_3784385700_0.png', 1355992729: '1746436991_563768_1355992492_c0c756a2801b1f2f0a4b8222b2fa9b9c_rle_crop_3784385726_0.png', 1355992862: '1746437101_564798_1355992585_9160fbb621df080a6bda3eff1b263953_rle_crop_3784386479_0.png', 1355992874: '1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386490_0.png', 1355993007: '1746437232_566140_1355992846_7aae05d56877f701fab78cabeb55e254_rle_crop_3784387287_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/9b6af4b6049758204997445d6e2bec7b_82783994.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/ef15dd3f66fc050cbabaee9ee669921a_257693.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/5d35418ca28b4b1c6871c5883f15e5d4_29291380.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/48466146cf98f8f20a39bb23b4c0dc1c_112814.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/bf14109fe3f40b6039e4520f10fec3b2_83630652.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/6173b1c461d9d26492ab7795f8977d8b_24462845.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/a596d2146e584be1a0d9fcbc85a83fde_47822193.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/98c285091fd5e9c98c2672df658131bf_49350233.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/8e286dfa588679edceda20c2bb496975_17092481.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/d7d4ba83fb663a6bdfbe6736009af0b0_24645519.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/ce304af91172d382a717e0937a888114_42137030.png change filename to text .imagette226695161746437313/ imagette226695161746437313/1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386490_0.png.png imagette226695161746437313/1746436991_563768_1355992495_affd05e6110ea1414e1dab06195ca56e_rle_crop_3784385700_0.png.png imagette226695161746437313/1746436767_974637_1355992201_b45aa59dd9fed59282f0cbdb09c75f37_rle_crop_3784382717_0.png.png imagette226695161746437313/1746436767_974637_1355992193_73d049942f7e40757f5c6f746d1d073e_rle_crop_3784382750_0.png.png imagette226695161746437313/1746436991_563768_1355992492_c0c756a2801b1f2f0a4b8222b2fa9b9c_rle_crop_3784385726_0.png.png imagette226695161746437313/1746437232_566140_1355992846_7aae05d56877f701fab78cabeb55e254_rle_crop_3784387287_0.png.png imagette226695161746437313/1746436991_563768_1355992495_affd05e6110ea1414e1dab06195ca56e_rle_crop_3784385702_0.png.png imagette226695161746437313/1746436767_974637_1355992197_a3a634a823947610679c01333357a3c2_rle_crop_3784382743_0.png.png imagette226695161746437313/1746437101_564798_1355992585_9160fbb621df080a6bda3eff1b263953_rle_crop_3784386479_0.png.png imagette226695161746437313/1746436765_1334307_1355992169_0d1656da197ec6dfb3e7c58beb6d3d79_rle_crop_3784382650_0.png.png imagette226695161746437313/1746436767_974637_1355992197_a3a634a823947610679c01333357a3c2_rle_crop_3784382741_0.png.png imagette226695161746437313/1746436767_974637_1355992201_b45aa59dd9fed59282f0cbdb09c75f37_rle_crop_3784382722_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/c2ee3fa830c35aaeb2e73c75f4f1be1b_75384595.png imagette226695161746437313 22669517 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=22669517 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355992396: '1746436752_561426_1355992247_e68030d8fa89b733368d203cf2c57264_rle_crop_3784382440_0.png', 1355992409: '1746436765_1334307_1355992169_0d1656da197ec6dfb3e7c58beb6d3d79_rle_crop_3784382649_0.png', 1355992420: '1746436767_974637_1355992207_c10a9051446f88bc6c3b9fae6ac4be03_rle_crop_3784382692_0.png', 1355992421: '1746436767_974637_1355992204_ef56bd23f085f1ce109a59ad961fb0e6_rle_crop_3784382708_0.png', 1355992422: '1746436767_974637_1355992204_ef56bd23f085f1ce109a59ad961fb0e6_rle_crop_3784382702_0.png', 1355992423: '1746436767_974637_1355992201_b45aa59dd9fed59282f0cbdb09c75f37_rle_crop_3784382720_0.png', 1355992424: '1746436767_974637_1355992201_b45aa59dd9fed59282f0cbdb09c75f37_rle_crop_3784382726_0.png', 1355992425: '1746436767_974637_1355992197_a3a634a823947610679c01333357a3c2_rle_crop_3784382737_0.png', 1355992724: '1746436991_563768_1355992490_529df17fb86ea2179a805c3961b45dd8_rle_crop_3784385750_0.png', 1355992873: '1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386488_0.png', 1355992974: '1746437171_565642_1355992552_43ab1eb5cfc1ea3312747a2d49d5d366_rle_crop_3784386911_0.png', 1355992975: '1746437171_565642_1355992552_43ab1eb5cfc1ea3312747a2d49d5d366_rle_crop_3784386915_0.png', 1355992976: '1746437171_565642_1355992549_83517734bc5dfc9e87e2bbb576f93308_rle_crop_3784386926_0.png', 1355993014: '1746437246_1343368_1355992783_14943ed631f33cf7c538b4a0f5b788ad_rle_crop_3784387348_0.png', 1355993015: '1746437246_1343368_1355992757_b9e18ca0ae9290b42c260c0ca7276a74_rle_crop_3784387367_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/b0efce319be381d41f63b3ed6e86d18f_69697995.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/26ccae635e89cf527049eff297840dc7_51316689.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/bf6f77b87ba1c7cb027812e667dd1977_34863655.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/5ccd2fa9a90ca7a77bf4403d2baf02a3_48530569.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/0befce2774e7b738f7e0f3ffbe448436_46162802.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/f7322ce2e79016eeab9df0d588ef4303_20541434.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/e1d67d6bf5c48e94de779ef570d1a4ac_79381748.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/83841f6fc2481df77792e1f395275f36_1521809.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/595c9b332176a12889dd8a2a17eafc95_4481639.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/22ab07b4027456374f3bceb578463c18_3713366.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/997604a9d3c6a892473e989fc2c083fb_83560930.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/a273378fc778dc40cb0a66598fab58fd_69865822.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/ac510bffd222c3e0068f0eff595c6eb9_72050515.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/987b4c2f7b865308ad7796462d153008_51932477.png change filename to text .imagette226695171746437313/ imagette226695171746437313/1746436767_974637_1355992207_c10a9051446f88bc6c3b9fae6ac4be03_rle_crop_3784382692_0.png.png imagette226695171746437313/1746437246_1343368_1355992757_b9e18ca0ae9290b42c260c0ca7276a74_rle_crop_3784387367_0.png.png imagette226695171746437313/1746436767_974637_1355992201_b45aa59dd9fed59282f0cbdb09c75f37_rle_crop_3784382720_0.png.png imagette226695171746437313/1746437171_565642_1355992552_43ab1eb5cfc1ea3312747a2d49d5d366_rle_crop_3784386911_0.png.png imagette226695171746437313/1746437171_565642_1355992552_43ab1eb5cfc1ea3312747a2d49d5d366_rle_crop_3784386915_0.png.png imagette226695171746437313/1746436767_974637_1355992201_b45aa59dd9fed59282f0cbdb09c75f37_rle_crop_3784382726_0.png.png imagette226695171746437313/1746436752_561426_1355992247_e68030d8fa89b733368d203cf2c57264_rle_crop_3784382440_0.png.png imagette226695171746437313/1746437171_565642_1355992549_83517734bc5dfc9e87e2bbb576f93308_rle_crop_3784386926_0.png.png imagette226695171746437313/1746436991_563768_1355992490_529df17fb86ea2179a805c3961b45dd8_rle_crop_3784385750_0.png.png imagette226695171746437313/1746436767_974637_1355992197_a3a634a823947610679c01333357a3c2_rle_crop_3784382737_0.png.png imagette226695171746437313/1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386488_0.png.png imagette226695171746437313/1746437246_1343368_1355992783_14943ed631f33cf7c538b4a0f5b788ad_rle_crop_3784387348_0.png.png imagette226695171746437313/1746436765_1334307_1355992169_0d1656da197ec6dfb3e7c58beb6d3d79_rle_crop_3784382649_0.png.png imagette226695171746437313/1746436767_974637_1355992204_ef56bd23f085f1ce109a59ad961fb0e6_rle_crop_3784382702_0.png.png imagette226695171746437313/1746436767_974637_1355992204_ef56bd23f085f1ce109a59ad961fb0e6_rle_crop_3784382708_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/b48f1ce48348396895dd4f076d4b1254_95809053.png imagette226695171746437313 22669518 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=22669518 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355992418: '1746436767_974637_1355992204_ef56bd23f085f1ce109a59ad961fb0e6_rle_crop_3784382709_0.png', 1355992537: '1746436873_562702_1355992382_ebda50a386e612d43a356f61caa3ef4e_rle_crop_3784384006_0.png', 1355992538: '1746436873_562702_1355992374_caa0e30f10aa7a412a8cbbaab598940a_rle_crop_3784384035_0.png', 1355992539: '1746436873_562702_1355992368_a995c7d43840dcde9a1c1a088cdc036a_rle_crop_3784384254_0.png', 1355992715: '1746436991_563768_1355992503_5255200d3615b1e01ab6651810782e34_rle_crop_3784385672_0.png', 1355992716: '1746436991_563768_1355992490_529df17fb86ea2179a805c3961b45dd8_rle_crop_3784385753_0.png', 1355992717: '1746437005_1339591_1355992438_d8260fae01fd3ca831d8158b5c58def4_rle_crop_3784385715_0.png', 1355992860: '1746437101_564798_1355992590_3583956a0a713b3f3a219d8f79a6ec3d_rle_crop_3784386447_0.png', 1355992861: '1746437101_564798_1355992590_3583956a0a713b3f3a219d8f79a6ec3d_rle_crop_3784386454_0.png', 1355992865: '1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386495_0.png', 1355992866: '1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386492_0.png', 1355992962: '1746437171_565642_1355992552_43ab1eb5cfc1ea3312747a2d49d5d366_rle_crop_3784386910_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/ccc9983a790e146dd21c9b9811a5e5de_22773720.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/7818b3f6217f720117f1bd5f3c389f07_4628179.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/163ebf0ddb8fef6238d41cbdcda3ee64_12226654.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/01ae5b74cc7642de06b67f2966ac92cb_11848469.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/b9c8eb5202b775b33fb04edb3484b961_64335944.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/3912ccb57f74b86d4643fca872b9557d_35785723.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/36b55c7f8c9b22f883a9e168f232fe29_94870954.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/57596a152f2c135a117739127f7cc4be_63861128.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/00d25f7b651baccf61c7d17834233741_41498392.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/350938094afb3ff33d2869b04d235293_34967803.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/78f1dbb943bbb7f09764fd7224e13b49_81628449.png change filename to text .imagette226695181746437314/ imagette226695181746437314/1746436991_563768_1355992503_5255200d3615b1e01ab6651810782e34_rle_crop_3784385672_0.png.png imagette226695181746437314/1746437171_565642_1355992552_43ab1eb5cfc1ea3312747a2d49d5d366_rle_crop_3784386910_0.png.png imagette226695181746437314/1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386495_0.png.png imagette226695181746437314/1746437101_564798_1355992590_3583956a0a713b3f3a219d8f79a6ec3d_rle_crop_3784386447_0.png.png imagette226695181746437314/1746437101_564798_1355992590_3583956a0a713b3f3a219d8f79a6ec3d_rle_crop_3784386454_0.png.png imagette226695181746437314/1746436873_562702_1355992382_ebda50a386e612d43a356f61caa3ef4e_rle_crop_3784384006_0.png.png imagette226695181746437314/1746436873_562702_1355992374_caa0e30f10aa7a412a8cbbaab598940a_rle_crop_3784384035_0.png.png imagette226695181746437314/1746436767_974637_1355992204_ef56bd23f085f1ce109a59ad961fb0e6_rle_crop_3784382709_0.png.png imagette226695181746437314/1746437110_564953_1355992554_dea1d6bc70c27236ee35e2c7ad1da796_rle_crop_3784386492_0.png.png imagette226695181746437314/1746436991_563768_1355992490_529df17fb86ea2179a805c3961b45dd8_rle_crop_3784385753_0.png.png imagette226695181746437314/1746437005_1339591_1355992438_d8260fae01fd3ca831d8158b5c58def4_rle_crop_3784385715_0.png.png imagette226695181746437314/1746436873_562702_1355992368_a995c7d43840dcde9a1c1a088cdc036a_rle_crop_3784384254_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/1e4c69926ee5a2ab7879826bf369b68f_59087574.png imagette226695181746437314 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22669512 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22669539,22669540,22669541,22669542,22669543,22669544,22669545,22669546,22669547,22669548,22669549,22669550?tags=kraft,Carton_brun,Carton_gris,Teint_Dans_La_Masse,cartonnette,autre_refus,metal,flou,mal_croppe,plastique,papier,environnement your option no_mail is active, we will not send the real mail to your client args[1355993032] : ('0.040894796867475984',) no score found for photo 1355993032 We are sending mail with results at report@fotonower.com args[1355992994] : ('0.040894796867475984',) no score found for photo 1355992994 We are sending mail with results at report@fotonower.com args[1355992992] : ('0.040894796867475984',) no score found for photo 1355992992 We are sending mail with results at report@fotonower.com args[1355992990] : ('0.040894796867475984',) no score found for photo 1355992990 We are sending mail with results at report@fotonower.com args[1355992988] : ('0.040894796867475984',) no score found for photo 1355992988 We are sending mail with results at report@fotonower.com args[1355992953] : ('0.040894796867475984',) no score found for photo 1355992953 We are sending mail with results at report@fotonower.com args[1355992949] : ('0.040894796867475984',) no score found for photo 1355992949 We are sending mail with results at report@fotonower.com args[1355992944] : ('0.040894796867475984',) no score found for photo 1355992944 We are sending mail with results at report@fotonower.com args[1355992918] : ('0.040894796867475984',) no score found for photo 1355992918 We are sending mail with results at report@fotonower.com args[1355992900] : ('0.040894796867475984',) no score found for photo 1355992900 We are sending mail with results at report@fotonower.com args[1355992898] : ('0.040894796867475984',) no score found for photo 1355992898 We are sending mail with results at report@fotonower.com refus_total : 0.040894796867475984 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=22669512 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_P22669512_05-05-2025_11_28_31.pdf results_Auto_P22669512_05-05-2025_11_28_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22669512_05-05-2025_11_28_31.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','22669512','results_Auto_P22669512_05-05-2025_11_28_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22669512_05-05-2025_11_28_31.pdf','pdf','','0.29','0.040894796867475984') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22669512]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898] map_info['map_portfolio_photo'] : {22669512: [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898, 1355992855, 1355992849, 1355992846, 1355992845, 1355992843, 1355992808, 1355992804, 1355992802, 1355992783, 1355992757, 1355992643, 1355992634, 1355992590, 1355992587, 1355992585, 1355992554, 1355992552, 1355992549, 1355992547, 1355992544, 1355992512, 1355992508, 1355992503, 1355992495, 1355992492, 1355992490, 1355992460, 1355992454, 1355992438, 1355992435, 1355992387, 1355992382, 1355992377, 1355992374, 1355992371, 1355992368, 1355992255, 1355992251, 1355992247, 1355992243, 1355992210, 1355992207, 1355992204, 1355992201, 1355992197, 1355992193, 1355992169, 1355992165, 1355992156]} final : False mtd_id 4302 list_pids : [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898] 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, '2792146') ('4302', '22669512', '1355993032', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992994', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992992', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992990', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992988', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992953', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992949', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992944', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992918', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992900', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992898', None, None, None, None, None, '2792146') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '22669512', '1355993032', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992994', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992992', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992990', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992988', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992953', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992949', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992944', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992918', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992900', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992898', None, None, None, None, None, '2792146')] time used for this insertion : 0.021111726760864258 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.755393028259277 time spend to save output : 0.02142047882080078 total time spend for step 4 : 5.776813507080078 step5:split_time_score Mon May 5 11:28:36 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 : ['22669512'] 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 : [('22669512',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22669512) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1355992994: {'path': 'temp/1746437310_136953_1355992994_60243c4250d01230e87316246ddbedbe.jpg', 'extension': 'jpg'}, 1355993032: {'path': 'temp/1746437310_136953_1355993032_89a41cdabc8ae0b6cd46da89d985d6a1.jpg', 'extension': 'jpg'}, 1355992898: {'path': 'temp/1746437310_136953_1355992898_a573552343836b037d258c79b17e6bba.jpg', 'extension': 'jpg'}, 1355992900: {'path': 'temp/1746437310_136953_1355992900_886ec573584726a18d66572e36416755.jpg', 'extension': 'jpg'}, 1355992918: {'path': 'temp/1746437310_136953_1355992918_8448e15c359d0083b31228e4553a9e96.jpg', 'extension': 'jpg'}, 1355992988: {'path': 'temp/1746437310_136953_1355992988_9f8fc93b9130b3612c5469dc1c7595b2.jpg', 'extension': 'jpg'}, 1355992990: {'path': 'temp/1746437310_136953_1355992990_1c855702c0fd7646688b5734fb668a85.jpg', 'extension': 'jpg'}, 1355992992: {'path': 'temp/1746437310_136953_1355992992_501d3196f1f846ada21dfa9adc07b315.jpg', 'extension': 'jpg'}, 1355992944: {'path': 'temp/1746437310_136953_1355992944_f8b8e3af1a6a30b518b042928a224b35.jpg', 'extension': 'jpg'}, 1355992949: {'path': 'temp/1746437310_136953_1355992949_ac6600a71624ba7a19a4f870292191d1.jpg', 'extension': 'jpg'}, 1355992953: {'path': 'temp/1746437310_136953_1355992953_f253847430cbf2f2e3ee3dd7c66869ad.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 = 22669512; (('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 = 22669512 group by h (('11', 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=22669512 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 (22669512) 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 (22669512) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05052025 22669512 Nombre de photos uploadées : 60 / 23040 (0%) 05052025 22669512 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 05052025 22669512 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1355992169, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/0d1656da197ec6dfb3e7c58beb6d3d79.jpg', 'username': None, 'uploaded_at': 1746436567, 'text': 'image_05052025_11_15_04_010151m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355992165, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/c0beb4153cfec6bafc0620192204449b.jpg', 'username': None, 'uploaded_at': 1746436567, 'text': 'image_05052025_11_15_14_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355992156, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/d50ad6a4306f30f301ed613a05be26da.jpg', 'username': None, 'uploaded_at': 1746436567, 'text': 'image_05052025_11_15_24_010132m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355992210, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/d6410251ac0546ecef65fa13ce3ae300.jpg', 'username': None, 'uploaded_at': 1746436627, 'text': 'image_05052025_11_15_53_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027818679809570312 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22669512, '2025-05-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1773347,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026156902313232422 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= 1773347 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22656512, 'dashboard_result_id': 10291226, '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_P22656512_05-05-2025_05_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656524, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22656738, 'dashboard_result_id': 10291227, '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_P22656738_05-05-2025_05_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656779, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22657101, 'dashboard_result_id': 10291228, '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_P22657101_05-05-2025_05_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22657131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657140, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22657344, 'dashboard_result_id': 10291229, '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_P22657344_05-05-2025_06_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22657378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657389, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22658111, 'dashboard_result_id': 10291230, '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_P22658111_05-05-2025_06_21_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658147, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22658598, 'dashboard_result_id': 10291231, '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_P22658598_05-05-2025_06_35_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658634, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22658886, 'dashboard_result_id': 10291232, '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_P22658886_05-05-2025_06_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658922, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22659324, 'dashboard_result_id': 10291233, '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_P22659324_05-05-2025_07_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22659330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659341, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22659888, 'dashboard_result_id': 10291234, '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_P22659888_05-05-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22659918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659928, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22660372, 'dashboard_result_id': 10291235, '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_P22660372_05-05-2025_07_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22660402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660408, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660413, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22660885, 'dashboard_result_id': 10291236, '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_P22660885_05-05-2025_07_47_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22660895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660901, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22661429, 'dashboard_result_id': 10291237, '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_P22661429_05-05-2025_08_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22661469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22661470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22661471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22661472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22661473, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22661474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22661475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22661476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22661477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22661478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22661479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22661480, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22661981, 'dashboard_result_id': 10291238, '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_P22661981_05-05-2025_08_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662023, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22662597, 'dashboard_result_id': 10291239, '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_P22662597_05-05-2025_08_37_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22662600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662611, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22662926, 'dashboard_result_id': 10291240, '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_P22662926_05-05-2025_08_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662993, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22663690, 'dashboard_result_id': 10291241, '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_P22663690_05-05-2025_09_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22663759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22663760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22663761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22663762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22663763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22663764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22663765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22663766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22663767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22663768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22663769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22663770, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22665500, 'dashboard_result_id': 10291242, '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_P22665500_05-05-2025_09_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22665502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22665503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22665504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22665505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22665506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22665507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22665508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22665509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22665510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22665511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22665512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22665513, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22666082, 'dashboard_result_id': 10291243, '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_P22666082_05-05-2025_10_04_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22666113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666124, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22666582, 'dashboard_result_id': 10291244, '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_P22666582_05-05-2025_10_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22666600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666606, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22667066, 'dashboard_result_id': 10291245, '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_P22667066_05-05-2025_10_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22667075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667082, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22667518, 'dashboard_result_id': 10291246, '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_P22667518_05-05-2025_10_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22667549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667560, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22668049, 'dashboard_result_id': 10291247, '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_P22668049_05-05-2025_11_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668074, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22668860, 'dashboard_result_id': 10291248, '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_P22668860_05-05-2025_11_21_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668873, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1781821, 'mtr_portfolio_id': 22669512, 'dashboard_result_id': 10291249, '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_P22669512_05-05-2025_11_27_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22669515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22669516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22669517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22669518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22669519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22669520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22669521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22669522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22669523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22669524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22669525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22669526, '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 = 22656512 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': 2790605, 'mtr_portfolio_id': 22656512, 'created_at': datetime.datetime(2025, 5, 5, 5, 16, 59), 'result': '0.04721398970370186', 'result_long': None, 'result_double': None}] Qualite : 0.04721398970370186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22656512 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656512_05-05-2025_05_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22656512 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_P22656512_05-05-2025_05_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656524, 'pht': 3726}}" where mtr_portfolio_id = 22656512 and dashboard_run_id = 1781821 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`=22656512 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291226, 0.04721398970370186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656512_05-05-2025_05_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656524, '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 = 22656738 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': 2790633, 'mtr_portfolio_id': 22656738, 'created_at': datetime.datetime(2025, 5, 5, 5, 33, 2), 'result': '0.044902825441404885', 'result_long': None, 'result_double': None}] Qualite : 0.044902825441404885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22656738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656738_05-05-2025_05_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22656738 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_P22656738_05-05-2025_05_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656779, 'pht': 3726}}" where mtr_portfolio_id = 22656738 and dashboard_run_id = 1781821 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`=22656738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291227, 0.044902825441404885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656738_05-05-2025_05_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656779, '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 = 22657101 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': 2790682, 'mtr_portfolio_id': 22657101, 'created_at': datetime.datetime(2025, 5, 5, 5, 48, 59), 'result': '0.03862693518375298', 'result_long': None, 'result_double': None}] Qualite : 0.03862693518375298 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22657101 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657101_05-05-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22657101 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_P22657101_05-05-2025_05_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22657131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657140, 'pht': 3726}}" where mtr_portfolio_id = 22657101 and dashboard_run_id = 1781821 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`=22657101 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291228, 0.03862693518375298, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657101_05-05-2025_05_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22657131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657140, '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 = 22657344 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': 2790724, 'mtr_portfolio_id': 22657344, 'created_at': datetime.datetime(2025, 5, 5, 6, 2, 59), 'result': '0.033258579014462025', 'result_long': None, 'result_double': None}] Qualite : 0.033258579014462025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22657344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657344_05-05-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22657344 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_P22657344_05-05-2025_06_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22657378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657389, 'pht': 3726}}" where mtr_portfolio_id = 22657344 and dashboard_run_id = 1781821 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`=22657344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291229, 0.033258579014462025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657344_05-05-2025_06_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22657378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657389, '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 = 22658111 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': 2790822, 'mtr_portfolio_id': 22658111, 'created_at': datetime.datetime(2025, 5, 5, 6, 21), 'result': '0.03594302952275285', 'result_long': None, 'result_double': None}] Qualite : 0.03594302952275285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22658111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658111_05-05-2025_06_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22658111 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_P22658111_05-05-2025_06_21_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658147, 'pht': 3726}}" where mtr_portfolio_id = 22658111 and dashboard_run_id = 1781821 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`=22658111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291230, 0.03594302952275285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658111_05-05-2025_06_21_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658147, '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 = 22658598 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': 2790864, 'mtr_portfolio_id': 22658598, 'created_at': datetime.datetime(2025, 5, 5, 6, 35, 1), 'result': '0.04051986389735096', 'result_long': None, 'result_double': None}] Qualite : 0.04051986389735096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22658598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658598_05-05-2025_06_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22658598 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_P22658598_05-05-2025_06_35_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658634, 'pht': 3726}}" where mtr_portfolio_id = 22658598 and dashboard_run_id = 1781821 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`=22658598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291231, 0.04051986389735096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658598_05-05-2025_06_35_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658634, '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 = 22658886 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': 2790904, 'mtr_portfolio_id': 22658886, 'created_at': datetime.datetime(2025, 5, 5, 6, 48, 57), 'result': '0.02953903300490826', 'result_long': None, 'result_double': None}] Qualite : 0.02953903300490826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22658886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658886_05-05-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22658886 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_P22658886_05-05-2025_06_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658922, 'pht': 3726}}" where mtr_portfolio_id = 22658886 and dashboard_run_id = 1781821 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`=22658886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291232, 0.02953903300490826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658886_05-05-2025_06_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658922, '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 = 22659324 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': 2790952, 'mtr_portfolio_id': 22659324, 'created_at': datetime.datetime(2025, 5, 5, 7, 3), 'result': '0.04018381532901907', 'result_long': None, 'result_double': None}] Qualite : 0.04018381532901907 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22659324 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659324_05-05-2025_07_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22659324 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_P22659324_05-05-2025_07_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22659330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659341, 'pht': 3726}}" where mtr_portfolio_id = 22659324 and dashboard_run_id = 1781821 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`=22659324 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291233, 0.04018381532901907, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659324_05-05-2025_07_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22659330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659341, '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 = 22659888 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': 2791020, 'mtr_portfolio_id': 22659888, 'created_at': datetime.datetime(2025, 5, 5, 7, 16, 59), 'result': '0.0353694812987911', 'result_long': None, 'result_double': None}] Qualite : 0.0353694812987911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22659888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659888_05-05-2025_07_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22659888 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_P22659888_05-05-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22659918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659928, 'pht': 3726}}" where mtr_portfolio_id = 22659888 and dashboard_run_id = 1781821 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`=22659888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291234, 0.0353694812987911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659888_05-05-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22659918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659928, '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 = 22660372 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': 2791073, 'mtr_portfolio_id': 22660372, 'created_at': datetime.datetime(2025, 5, 5, 7, 32, 59), 'result': '0.05063656606150204', 'result_long': None, 'result_double': None}] Qualite : 0.05063656606150204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22660372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22660372_05-05-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22660372 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_P22660372_05-05-2025_07_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22660402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660408, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660413, 'pht': 3726}}" where mtr_portfolio_id = 22660372 and dashboard_run_id = 1781821 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`=22660372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291235, 0.05063656606150204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22660372_05-05-2025_07_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22660402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660404, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660406, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660408, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660413, '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 = 22660885 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': 2791135, 'mtr_portfolio_id': 22660885, 'created_at': datetime.datetime(2025, 5, 5, 7, 47, 31), 'result': '0.036893943098758986', 'result_long': None, 'result_double': None}] Qualite : 0.036893943098758986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22660885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22660885_05-05-2025_07_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22660885 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_P22660885_05-05-2025_07_47_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22660895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660901, 'pht': 3726}}" where mtr_portfolio_id = 22660885 and dashboard_run_id = 1781821 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`=22660885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291236, 0.036893943098758986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22660885_05-05-2025_07_47_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22660890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22660891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22660892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22660893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22660894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22660895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22660896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22660897, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22660898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22660899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22660900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22660901, '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 = 22661429 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': 2791189, 'mtr_portfolio_id': 22661429, 'created_at': datetime.datetime(2025, 5, 5, 8, 5), 'result': '0.03452788195794878', 'result_long': None, 'result_double': None}] Qualite : 0.03452788195794878 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22661429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22661429_05-05-2025_08_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22661429 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_P22661429_05-05-2025_08_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22661469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22661470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22661471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22661472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22661473, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22661474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22661475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22661476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22661477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22661478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22661479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22661480, 'pht': 3726}}" where mtr_portfolio_id = 22661429 and dashboard_run_id = 1781821 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`=22661429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291237, 0.03452788195794878, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22661429_05-05-2025_08_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22661469, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22661470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22661471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22661472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22661473, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22661474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22661475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22661476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22661477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22661478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22661479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22661480, '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 = 22661981 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': 2791260, 'mtr_portfolio_id': 22661981, 'created_at': datetime.datetime(2025, 5, 5, 8, 18, 58), 'result': '0.05349248364246182', 'result_long': None, 'result_double': None}] Qualite : 0.05349248364246182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22661981 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22661981_05-05-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22661981 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_P22661981_05-05-2025_08_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662023, 'pht': 3726}}" where mtr_portfolio_id = 22661981 and dashboard_run_id = 1781821 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`=22661981 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291238, 0.05349248364246182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22661981_05-05-2025_08_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662018, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662023, '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 = 22662597 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': 2791316, 'mtr_portfolio_id': 22662597, 'created_at': datetime.datetime(2025, 5, 5, 8, 36, 59), 'result': '0.051627280080513684', 'result_long': None, 'result_double': None}] Qualite : 0.051627280080513684 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22662597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22662597_05-05-2025_08_37_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22662597 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_P22662597_05-05-2025_08_37_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22662600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662611, 'pht': 3726}}" where mtr_portfolio_id = 22662597 and dashboard_run_id = 1781821 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`=22662597 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291239, 0.051627280080513684, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22662597_05-05-2025_08_37_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22662600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662611, '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 = 22662926 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': 2791398, 'mtr_portfolio_id': 22662926, 'created_at': datetime.datetime(2025, 5, 5, 8, 48, 57), 'result': '0.03515605504633129', 'result_long': None, 'result_double': None}] Qualite : 0.03515605504633129 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22662926 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22662926_05-05-2025_08_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22662926 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_P22662926_05-05-2025_08_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662993, 'pht': 3726}}" where mtr_portfolio_id = 22662926 and dashboard_run_id = 1781821 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`=22662926 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291240, 0.03515605504633129, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22662926_05-05-2025_08_48_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22662982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22662983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22662984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22662985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22662986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22662987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22662988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22662989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22662990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22662991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22662992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22662993, '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 = 22663690 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': 2791468, 'mtr_portfolio_id': 22663690, 'created_at': datetime.datetime(2025, 5, 5, 9, 4, 58), 'result': '0.039573436418510584', 'result_long': None, 'result_double': None}] Qualite : 0.039573436418510584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22663690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22663690_05-05-2025_09_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22663690 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_P22663690_05-05-2025_09_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22663759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22663760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22663761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22663762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22663763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22663764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22663765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22663766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22663767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22663768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22663769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22663770, 'pht': 3726}}" where mtr_portfolio_id = 22663690 and dashboard_run_id = 1781821 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`=22663690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291241, 0.039573436418510584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22663690_05-05-2025_09_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22663759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22663760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22663761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22663762, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22663763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22663764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22663765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22663766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22663767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22663768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22663769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22663770, '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 = 22665500 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': 2791637, 'mtr_portfolio_id': 22665500, 'created_at': datetime.datetime(2025, 5, 5, 9, 48, 57), 'result': '0.03405055145795254', 'result_long': None, 'result_double': None}] Qualite : 0.03405055145795254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22665500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22665500_05-05-2025_09_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22665500 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_P22665500_05-05-2025_09_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22665502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22665503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22665504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22665505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22665506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22665507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22665508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22665509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22665510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22665511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22665512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22665513, 'pht': 3726}}" where mtr_portfolio_id = 22665500 and dashboard_run_id = 1781821 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`=22665500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291242, 0.03405055145795254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22665500_05-05-2025_09_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22665502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22665503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22665504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22665505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22665506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22665507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22665508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22665509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22665510, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22665511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22665512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22665513, '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 = 22666082 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': 2791720, 'mtr_portfolio_id': 22666082, 'created_at': datetime.datetime(2025, 5, 5, 10, 4, 57), 'result': '0.020976144175548283', 'result_long': None, 'result_double': None}] Qualite : 0.020976144175548283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22666082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22666082_05-05-2025_10_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22666082 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_P22666082_05-05-2025_10_04_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22666113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666124, 'pht': 3726}}" where mtr_portfolio_id = 22666082 and dashboard_run_id = 1781821 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`=22666082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291243, 0.020976144175548283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22666082_05-05-2025_10_04_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22666113, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666124, '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 = 22666582 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': 2791799, 'mtr_portfolio_id': 22666582, 'created_at': datetime.datetime(2025, 5, 5, 10, 18, 58), 'result': '0.0273834156033583', 'result_long': None, 'result_double': None}] Qualite : 0.0273834156033583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22666582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22666582_05-05-2025_10_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22666582 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_P22666582_05-05-2025_10_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22666600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666606, 'pht': 3726}}" where mtr_portfolio_id = 22666582 and dashboard_run_id = 1781821 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`=22666582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291244, 0.0273834156033583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22666582_05-05-2025_10_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22666595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22666596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22666597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22666598, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22666599, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22666600, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22666601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22666602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22666603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22666604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22666605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22666606, '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 = 22667066 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': 2791856, 'mtr_portfolio_id': 22667066, 'created_at': datetime.datetime(2025, 5, 5, 10, 33), 'result': '0.05817544630807003', 'result_long': None, 'result_double': None}] Qualite : 0.05817544630807003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22667066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22667066_05-05-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22667066 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_P22667066_05-05-2025_10_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22667075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667082, 'pht': 3726}}" where mtr_portfolio_id = 22667066 and dashboard_run_id = 1781821 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`=22667066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291245, 0.05817544630807003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22667066_05-05-2025_10_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22667075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667077, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667082, '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 = 22667518 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': 2791919, 'mtr_portfolio_id': 22667518, 'created_at': datetime.datetime(2025, 5, 5, 10, 47), 'result': '0.04257231061769191', 'result_long': None, 'result_double': None}] Qualite : 0.04257231061769191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22667518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22667518_05-05-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22667518 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_P22667518_05-05-2025_10_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22667549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667560, 'pht': 3726}}" where mtr_portfolio_id = 22667518 and dashboard_run_id = 1781827 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`=22667518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291246, 0.04257231061769191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22667518_05-05-2025_10_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22667549, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22667550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22667551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22667552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22667553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22667554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22667555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22667556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22667557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22667558, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22667559, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22667560, '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 = 22668049 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': 2791988, 'mtr_portfolio_id': 22668049, 'created_at': datetime.datetime(2025, 5, 5, 11, 2, 59), 'result': '0.03885027893868257', 'result_long': None, 'result_double': None}] Qualite : 0.03885027893868257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22668049 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22668049_05-05-2025_11_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22668049 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_P22668049_05-05-2025_11_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668074, 'pht': 3726}}" where mtr_portfolio_id = 22668049 and dashboard_run_id = 1781827 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`=22668049 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291247, 0.03885027893868257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22668049_05-05-2025_11_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668069, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668074, '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 = 22668860 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': 2792074, 'mtr_portfolio_id': 22668860, 'created_at': datetime.datetime(2025, 5, 5, 11, 21), 'result': '0.03831666781343927', 'result_long': None, 'result_double': None}] Qualite : 0.03831666781343927 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22668860 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22668860_05-05-2025_11_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22668860 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_P22668860_05-05-2025_11_21_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668873, 'pht': 3726}}" where mtr_portfolio_id = 22668860 and dashboard_run_id = 1781827 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`=22668860 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291248, 0.03831666781343927, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22668860_05-05-2025_11_21_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22668862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22668863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22668864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22668865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22668866, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22668867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22668868, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22668869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22668870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22668871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22668872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22668873, '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 = 22669512 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': 2792146, 'mtr_portfolio_id': 22669512, 'created_at': datetime.datetime(2025, 5, 5, 11, 28, 30), 'result': '0.040894796867475984', 'result_long': None, 'result_double': None}] Qualite : 0.040894796867475984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22669512 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22669512_05-05-2025_11_28_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22669512 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_P22669512_05-05-2025_11_28_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22669515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22669516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22669517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22669518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22669519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22669520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22669521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22669522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22669523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22669524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22669525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22669526, 'pht': 3726}}" where mtr_portfolio_id = 22669512 and dashboard_run_id = 1781827 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`=22669512 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10291249, 0.040894796867475984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22669512_05-05-2025_11_28_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22669515, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22669516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22669517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22669518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22669519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22669520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22669521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22669522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22669523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22669524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22669525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22669526, '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 (22656512,22656738,22657101,22657344,22658111,22658598,22658886,22659324,22659888,22660372,22660885,22661429,22661981,22662597,22662926,22663690,22665500,22666082,22666582,22667066,22667518,22668049,22668860,22669512) result : ((1355938842,), (1355938860,), (1355938880,), (1355938885,), (1355938918,), (1355938921,), (1355938993,), (1355938995,), (1355939010,), (1355939023,), (1355939025,), (1355939314,), (1355939315,), (1355939317,), (1355939355,), (1355939358,), (1355939360,), (1355939385,), (1355939387,), (1355939389,), (1355939405,), (1355939407,), (1355939409,), (1355939411,), (1355939426,), (1355939431,), (1355939434,), (1355939436,), (1355939438,), (1355939454,), (1355939456,), (1355939457,), (1355939458,), (1355939478,), (1355939479,), (1355939480,), (1355939575,), (1355939554,), (1355939558,), (1355939658,), (1355939661,), (1355939759,), (1355939760,), (1355939761,), (1355939889,), (1355939891,), (1355939893,), (1355939897,), (1355939899,), (1355939919,), (1355939973,), (1355940115,), (1355940162,), (1355940163,), (1355940164,), (1355940181,), (1355940182,), (1355940183,), (1355940184,), (1355940186,), (1355940188,), (1355940209,), (1355940212,), (1355940214,), (1355940216,), (1355940219,), (1355940238,), (1355940240,), (1355940241,), (1355940242,), (1355940277,), (1355940268,), (1355940270,), (1355940271,), (1355940272,), (1355940275,), (1355940301,), (1355940302,), (1355940303,), (1355940304,), (1355940306,), (1355940308,), (1355940338,), (1355940339,), (1355940340,), (1355940341,), (1355940383,), (1355940384,), (1355940385,), (1355940386,), (1355940388,), (1355940390,), (1355940413,), (1355940415,), (1355940417,), (1355940418,), (1355940442,), (1355940443,), (1355940444,), (1355940445,), (1355940446,), (1355940448,), (1355940467,), (1355940468,), (1355940469,), (1355940470,), (1355940492,), (1355940493,), (1355940494,), (1355940495,), (1355940497,), (1355940523,), (1355940524,), (1355940526,), (1355940529,), (1355940532,), (1355940534,), (1355940552,), (1355940553,), (1355940554,), (1355940555,), (1355940581,), (1355940582,), (1355940583,), (1355940584,), (1355940586,), (1355940588,), (1355940605,), (1355940606,), (1355940607,), (1355940608,), (1355940610,), (1355940612,), (1355940634,), (1355940636,), (1355940638,), (1355940639,), (1355940663,), (1355940665,), (1355940666,), (1355940668,), (1355940670,), (1355940672,), (1355940690,), (1355940691,), (1355940692,), (1355940693,), (1355940721,), (1355940714,), (1355940715,), (1355940716,), (1355940717,), (1355940742,), (1355940744,), (1355940745,), (1355940746,), (1355940747,), (1355940748,), (1355940761,), (1355940762,), (1355940763,), (1355940764,), (1355940796,), (1355940799,), (1355940801,), (1355940804,), (1355940807,), (1355940810,), (1355940829,), (1355940831,), (1355940833,), (1355940835,), (1355940866,), (1355940868,), (1355940870,), (1355940874,), (1355940877,), (1355940905,), (1355940906,), (1355940909,), (1355940911,), (1355940914,), (1355940917,), (1355940933,), (1355940935,), (1355940937,), (1355940939,), (1355940968,), (1355940970,), (1355940972,), (1355940975,), (1355940979,), (1355940983,), (1355940997,), (1355940999,), (1355941002,), (1355941005,), (1355941036,), (1355941038,), (1355941040,), (1355941042,), (1355941045,), (1355941048,), (1355941063,), (1355941065,), (1355941066,), (1355941068,), (1355941096,), (1355941099,), (1355941101,), (1355941102,), (1355941105,), (1355941108,), (1355941941,), (1355941946,), (1355941950,), (1355941955,), (1355942006,), (1355942035,), (1355942068,), (1355942143,), (1355942137,), (1355942793,), (1355943242,), (1355943296,), (1355943323,), (1355943679,), (1355943705,), (1355944150,), (1355944203,), (1355944253,), (1355944676,), (1355944686,), (1355944687,), (1355944692,), (1355944758,), (1355944779,), (1355944809,), (1355944836,), (1355944863,), (1355944866,), (1355945132,), (1355945165,), (1355945194,), (1355945225,), (1355945254,), (1355945282,), (1355945379,), (1355945381,), (1355945382,), (1355945384,), (1355945386,), (1355945523,), (1355945524,), (1355945525,), (1355945526,), (1355945527,), (1355945530,), (1355945557,), (1355945558,), (1355945559,), (1355945560,), (1355945588,), (1355945590,), (1355945591,), (1355945593,), (1355945595,), (1355945597,), (1355945627,), (1355945629,), (1355945630,), (1355945659,), (1355945660,), (1355945662,), (1355945663,), (1355945666,), (1355945670,), (1355945715,), (1355945707,), (1355945709,), (1355945710,), (1355945711,), (1355945713,), (1355945739,), (1355945740,), (1355945741,), (1355945778,), (1355945781,), (1355945783,), (1355945784,), (1355945786,), (1355945788,), (1355945811,), (1355945812,), (1355945813,), (1355945814,), (1355945817,), (1355945819,), (1355945846,), (1355945849,), (1355945851,), (1355945852,), (1355945885,), (1355945887,), (1355945888,), (1355945890,), (1355945892,), (1355945895,), (1355945917,), (1355945918,), (1355945919,), (1355945930,), (1355945943,), (1355945945,), (1355945946,), (1355945947,), (1355945950,), (1355945970,), (1355945971,), (1355945972,), (1355945973,), (1355945976,), (1355945980,), (1355946001,), (1355946003,), (1355946004,), (1355946006,), (1355946033,), (1355946035,), (1355946036,), (1355946039,), (1355946042,), (1355946049,), (1355946065,), (1355946067,), (1355946068,), (1355946070,), (1355946072,), (1355946110,), (1355946112,), (1355946113,), (1355946115,), (1355946117,), (1355946139,), (1355946141,), (1355946142,), (1355946146,), (1355946149,), (1355946154,), (1355946198,), (1355946201,), (1355946203,), (1355946208,), (1355946241,), (1355946237,), (1355946238,), (1355946239,), (1355946240,), (1355946264,), (1355946266,), (1355946269,), (1355946290,), (1355946292,), (1355946293,), (1355946295,), (1355946299,), (1355946318,), (1355946320,), (1355946322,), (1355946324,), (1355946328,), (1355946331,), (1355946354,), (1355946358,), (1355946360,), (1355946365,), (1355946387,), (1355946391,), (1355946393,), (1355946398,), (1355946402,), (1355946407,), (1355946429,), (1355946430,), (1355946431,), (1355946432,), (1355946473,), (1355946475,), (1355946477,), (1355946479,), (1355946483,), (1355946487,), (1355946512,), (1355946513,), (1355946515,), (1355946516,), (1355946547,), (1355946549,), (1355946550,), (1355946551,), (1355946554,), (1355946583,), (1355946584,), (1355946585,), (1355946586,), (1355946590,), (1355946622,), (1355946624,), (1355946625,), (1355946626,), (1355946659,), (1355946661,), (1355946662,), (1355946663,), (1355946667,), (1355946710,), (1355946715,), (1355946718,), (1355946721,), (1355946725,), (1355946757,), (1355946759,), (1355946760,), (1355946762,), (1355946766,), (1355946825,), (1355946808,), (1355946811,), (1355946819,), (1355946846,), (1355946847,), (1355946850,), (1355946890,), (1355946892,), (1355946893,), (1355946894,), (1355946895,), (1355946898,), (1355946923,), (1355946926,), (1355946929,), (1355946932,), (1355946959,), (1355946963,), (1355946965,), (1355946967,), (1355946971,), (1355946975,), (1355947017,), (1355947020,), (1355947023,), (1355947028,), (1355947031,), (1355947063,), (1355947066,), (1355947069,), (1355947075,), (1355947081,), (1355947085,), (1355947112,), (1355947115,), (1355947118,), (1355947121,), (1355947126,), (1355947129,), (1355947166,), (1355947168,), (1355947170,), (1355947172,), (1355947175,), (1355947221,), (1355947226,), (1355947229,), (1355947231,), (1355947236,), (1355947241,), (1355947274,), (1355947276,), (1355947278,), (1355947282,), (1355947286,), (1355947358,), (1355947389,), (1355947415,), (1355947440,), (1355947463,), (1355947466,), (1355947623,), (1355947650,), (1355947676,), (1355947703,), (1355948154,), (1355948161,), (1355948192,), (1355948196,), (1355948227,), (1355948230,), (1355948275,), (1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,), (1355949080,), (1355949082,), (1355949086,), (1355949134,), (1355949136,), (1355949138,), (1355949141,), (1355949145,), (1355949154,), (1355949185,), (1355949187,), (1355949191,), (1355949195,), (1355949257,), (1355949262,), (1355949266,), (1355949289,), (1355949294,), (1355949300,), (1355949330,), (1355949335,), (1355949341,), (1355949346,), (1355949350,), (1355949401,), (1355949405,), (1355949414,), (1355949420,), (1355949425,), (1355949430,), (1355949467,), (1355949469,), (1355949472,), (1355949479,), (1355949519,), (1355949522,), (1355949528,), (1355949535,), (1355949540,), (1355949543,), (1355949583,), (1355949588,), (1355949593,), (1355949597,), (1355949634,), (1355949637,), (1355949640,), (1355949643,), (1355949649,), (1355949685,), (1355949695,), (1355949706,), (1355949747,), (1355949751,), (1355949826,), (1355949831,), (1355949868,), (1355949973,), (1355949963,), (1355949968,), (1355950012,), (1355950016,), (1355950019,), (1355950025,), (1355950030,), (1355950034,), (1355950059,), (1355950063,), (1355950065,), (1355950068,), (1355950145,), (1355950160,), (1355950168,), (1355950176,), (1355950186,), (1355950206,), (1355950247,), (1355950268,), (1355950272,), (1355950291,), (1355950302,), (1355950305,), (1355950389,), (1355950395,), (1355950398,), (1355950406,), (1355950497,), (1355950502,), (1355950505,), (1355950514,), (1355950525,), (1355950538,), (1355950565,), (1355950567,), (1355950570,), (1355950572,), (1355950576,), (1355950645,), (1355950647,), (1355950651,), (1355950654,), (1355950658,), (1355950755,), (1355950758,), (1355950762,), (1355950766,), (1355950769,), (1355950904,), (1355950913,), (1355950922,), (1355950925,), (1355950929,), (1355950933,), (1355950960,), (1355950963,), (1355950967,), (1355950971,), (1355950977,), (1355951013,), (1355951017,), (1355951020,), (1355951023,), (1355951028,), (1355951089,), (1355951092,), (1355951096,), (1355951119,), (1355951126,), (1355951143,), (1355951235,), (1355951226,), (1355951230,), (1355951232,), (1355951332,), (1355951334,), (1355951338,), (1355951341,), (1355951345,), (1355951348,), (1355951403,), (1355951409,), (1355951413,), (1355951418,), (1355951423,), (1355951505,), (1355951508,), (1355951512,), (1355951515,), (1355951518,), (1355951618,), (1355951623,), (1355951625,), (1355951706,), (1355951708,), (1355951711,), (1355951714,), (1355951719,), (1355952074,), (1355952647,), (1355952690,), (1355953390,), (1355953449,), (1355953541,), (1355953600,), (1355953771,), (1355953976,), (1355953289,), (1355953340,), (1355954235,), (1355954269,), (1355954300,), (1355954317,), (1355954349,), (1355954895,), (1355954947,), (1355954998,), (1355955063,), (1355955120,), (1355955174,), (1355955699,), (1355955738,), (1355955791,), (1355955830,), (1355955853,), (1355955932,), (1355955959,), (1355955988,), (1355956024,), (1355956052,), (1355956087,), (1355956224,), (1355956228,), (1355956231,), (1355956248,), (1355956344,), (1355956349,), (1355956350,), (1355956353,), (1355956356,), (1355956363,), (1355956427,), (1355956430,), (1355956432,), (1355956435,), (1355956437,), (1355956463,), (1355956466,), (1355956468,), (1355956471,), (1355956477,), (1355956512,), (1355956514,), (1355956519,), (1355956522,), (1355956580,), (1355956585,), (1355956588,), (1355956590,), (1355956592,), (1355956596,), (1355956660,), (1355956665,), (1355956670,), (1355956673,), (1355956677,), (1355956681,), (1355956715,), (1355956718,), (1355956721,), (1355956724,), (1355956839,), (1355956842,), (1355956872,), (1355956878,), (1355956883,), (1355956892,), (1355956927,), (1355956931,), (1355956934,), (1355956999,), (1355956976,), (1355956980,), (1355956982,), (1355956987,), (1355956992,), (1355957041,), (1355957045,), (1355957049,), (1355957052,), (1355957383,), (1355957393,), (1355957395,), (1355957398,), (1355957400,), (1355957704,), (1355957732,), (1355957761,), (1355957786,), (1355957813,), (1355957841,), (1355958030,), (1355958034,), (1355958037,), (1355958042,), (1355958047,), (1355958118,), (1355958127,), (1355958131,), (1355958133,), (1355958141,), (1355958153,), (1355958221,), (1355958225,), (1355958229,), (1355958235,), (1355958576,), (1355958581,), (1355958631,), (1355958634,), (1355958639,), (1355958643,), (1355958649,), (1355958654,), (1355958686,), (1355958689,), (1355958692,), (1355958695,), (1355958724,), (1355958728,), (1355958731,), (1355958736,), (1355958740,), (1355958778,), (1355958785,), (1355958794,), (1355958801,), (1355958807,), (1355958810,), (1355958883,), (1355959025,), (1355959022,), (1355959064,), (1355959069,), (1355959073,), (1355959077,), (1355959082,), (1355959106,), (1355959110,), (1355959112,), (1355959143,), (1355959145,), (1355959148,), (1355959151,), (1355959228,), (1355959232,), (1355959237,), (1355959239,), (1355959241,), (1355959244,), (1355959269,), (1355959273,), (1355959277,), (1355959290,), (1355959295,), (1355959300,), (1355959329,), (1355959333,), (1355959338,), (1355959378,), (1355959381,), (1355959384,), (1355959387,), (1355959392,), (1355959396,), (1355959471,), (1355959476,), (1355959479,), (1355959485,), (1355959520,), (1355959524,), (1355959527,), (1355959531,), (1355959537,), (1355959541,), (1355959566,), (1355959576,), (1355959584,), (1355959590,), (1355959602,), (1355959607,), (1355959671,), (1355959674,), (1355959678,), (1355959682,), (1355959687,), (1355959692,), (1355959715,), (1355959718,), (1355959722,), (1355959725,), (1355959787,), (1355959766,), (1355959768,), (1355959771,), (1355959776,), (1355959780,), (1355959831,), (1355959842,), (1355959850,), (1355959855,), (1355960106,), (1355960126,), (1355960161,), (1355960195,), (1355960242,), (1355960302,), (1355960826,), (1355960859,), (1355960899,), (1355960950,), (1355961005,), (1355961405,), (1355961419,), (1355961433,), (1355961479,), (1355961553,), (1355961635,), (1355961789,), (1355961793,), (1355961808,), (1355961845,), (1355962085,), (1355962253,), (1355962262,), (1355962355,), (1355962363,), (1355962366,), (1355962394,), (1355962425,), (1355962453,), (1355962460,), (1355962465,), (1355962526,), (1355962531,), (1355962535,), (1355962542,), (1355962573,), (1355962600,), (1355963006,), (1355963056,), (1355963098,), (1355963130,), (1355963814,), (1355963879,), (1355963932,), (1355963961,), (1355964016,), (1355964457,), (1355964490,), (1355964519,), (1355964562,), (1355964800,), (1355964844,), (1355964880,), (1355964913,), (1355964942,), (1355965037,), (1355965432,), (1355965463,), (1355965495,), (1355965509,), (1355965525,), (1355965528,), (1355965535,), (1355965560,), (1355965567,), (1355965589,), (1355974331,), (1355974334,), (1355974362,), (1355974365,), (1355974368,), (1355974456,), (1355974532,), (1355974536,), (1355974539,), (1355974543,), (1355974616,), (1355974618,), (1355974621,), (1355974625,), (1355974629,), (1355974631,), (1355974651,), (1355974653,), (1355974656,), (1355974682,), (1355974685,), (1355974688,), (1355974691,), (1355974694,), (1355974699,), (1355974719,), (1355974721,), (1355974724,), (1355974729,), (1355974733,), (1355974769,), (1355974774,), (1355974777,), (1355974781,), (1355974788,), (1355974792,), (1355974854,), (1355974858,), (1355974862,), (1355974905,), (1355974910,), (1355974915,), (1355974919,), (1355974924,), (1355974929,), (1355974983,), (1355974986,), (1355974991,), (1355974995,), (1355975008,), (1355975012,), (1355975070,), (1355975082,), (1355975085,), (1355975331,), (1355975334,), (1355975351,), (1355975354,), (1355975359,), (1355975365,), (1355975410,), (1355975412,), (1355975418,), (1355975422,), (1355975429,), (1355975558,), (1355975584,), (1355975612,), (1355975643,), (1355975678,), (1355975709,), (1355975832,), (1355975823,), (1355975826,), (1355975829,), (1355975863,), (1355975868,), (1355975873,), (1355975876,), (1355975881,), (1355975886,), (1355975953,), (1355975960,), (1355975963,), (1355975968,), (1355975973,), (1355976001,), (1355976008,), (1355976012,), (1355976015,), (1355976070,), (1355976075,), (1355976079,), (1355976088,), (1355976097,), (1355976111,), (1355976226,), (1355976246,), (1355976250,), (1355976254,), (1355976422,), (1355976425,), (1355976428,), (1355976465,), (1355976510,), (1355976515,), (1355976544,), (1355976547,), (1355976551,), (1355976554,), (1355976591,), (1355976597,), (1355976599,), (1355976602,), (1355976605,), (1355976610,), (1355976647,), (1355976652,), (1355976656,), (1355976658,), (1355976688,), (1355976697,), (1355976700,), (1355976703,), (1355977206,), (1355978507,), (1355979109,), (1355979172,), (1355979203,), (1355979236,), (1355979494,), (1355979500,), (1355979535,), (1355979539,), (1355979545,), (1355979554,), (1355979763,), (1355979777,), (1355979803,), (1355979931,), (1355979933,), (1355979936,), (1355979939,), (1355979942,), (1355979945,), (1355979983,), (1355979988,), (1355979993,), (1355979998,), (1355980045,), (1355980049,), (1355980053,), (1355980057,), (1355980061,), (1355980065,), (1355980098,), (1355980100,), (1355980103,), (1355980106,), (1355980150,), (1355980153,), (1355980154,), (1355980164,), (1355980168,), (1355980173,), (1355980206,), (1355980210,), (1355980214,), (1355980219,), (1355980225,), (1355980290,), (1355980303,), (1355980315,), (1355980318,), (1355980342,), (1355980580,), (1355980600,), (1355980603,), (1355980604,), (1355980607,), (1355980643,), (1355980647,), (1355980648,), (1355980650,), (1355980689,), (1355980691,), (1355980695,), (1355980698,), (1355980702,), (1355980707,), (1355980747,), (1355980751,), (1355980754,), (1355980814,), (1355980818,), (1355980929,), (1355980910,), (1355980912,), (1355980915,), (1355980918,), (1355980923,), (1355981082,), (1355981084,), (1355981121,), (1355981142,), (1355981269,), (1355981273,), (1355981277,), (1355981279,), (1355981282,), (1355981286,), (1355981320,), (1355981339,), (1355981344,), (1355981345,), (1355981638,), (1355981751,), (1355981783,), (1355981812,), (1355981845,), (1355981875,), (1355981917,), (1355981920,), (1355981923,), (1355981926,), (1355981931,), (1355981942,), (1355981968,), (1355981972,), (1355981975,), (1355981977,), (1355982024,), (1355982027,), (1355982029,), (1355982031,), (1355982035,), (1355982041,), (1355982089,), (1355982092,), (1355982095,), (1355982096,), (1355982143,), (1355982146,), (1355982149,), (1355982152,), (1355982155,), (1355982160,), (1355982211,), (1355982214,), (1355982219,), (1355982222,), (1355982225,), (1355982272,), (1355982274,), (1355982280,), (1355982283,), (1355982285,), (1355982286,), (1355982330,), (1355982342,), (1355982348,), (1355982354,), (1355982401,), (1355982428,), (1355982433,), (1355982438,), (1355982446,), (1355982451,), (1355982460,), (1355982465,), (1355982468,), (1355982473,), (1355982548,), (1355982524,), (1355982530,), (1355982534,), (1355982538,), (1355982543,), (1355982585,), (1355982590,), (1355982595,), (1355982626,), (1355982810,), (1355982814,), (1355982819,), (1355982824,), (1355982828,), (1355982833,), (1355982896,), (1355982909,), (1355982913,), (1355982917,), (1355982923,), (1355982965,), (1355982969,), (1355982972,), (1355982985,), (1355982990,), (1355983008,), (1355983053,), (1355983057,), (1355983062,), (1355983178,), (1355983182,), (1355983187,), (1355983193,), (1355983233,), (1355983235,), (1355983238,), (1355983242,), (1355983245,), (1355983254,), (1355983284,), (1355983287,), (1355983291,), (1355983295,), (1355983302,), (1355983338,), (1355983341,), (1355983345,), (1355983348,), (1355983354,), (1355983361,), (1355983401,), (1355983403,), (1355983411,), (1355983415,), (1355983466,), (1355983469,), (1355983481,), (1355983486,), (1355983491,), (1355983544,), (1355983547,), (1355983552,), (1355983556,), (1355983561,), (1355983565,), (1355983597,), (1355983601,), (1355983605,), (1355983611,), (1355983617,), (1355983650,), (1355983654,), (1355983659,), (1355983664,), (1355983670,), (1355983676,), (1355983722,), (1355983717,), (1355983719,), (1355983768,), (1355983771,), (1355983774,), (1355983779,), (1355983784,), (1355983789,), (1355983812,), (1355983819,), (1355983821,), (1355983825,), (1355983829,), (1355983869,), (1355983876,), (1355983882,), (1355983884,), (1355983975,), (1355983978,), (1355983981,), (1355983985,), (1355983993,), (1355983998,), (1355984043,), (1355984083,), (1355984086,), (1355984104,), (1355984135,), (1355984159,), (1355984283,), (1355984287,), (1355984292,), (1355984298,), (1355984304,), (1355984308,), (1355984369,), (1355984374,), (1355984376,), (1355984379,), (1355984646,), (1355984652,), (1355984657,), (1355984660,), (1355984667,), (1355984671,), (1355984755,), (1355984760,), (1355984774,), (1355984780,), (1355984956,), (1355984962,), (1355984994,), (1355985021,), (1355985051,), (1355985166,), (1355985217,), (1355985257,), (1355985315,), (1355985398,), (1355985468,), (1355986063,), (1355986091,), (1355986119,), (1355986180,), (1355986209,), (1355986235,), (1355986917,), (1355986950,), (1355986983,), (1355987020,), (1355987055,), (1355987551,), (1355987475,), (1355987493,), (1355987499,), (1355987523,), (1355987728,), (1355987756,), (1355987778,), (1355987785,), (1355987798,), (1355988139,), (1355988174,), (1355988207,), (1355988241,), (1355988272,), (1355989526,), (1355989553,), (1355989584,), (1355989620,), (1355989655,), (1355989910,), (1355989937,), (1355989964,), (1355990045,), (1355990220,), (1355990371,), (1355990601,), (1355990664,), (1355990668,), (1355990695,), (1355990700,), (1355990724,), (1355990727,), (1355990729,), (1355990732,), (1355990735,), (1355990741,), (1355991019,), (1355991046,), (1355991076,), (1355991102,), (1355991132,), (1355991274,), (1355991276,), (1355991279,), (1355991283,), (1355991286,), (1355991290,), (1355991492,), (1355991500,), (1355991505,), (1355991517,), (1355991629,), (1355991639,), (1355991645,), (1355991648,), (1355991653,), (1355991656,), (1355991787,), (1355991790,), (1355991794,), (1355991796,), (1355991896,), (1355991943,), (1355991979,), (1355991987,), (1355991992,), (1355991995,), (1355992037,), (1355992042,), (1355992046,), (1355992052,), (1355992100,), (1355992105,), (1355992108,), (1355992112,), (1355992120,), (1355992123,), (1355992173,), (1355992156,), (1355992165,), (1355992169,), (1355992193,), (1355992197,), (1355992201,), (1355992204,), (1355992207,), (1355992210,), (1355992243,), (1355992247,), (1355992251,), (1355992255,), (1355992368,), (1355992371,), (1355992374,), (1355992377,), (1355992382,), (1355992387,), (1355992435,), (1355992438,), (1355992454,), (1355992460,), (1355992490,), (1355992492,), (1355992495,), (1355992503,), (1355992508,), (1355992512,), (1355992544,), (1355992547,), (1355992549,), (1355992552,), (1355992554,), (1355992585,), (1355992587,), (1355992590,), (1355992634,), (1355992643,), (1355992757,), (1355992783,), (1355992802,), (1355992804,), (1355992808,), (1355992843,), (1355992845,), (1355992846,), (1355992849,), (1355992855,), (1355992898,), (1355992900,), (1355992918,), (1355992944,), (1355992949,), (1355992953,), (1355992988,), (1355992990,), (1355992992,), (1355992994,), (1355993032,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05052025': {'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([22669512]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898] map_info['map_portfolio_photo'] : {22669512: [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898, 1355992855, 1355992849, 1355992846, 1355992845, 1355992843, 1355992808, 1355992804, 1355992802, 1355992783, 1355992757, 1355992643, 1355992634, 1355992590, 1355992587, 1355992585, 1355992554, 1355992552, 1355992549, 1355992547, 1355992544, 1355992512, 1355992508, 1355992503, 1355992495, 1355992492, 1355992490, 1355992460, 1355992454, 1355992438, 1355992435, 1355992387, 1355992382, 1355992377, 1355992374, 1355992371, 1355992368, 1355992255, 1355992251, 1355992247, 1355992243, 1355992210, 1355992207, 1355992204, 1355992201, 1355992197, 1355992193, 1355992169, 1355992165, 1355992156]} final : True mtd_id 4302 list_pids : [1355993032, 1355992994, 1355992992, 1355992990, 1355992988, 1355992953, 1355992949, 1355992944, 1355992918, 1355992900, 1355992898] Looping around the photos to save general results len do output : 1 /22669512Didn'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, '2792146') ('4302', '22669512', '1355993032', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992994', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992992', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992990', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992988', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992953', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992949', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992944', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992918', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992900', None, None, None, None, None, '2792146') ('4302', None, None, None, None, None, None, None, '2792146') ('4302', '22669512', '1355992898', None, None, None, None, None, '2792146') 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', None, '22669512', 'None', None, None, None, None, '2792146'), ('4302', '22669512', '1355993032', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992994', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992992', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992990', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992988', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992953', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992949', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992944', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992918', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992900', None, None, None, None, None, '2792146'), ('4302', '22669512', '1355992898', None, None, None, None, None, '2792146')] time used for this insertion : 0.01672077178955078 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5160105228424072 time spend to save output : 0.016955137252807617 total time spend for step 5 : 1.5329656600952148 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 (2792146) 2.75user 1.93system 0:13.11elapsed 35%CPU (0avgtext+0avgdata 160796maxresident)k 21600inputs+15304outputs (100major+79119minor)pagefaults 0swaps