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 : 1684655 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 (4318586) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4318586) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993483 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4318586'] with mtr_portfolio_ids : ['29993483'] and first list_photo_ids : [] new path : /proc/1684655/ Name: python3 Umask: 0002 State: R (running) Tgid: 1684655 Ngid: 0 Pid: 1684655 PPid: 1684654 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1684655 NSpid: 1684655 NSpgid: 1683452 NSsid: 1683452 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105320 kB VmRSS: 105320 kB RssAnon: 66300 kB RssFile: 39020 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 41 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1684655', 'Ngid': '0', 'Pid': '1684655', 'PPid': '1684654', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1684655', 'NSpid': '1684655', 'NSpgid': '1683452', 'NSsid': '1683452', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105320 kB', 'VmRSS': '105320 kB', 'RssAnon': '66300 kB', 'RssFile': '39020 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '41', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '1684655', '1113368', '0', '1113368', '872096', '105320', b'', 'marlene', '4318586') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29993483) 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 (4318586 ) ) 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 (29993483) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402699280, 'portfolio_id': 29993483}, {'photo_id': 1402699136, 'portfolio_id': 29993483}, {'photo_id': 1402699104, 'portfolio_id': 29993483}, {'photo_id': 1402699072, 'portfolio_id': 29993483}, {'photo_id': 1402699056, 'portfolio_id': 29993483}, {'photo_id': 1402699037, 'portfolio_id': 29993483}, {'photo_id': 1402699001, 'portfolio_id': 29993483}, {'photo_id': 1402698718, 'portfolio_id': 29993483}, {'photo_id': 1402698674, 'portfolio_id': 29993483}, {'photo_id': 1402698535, 'portfolio_id': 29993483}, {'photo_id': 1402698392, 'portfolio_id': 29993483}, {'photo_id': 1402698254, 'portfolio_id': 29993483}, {'photo_id': 1402698214, 'portfolio_id': 29993483}, {'photo_id': 1402697980, 'portfolio_id': 29993483}, {'photo_id': 1402697941, 'portfolio_id': 29993483}, {'photo_id': 1402697909, 'portfolio_id': 29993483}, {'photo_id': 1402697877, 'portfolio_id': 29993483}, {'photo_id': 1402697531, 'portfolio_id': 29993483}, {'photo_id': 1402697497, 'portfolio_id': 29993483}, {'photo_id': 1402697467, 'portfolio_id': 29993483}, {'photo_id': 1402697434, 'portfolio_id': 29993483}, {'photo_id': 1402697400, 'portfolio_id': 29993483}, {'photo_id': 1402697332, 'portfolio_id': 29993483}, {'photo_id': 1402697306, 'portfolio_id': 29993483}, {'photo_id': 1402697300, 'portfolio_id': 29993483}, {'photo_id': 1402696744, 'portfolio_id': 29993483}, {'photo_id': 1402696633, 'portfolio_id': 29993483}, {'photo_id': 1402696615, 'portfolio_id': 29993483}, {'photo_id': 1402696614, 'portfolio_id': 29993483}, {'photo_id': 1402696384, 'portfolio_id': 29993483}, {'photo_id': 1402696381, 'portfolio_id': 29993483}, {'photo_id': 1402696380, 'portfolio_id': 29993483}, {'photo_id': 1402696379, 'portfolio_id': 29993483}, {'photo_id': 1402696173, 'portfolio_id': 29993483}, {'photo_id': 1402696138, 'portfolio_id': 29993483}, {'photo_id': 1402696103, 'portfolio_id': 29993483}, {'photo_id': 1402696069, 'portfolio_id': 29993483}, {'photo_id': 1402696034, 'portfolio_id': 29993483}, {'photo_id': 1402696002, 'portfolio_id': 29993483}, {'photo_id': 1402695459, 'portfolio_id': 29993483}, {'photo_id': 1402695424, 'portfolio_id': 29993483}, {'photo_id': 1402695390, 'portfolio_id': 29993483}, {'photo_id': 1402695078, 'portfolio_id': 29993483}, {'photo_id': 1402695075, 'portfolio_id': 29993483}, {'photo_id': 1402695073, 'portfolio_id': 29993483}, {'photo_id': 1402695071, 'portfolio_id': 29993483}, {'photo_id': 1402694802, 'portfolio_id': 29993483}, {'photo_id': 1402694754, 'portfolio_id': 29993483}, {'photo_id': 1402694672, 'portfolio_id': 29993483}, {'photo_id': 1402694627, 'portfolio_id': 29993483}, {'photo_id': 1402693726, 'portfolio_id': 29993483}, {'photo_id': 1402693695, 'portfolio_id': 29993483}, {'photo_id': 1402693663, 'portfolio_id': 29993483}, {'photo_id': 1402693625, 'portfolio_id': 29993483}, {'photo_id': 1402692954, 'portfolio_id': 29993483}, {'photo_id': 1402692919, 'portfolio_id': 29993483}] map_portfolio_id_photo_id: {29993483: [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214, 1402697980, 1402697941, 1402697909, 1402697877, 1402697531, 1402697497, 1402697467, 1402697434, 1402697400, 1402697332, 1402697306, 1402697300, 1402696744, 1402696633, 1402696615, 1402696614, 1402696384, 1402696381, 1402696380, 1402696379, 1402696173, 1402696138, 1402696103, 1402696069, 1402696034, 1402696002, 1402695459, 1402695424, 1402695390, 1402695078, 1402695075, 1402695073, 1402695071, 1402694802, 1402694754, 1402694672, 1402694627, 1402693726, 1402693695, 1402693663, 1402693625, 1402692954, 1402692919]} ##### 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.021213293075561523 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Jan 6 22:14:58 2026 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 (29993483) 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 : 29993483 get user id for portfolio 29993483 get sub ptf for main ptf 29993483, type 3726 and hashtags ['environnement', 'plastique', 'Carton_gris', 'metal', 'flou', 'Carton_brun', 'mal_croppe', 'cartonnette', 'autre_refus', 'papier', 'kraft', 'Teint_Dans_La_Masse'] 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`=29993483 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_gris','metal','flou','Carton_brun','mal_croppe','cartonnette','autre_refus','papier','kraft','Teint_Dans_La_Masse')) 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`=29993483 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_gris','metal','flou','Carton_brun','mal_croppe','cartonnette','autre_refus','papier','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29993483, 'sub_port_id': 29993503, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525617, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}, 'autre_refus': {'main_port_id': 29993483, 'sub_port_id': 29993504, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525618, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}, 'flou': {'main_port_id': 29993483, 'sub_port_id': 29993505, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525619, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}, 'environnement': {'main_port_id': 29993483, 'sub_port_id': 29993507, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525620, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}, 'kraft': {'main_port_id': 29993483, 'sub_port_id': 29993508, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525621, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}, 'Carton_brun': {'main_port_id': 29993483, 'sub_port_id': 29993509, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525622, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}, 'papier': {'main_port_id': 29993483, 'sub_port_id': 29993510, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525623, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}, 'plastique': {'main_port_id': 29993483, 'sub_port_id': 29993511, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525624, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}, 'metal': {'main_port_id': 29993483, 'sub_port_id': 29993512, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525625, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}, 'mal_croppe': {'main_port_id': 29993483, 'sub_port_id': 29993513, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525626, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29993483, 'sub_port_id': 29993514, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525627, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}, 'Carton_gris': {'main_port_id': 29993483, 'sub_port_id': 29993515, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525628, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29993503 , 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=29993483 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 (29993503) result : ((1402695884,), (1402697352,), (1402697960,), (1402699189,), (1402699192,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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 29993504 , 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=29993483 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 (29993504) result : ((1402698045,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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 29993505 , 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=29993483 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 (29993505) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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 29993507 , 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=29993483 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 (29993507) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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 29993508 , 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=29993483 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 (29993508) result : ((1402696377,), (1402698088,), (1402698090,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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 29993509 , 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=29993483 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 (29993509) result : ((1402695895,), (1402695897,), (1402695899,), (1402697354,), (1402697355,), (1402697356,), (1402698061,), (1402698063,), (1402698065,), (1402698067,), (1402698069,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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 29993510 , 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=29993483 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 (29993510) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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 29993511 , 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=29993483 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 (29993511) result : ((1402696374,), (1402696375,), (1402696376,), (1402696608,), (1402696609,), (1402696610,), (1402696611,), (1402696612,), (1402696613,), (1402697969,), (1402698079,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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 29993512 , 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=29993483 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 (29993512) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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 29993513 , 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=29993483 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 (29993513) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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 29993514 , 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=29993483 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 (29993514) result : ((1402696373,), (1402696597,), (1402696598,), (1402696599,), (1402696600,), (1402697942,), (1402697944,), (1402697946,), (1402697948,), (1402697950,), (1402698038,), (1402698039,), (1402698040,), (1402698041,), (1402698042,), (1402698044,), (1402699180,), (1402699182,), (1402699183,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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 29993515 , 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=29993483 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 (29993515) result : ((1402695874,), (1402697348,), (1402698046,), (1402698047,), (1402699185,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29993483) result : ((1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) 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 (1402697400,1402697300) 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`=29993483 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_gris','metal','flou','Carton_brun','mal_croppe','cartonnette','autre_refus','papier','kraft','Teint_Dans_La_Masse')) 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`=29993483 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','Carton_gris','metal','flou','Carton_brun','mal_croppe','cartonnette','autre_refus','papier','kraft','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29993483, 'sub_port_id': 29993517, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525629, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}, 'autre_refus': {'main_port_id': 29993483, 'sub_port_id': 29993518, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525630, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}, 'flou': {'main_port_id': 29993483, 'sub_port_id': 29993520, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525631, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}, 'environnement': {'main_port_id': 29993483, 'sub_port_id': 29993521, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525632, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}, 'kraft': {'main_port_id': 29993483, 'sub_port_id': 29993522, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525633, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}, 'Carton_brun': {'main_port_id': 29993483, 'sub_port_id': 29993523, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525634, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}, 'papier': {'main_port_id': 29993483, 'sub_port_id': 29993524, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525635, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}, 'plastique': {'main_port_id': 29993483, 'sub_port_id': 29993525, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525636, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}, 'metal': {'main_port_id': 29993483, 'sub_port_id': 29993526, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525637, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}, 'mal_croppe': {'main_port_id': 29993483, 'sub_port_id': 29993527, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525638, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 29993483, 'sub_port_id': 29993528, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525639, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 3, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}, 'Carton_gris': {'main_port_id': 29993483, 'sub_port_id': 29993529, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20525640, 'last_updated_at': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 22, 12, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 22, 3, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993517,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993503 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993518,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993504 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993520,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993505 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993521,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993507 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993522,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993508 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993523,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993509 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993524,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993510 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993525,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993511 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993526,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993512 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993527,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993513 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993528,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993514 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29993529,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29993515 lien utilise dans velours : https://marlene.fotonower.com/velours/29993517,29993518,29993520,29993521,29993522,29993523,29993524,29993525,29993526,29993527,29993528,29993529?tags=cartonnette,autre_refus,flou,environnement,kraft,Carton_brun,papier,plastique,metal,mal_croppe,Teint_Dans_La_Masse,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29993483]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214] map_info['map_portfolio_photo'] : {29993483: [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214, 1402697980, 1402697941, 1402697909, 1402697877, 1402697531, 1402697497, 1402697467, 1402697434, 1402697400, 1402697332, 1402697306, 1402697300, 1402696744, 1402696633, 1402696615, 1402696614, 1402696384, 1402696381, 1402696380, 1402696379, 1402696173, 1402696138, 1402696103, 1402696069, 1402696034, 1402696002, 1402695459, 1402695424, 1402695390, 1402695078, 1402695075, 1402695073, 1402695071, 1402694802, 1402694754, 1402694672, 1402694627, 1402693726, 1402693695, 1402693663, 1402693625, 1402692954, 1402692919]} final : False mtd_id 4302 list_pids : [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214] Looping around the photos to save general results len do output : 1 /29993483. 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, '4318586') ('4302', '29993483', '1402699280', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699136', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699104', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699072', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699056', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699037', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699001', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698718', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698674', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698535', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698392', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698254', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698214', None, None, None, None, None, '4318586') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '29993483', "{'cartonnette': 29993503, 'autre_refus': 29993504, 'flou': 29993505, 'environnement': 29993507, 'kraft': 29993508, 'Carton_brun': 29993509, 'papier': 29993510, 'plastique': 29993511, 'metal': 29993512, 'mal_croppe': 29993513, 'Teint_Dans_La_Masse': 29993514, 'Carton_gris': 29993515}", None, None, None, None, '4318586'), ('4302', '29993483', '1402699280', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699136', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699104', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699072', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699056', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699037', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699001', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698718', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698674', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698535', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698392', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698254', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698214', None, None, None, None, None, '4318586')] time used for this insertion : 0.01579427719116211 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6404716968536377 time spend to save output : 0.016087770462036133 total time spend for step 1 : 0.6565594673156738 step2:final Tue Jan 6 22:14:58 2026 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 (29993483) 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 29993483 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402692954,1402692919,1402693726,1402693695,1402693663,1402693625,1402694802,1402694754,1402694672,1402694627,1402695078,1402695075,1402695073,1402695071,1402695459,1402695424,1402695390,1402696173,1402696138,1402696103,1402696069,1402696034,1402696002,1402696384,1402696381,1402696380,1402696379,1402696744,1402696633,1402696615,1402696614,1402697332,1402697306,1402697300,1402697531,1402697497,1402697467,1402697434,1402697400,1402699056,1402697980,1402697941,1402699037,1402697909,1402699001,1402697877,1402698718,1402698674,1402698535,1402698392,1402698254,1402698214,1402699136,1402699104,1402699072,1402699280); 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([29993483]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} new output for save of step final : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214] map_info['map_portfolio_photo'] : {29993483: [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214, 1402697980, 1402697941, 1402697909, 1402697877, 1402697531, 1402697497, 1402697467, 1402697434, 1402697400, 1402697332, 1402697306, 1402697300, 1402696744, 1402696633, 1402696615, 1402696614, 1402696384, 1402696381, 1402696380, 1402696379, 1402696173, 1402696138, 1402696103, 1402696069, 1402696034, 1402696002, 1402695459, 1402695424, 1402695390, 1402695078, 1402695075, 1402695073, 1402695071, 1402694802, 1402694754, 1402694672, 1402694627, 1402693726, 1402693695, 1402693663, 1402693625, 1402692954, 1402692919]} final : False mtd_id 4302 list_pids : [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214] Looping around the photos to save general results len do output : 13 /1402699280.Didn't retrieve data . /1402699136.Didn't retrieve data . /1402699104.Didn't retrieve data . /1402699072.Didn't retrieve data . /1402699056.Didn't retrieve data . /1402699037.Didn't retrieve data . /1402699001.Didn't retrieve data . /1402698718.Didn't retrieve data . /1402698674.Didn't retrieve data . /1402698535.Didn't retrieve data . /1402698392.Didn't retrieve data . /1402698254.Didn't retrieve data . /1402698214.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, '4318586') ('4302', '29993483', '1402699280', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699136', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699104', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699072', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699056', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699037', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699001', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698718', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698674', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698535', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698392', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698254', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698214', None, None, None, None, None, '4318586') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '29993483', '1402699280', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402699136', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402699104', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402699072', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402699056', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402699037', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402699001', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402698718', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402698674', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402698535', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402698392', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402698254', '0.04583944403635706', None, None, None, None, '4318586'), ('4302', '29993483', '1402698214', '0.04583944403635706', None, None, None, None, '4318586')] time used for this insertion : 0.019539356231689453 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08187222480773926 time spend to save output : 0.020145654678344727 total time spend for step 2 : 0.10201787948608398 step3:velours_tree Tue Jan 6 22:14:58 2026 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 : {29993483: [{'cartonnette': 29993503, 'autre_refus': 29993504, 'flou': 29993505, 'environnement': 29993507, 'kraft': 29993508, 'Carton_brun': 29993509, 'papier': 29993510, 'plastique': 29993511, 'metal': 29993512, 'mal_croppe': 29993513, 'Teint_Dans_La_Masse': 29993514, 'Carton_gris': 29993515}]} input_args_next_step : {29993483: ()} output_args : {29993483: [{'cartonnette': 29993503, 'autre_refus': 29993504, 'flou': 29993505, 'environnement': 29993507, 'kraft': 29993508, 'Carton_brun': 29993509, 'papier': 29993510, 'plastique': 29993511, 'metal': 29993512, 'mal_croppe': 29993513, 'Teint_Dans_La_Masse': 29993514, 'Carton_gris': 29993515}]} args : 29993483 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 : ({'cartonnette': 29993503, 'autre_refus': 29993504, 'flou': 29993505, 'environnement': 29993507, 'kraft': 29993508, 'Carton_brun': 29993509, 'papier': 29993510, 'plastique': 29993511, 'metal': 29993512, 'mal_croppe': 29993513, 'Teint_Dans_La_Masse': 29993514, 'Carton_gris': 29993515},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29993483) 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([29993483]) 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.24948477745056152 time spend to save output : 7.05718994140625e-05 total time spend for step 3 : 0.24955534934997559 step4:send_mail_cod Tue Jan 6 22:14:59 2026 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 : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} input_args_next_step : {1402699280: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402699280 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402699136 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402699104 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402699072 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402699056 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402699037 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402699001 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402698718 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402698674 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402698535 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402698392 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402698254 depend.output_id : 0 input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ()} output_args : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',)} args : 1402698214 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 : {29993483: [{'cartonnette': 29993503, 'autre_refus': 29993504, 'flou': 29993505, 'environnement': 29993507, 'kraft': 29993508, 'Carton_brun': 29993509, 'papier': 29993510, 'plastique': 29993511, 'metal': 29993512, 'mal_croppe': 29993513, 'Teint_Dans_La_Masse': 29993514, 'Carton_gris': 29993515}]} input_args_next_step : {1402699280: ('0.04583944403635706',), 1402699136: ('0.04583944403635706',), 1402699104: ('0.04583944403635706',), 1402699072: ('0.04583944403635706',), 1402699056: ('0.04583944403635706',), 1402699037: ('0.04583944403635706',), 1402699001: ('0.04583944403635706',), 1402698718: ('0.04583944403635706',), 1402698674: ('0.04583944403635706',), 1402698535: ('0.04583944403635706',), 1402698392: ('0.04583944403635706',), 1402698254: ('0.04583944403635706',), 1402698214: ('0.04583944403635706',), 29993483: ()} output_args : {29993483: [{'cartonnette': 29993503, 'autre_refus': 29993504, 'flou': 29993505, 'environnement': 29993507, 'kraft': 29993508, 'Carton_brun': 29993509, 'papier': 29993510, 'plastique': 29993511, 'metal': 29993512, 'mal_croppe': 29993513, 'Teint_Dans_La_Masse': 29993514, 'Carton_gris': 29993515}]} args : 29993483 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 :14, first value : ('0.04583944403635706',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29993483) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1402699280,1402699136,1402699104,1402699072,1402699056,1402699037,1402699001,1402698718,1402698674,1402698535,1402698392,1402698254,1402698214) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402698214 begin to download photo : 1402698535 begin to download photo : 1402699001 begin to download photo : 1402699072 begin to download photo : 1402699280 download finish for photo 1402699001 begin to download photo : 1402699037 download finish for photo 1402699280 download finish for photo 1402698535 begin to download photo : 1402698674 download finish for photo 1402698214 begin to download photo : 1402698254 download finish for photo 1402699072 begin to download photo : 1402699104 download finish for photo 1402698674 begin to download photo : 1402698718 download finish for photo 1402699104 begin to download photo : 1402699136 download finish for photo 1402699037 begin to download photo : 1402699056 download finish for photo 1402698254 begin to download photo : 1402698392 download finish for photo 1402699136 download finish for photo 1402699056 download finish for photo 1402698392 download finish for photo 1402698718 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P29993483_06-01-2026_22_14_59.pdf 29993503 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993503 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402695884: '1767733525_1022352_1402692919_dac28b1b23a4c0317b52d03a8b342711_rle_crop_4092012561_0.png', 1402697352: '1767733746_1032466_1402692919_dac28b1b23a4c0317b52d03a8b342711_rle_crop_4092012561_0.png', 1402697960: '1767733826_1037628_1402696614_a92821b8217d8f72de72f1af811bcd32_rle_crop_4092025699_0.png', 1402699189: '1767733986_1045437_1402696381_f1961ff828cee6cf666ae617c7b6ab45_rle_crop_4092027305_0.png', 1402699192: '1767733986_1045437_1402696380_139e314f9cc440edaf77b2282ce548a3_rle_crop_4092027319_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/55cc4d6e476fc4bbcab1d12d479bc4f4_2912616.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/55cc4d6e476fc4bbcab1d12d479bc4f4_19869236.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/aa6ae2e2e48d23b8f1d9df72447a1917_82604830.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/e62124fba6f65cafd76d71e490730374_2952868.png change filename to text .imagette299935031767734099/ imagette299935031767734099/1767733986_1045437_1402696381_f1961ff828cee6cf666ae617c7b6ab45_rle_crop_4092027305_0.png.png imagette299935031767734099/1767733525_1022352_1402692919_dac28b1b23a4c0317b52d03a8b342711_rle_crop_4092012561_0.png.png imagette299935031767734099/1767733986_1045437_1402696380_139e314f9cc440edaf77b2282ce548a3_rle_crop_4092027319_0.png.png imagette299935031767734099/1767733826_1037628_1402696614_a92821b8217d8f72de72f1af811bcd32_rle_crop_4092025699_0.png.png imagette299935031767734099/1767733746_1032466_1402692919_dac28b1b23a4c0317b52d03a8b342711_rle_crop_4092012561_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/bb4a1f60a094db1d9540702a5c1d7739_49625953.png imagette299935031767734099 29993504 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993504 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402698045: '1767733867_1038850_1402696069_59589ba84d041e2315a72ac14e2299ae_rle_crop_4092026986_0.png'} change filename to text .imagette299935041767734099/ imagette299935041767734099/1767733867_1038850_1402696069_59589ba84d041e2315a72ac14e2299ae_rle_crop_4092026986_0.png.png imagette299935051767734100/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/01ade591b7aac5865f4e854c4bd92ac1_17503667.png imagette299935041767734099 29993505 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993505 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299935051767734100 29993508 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993508 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402696377: '1767733587_1025986_1402695071_ace69e48ad6222fa73962586222b2ee9_rle_crop_4092015589_0.png', 1402698088: '1767733867_1038850_1402696034_4e4f6ad884889a8afea4350ca9b5f7ec_rle_crop_4092026994_0.png', 1402698090: '1767733867_1038850_1402696002_7992aa74b6f5d94eb9eb7b8bbfd054cf_rle_crop_4092027008_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/e380bf40290776ff6044c0334312e759_66983448.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/fa6e840c3322d5e5e0d1fb4a9ffb0ac4_74620902.png change filename to text .imagette299935081767734100/ imagette299935081767734100/1767733587_1025986_1402695071_ace69e48ad6222fa73962586222b2ee9_rle_crop_4092015589_0.png.png imagette299935081767734100/1767733867_1038850_1402696002_7992aa74b6f5d94eb9eb7b8bbfd054cf_rle_crop_4092027008_0.png.png imagette299935081767734100/1767733867_1038850_1402696034_4e4f6ad884889a8afea4350ca9b5f7ec_rle_crop_4092026994_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/38cdcb034f5920066380a1f603feaa04_85563501.png imagette299935081767734100 29993511 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993511 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402696374: '1767733587_1025986_1402695075_988495b9dec053ecf026cf8b0ced6107_rle_crop_4092015562_0.png', 1402696375: '1767733587_1025986_1402695075_988495b9dec053ecf026cf8b0ced6107_rle_crop_4092015563_0.png', 1402696376: '1767733587_1025986_1402695071_ace69e48ad6222fa73962586222b2ee9_rle_crop_4092015583_0.png', 1402696608: '1767733626_1026829_1402695078_96a6ad19a82caf33aa73cc58252f27ee_rle_crop_4092018331_0.png', 1402696609: '1767733626_1026829_1402695078_96a6ad19a82caf33aa73cc58252f27ee_rle_crop_4092018333_0.png', 1402696610: '1767733626_1026829_1402694754_2baf4d9d6f5e65d6f0ec90a9119c260a_rle_crop_4092018339_0.png', 1402696611: '1767733626_1026829_1402694754_2baf4d9d6f5e65d6f0ec90a9119c260a_rle_crop_4092018342_0.png', 1402696612: '1767733626_1026829_1402694672_ab709b19286e13003c7e50ba8b490a3a_rle_crop_4092019274_0.png', 1402696613: '1767733626_1026829_1402694627_cc0bda72668188af3b3893ecad02d916_rle_crop_4092019291_0.png', 1402697969: '1767733826_1037628_1402696633_1fbc31f45b6a95d26d9e87276e92973b_rle_crop_4092025668_0.png', 1402698079: '1767733867_1038850_1402696138_b807dabca2b5a28d370e76a19ae7a64e_rle_crop_4092026965_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/dcaa552bacaafb9668b9dc2f48bf06b2_34057544.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/dffa810fd3b58e4b32e8127392369035_31389750.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/da1164b6c70c207255fdef5f07d12f8c_54329128.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/01531c7e97c8d2f4e27295027ee60027_68995846.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/2f1225a63583300071ef746970c39581_17912853.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/b5fc38171788c8b5cb91a565cdc14d49_59518128.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/4c6ea004fc9cffb46c57dffb9c923ab2_67828797.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/c2a686b56d7069d452ac7c4ff1a7d080_36802898.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/ee7a486e6e6e0378cb25ea1fa9c53f26_91042761.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/7ab72682c40e073e5d28e5435d6e228d_68250566.png change filename to text .imagette299935111767734100/ imagette299935111767734100/1767733587_1025986_1402695075_988495b9dec053ecf026cf8b0ced6107_rle_crop_4092015563_0.png.png imagette299935111767734100/1767733867_1038850_1402696138_b807dabca2b5a28d370e76a19ae7a64e_rle_crop_4092026965_0.png.png imagette299935111767734100/1767733587_1025986_1402695071_ace69e48ad6222fa73962586222b2ee9_rle_crop_4092015583_0.png.png imagette299935111767734100/1767733626_1026829_1402694754_2baf4d9d6f5e65d6f0ec90a9119c260a_rle_crop_4092018342_0.png.png imagette299935111767734100/1767733826_1037628_1402696633_1fbc31f45b6a95d26d9e87276e92973b_rle_crop_4092025668_0.png.png imagette299935111767734100/1767733626_1026829_1402694754_2baf4d9d6f5e65d6f0ec90a9119c260a_rle_crop_4092018339_0.png.png imagette299935111767734100/1767733626_1026829_1402695078_96a6ad19a82caf33aa73cc58252f27ee_rle_crop_4092018333_0.png.png imagette299935111767734100/1767733587_1025986_1402695075_988495b9dec053ecf026cf8b0ced6107_rle_crop_4092015562_0.png.png imagette299935111767734100/1767733626_1026829_1402694627_cc0bda72668188af3b3893ecad02d916_rle_crop_4092019291_0.png.png imagette299935111767734100/1767733626_1026829_1402695078_96a6ad19a82caf33aa73cc58252f27ee_rle_crop_4092018331_0.png.png imagette299935111767734100/1767733626_1026829_1402694672_ab709b19286e13003c7e50ba8b490a3a_rle_crop_4092019274_0.png.png imagette299935121767734101/ imagette299935131767734101/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/ed7ce6d7c2d4ee4f38c1062607e4729b_62051464.png imagette299935111767734100 29993512 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993512 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299935121767734101 29993513 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993513 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299935131767734101 29993509 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993509 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402695895: '1767733525_1022352_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012552_0.png', 1402695897: '1767733525_1022352_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012554_0.png', 1402695899: '1767733525_1022352_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012551_0.png', 1402697354: '1767733746_1032466_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012552_0.png', 1402697355: '1767733746_1032466_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012554_0.png', 1402697356: '1767733746_1032466_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012551_0.png', 1402698061: '1767733867_1038850_1402696384_234302ef48a1ad67a66f0dc09ab745f4_rle_crop_4092026949_0.png', 1402698063: '1767733867_1038850_1402696384_234302ef48a1ad67a66f0dc09ab745f4_rle_crop_4092026945_0.png', 1402698065: '1767733867_1038850_1402696034_4e4f6ad884889a8afea4350ca9b5f7ec_rle_crop_4092026997_0.png', 1402698067: '1767733867_1038850_1402696034_4e4f6ad884889a8afea4350ca9b5f7ec_rle_crop_4092026996_0.png', 1402698069: '1767733867_1038850_1402696002_7992aa74b6f5d94eb9eb7b8bbfd054cf_rle_crop_4092027010_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/b013c4d187a269b9923974af88fa7db8_86209500.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/de89434c02c90044c4a59d692286b0e4_50244794.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/385e47a9ec66043c951884089bf2306e_64723920.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/b013c4d187a269b9923974af88fa7db8_32130337.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/de89434c02c90044c4a59d692286b0e4_49902321.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/385e47a9ec66043c951884089bf2306e_99435927.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6794bf67c5c8058abccac70526bf7527_44624008.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5dc4f4c151c289219994059c52ec12a6_95024151.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/72d9fcc6d18428067fd528741540056f_42680314.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/adba2b93ad6f430b6bdc4b5c074cb099_22459315.png change filename to text .imagette299935091767734101/ imagette299935091767734101/1767733867_1038850_1402696384_234302ef48a1ad67a66f0dc09ab745f4_rle_crop_4092026945_0.png.png imagette299935091767734101/1767733525_1022352_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012551_0.png.png imagette299935091767734101/1767733746_1032466_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012552_0.png.png imagette299935091767734101/1767733746_1032466_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012551_0.png.png imagette299935091767734101/1767733867_1038850_1402696384_234302ef48a1ad67a66f0dc09ab745f4_rle_crop_4092026949_0.png.png imagette299935091767734101/1767733525_1022352_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012554_0.png.png imagette299935091767734101/1767733525_1022352_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012552_0.png.png imagette299935091767734101/1767733746_1032466_1402692954_7c450a315ed6fdffd968b7c15a411c17_rle_crop_4092012554_0.png.png imagette299935091767734101/1767733867_1038850_1402696034_4e4f6ad884889a8afea4350ca9b5f7ec_rle_crop_4092026997_0.png.png imagette299935091767734101/1767733867_1038850_1402696034_4e4f6ad884889a8afea4350ca9b5f7ec_rle_crop_4092026996_0.png.png imagette299935091767734101/1767733867_1038850_1402696002_7992aa74b6f5d94eb9eb7b8bbfd054cf_rle_crop_4092027010_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/760756860dde4a57cf1d6144c34e3cfd_22331371.png imagette299935091767734101 29993514 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993514 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402697950: '1767733826_1037628_1402696614_a92821b8217d8f72de72f1af811bcd32_rle_crop_4092025701_0.png', 1402699183: '1767733986_1045437_1402696379_84bb1549879840aa8178ccebc173b1cd_rle_crop_4092027330_0.png', 1402699182: '1767733986_1045437_1402696744_50453fd0625f89b5ebe271bc232283cc_rle_crop_4092027292_0.png', 1402699180: '1767733986_1045437_1402696744_50453fd0625f89b5ebe271bc232283cc_rle_crop_4092027298_0.png', 1402698044: '1767733867_1038850_1402696002_7992aa74b6f5d94eb9eb7b8bbfd054cf_rle_crop_4092027014_0.png', 1402698042: '1767733867_1038850_1402696103_760522dfbce3097c0a8bc420dc368537_rle_crop_4092026977_0.png', 1402698041: '1767733867_1038850_1402696103_760522dfbce3097c0a8bc420dc368537_rle_crop_4092026979_0.png', 1402698040: '1767733867_1038850_1402696138_b807dabca2b5a28d370e76a19ae7a64e_rle_crop_4092026960_0.png', 1402698039: '1767733867_1038850_1402696138_b807dabca2b5a28d370e76a19ae7a64e_rle_crop_4092026962_0.png', 1402698038: '1767733867_1038850_1402696384_234302ef48a1ad67a66f0dc09ab745f4_rle_crop_4092026953_0.png', 1402696373: '1767733587_1025986_1402695073_cf223b47ae8b6140dcc63efa6bb8b277_rle_crop_4092015577_0.png', 1402697948: '1767733826_1037628_1402696615_14350973d90d4d314f2d05d83ef304b8_rle_crop_4092025684_0.png', 1402697946: '1767733826_1037628_1402696615_14350973d90d4d314f2d05d83ef304b8_rle_crop_4092025685_0.png', 1402697944: '1767733826_1037628_1402696615_14350973d90d4d314f2d05d83ef304b8_rle_crop_4092025682_0.png', 1402697942: '1767733826_1037628_1402696633_1fbc31f45b6a95d26d9e87276e92973b_rle_crop_4092025669_0.png', 1402696600: '1767733626_1026829_1402694672_ab709b19286e13003c7e50ba8b490a3a_rle_crop_4092019278_0.png', 1402696599: '1767733626_1026829_1402694754_2baf4d9d6f5e65d6f0ec90a9119c260a_rle_crop_4092018346_0.png', 1402696598: '1767733626_1026829_1402695078_96a6ad19a82caf33aa73cc58252f27ee_rle_crop_4092018329_0.png', 1402696597: '1767733626_1026829_1402695078_96a6ad19a82caf33aa73cc58252f27ee_rle_crop_4092018328_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/e98e921fc82f3e1566652648e3f53ce7_71508775.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/a055d96023d7c3246a55520435d82ce8_56759225.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/d6562a40d0e66e73d89017d17c9da618_4679327.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/24e8d229e20c793226b13445f2392850_52776363.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/7fb1b5afc91098443aa36847ad6ec019_81188933.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/0fd588175b329ac847cbc97b3dc08676_9161432.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/f587098049543cfdceb257a99bf406a4_99111672.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/8e551ebec3dd8ca5398d4bc9409302ef_21807677.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5937b2ac7bb7515ecf641d93ff6cf47d_1029715.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/d63ba409d9f5c106292892c9ae64fba6_67210071.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/b83761d3bcb6fe32953cf98eef0b71bd_55436493.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/f2bd6e66ac03963acd8acc9c951bd4ec_36388475.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/29142fce00a944e9031d3ce357673847_72472511.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/02e85606ae4e97dc1596b8ea8fd1789d_59131522.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/f98768cb7f789f65707c851a93568398_18581942.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/8e56455e20ee22fb44cdef8eebc7dc66_16965478.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/b5d4a51ad50e44ad50bec648715aac98_57362097.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/c21866e3bd74cfa7a082a74a777d8d1c_13885105.png change filename to text .imagette299935141767734101/ imagette299935141767734101/1767733986_1045437_1402696379_84bb1549879840aa8178ccebc173b1cd_rle_crop_4092027330_0.png.png imagette299935141767734101/1767733867_1038850_1402696384_234302ef48a1ad67a66f0dc09ab745f4_rle_crop_4092026953_0.png.png imagette299935141767734101/1767733867_1038850_1402696103_760522dfbce3097c0a8bc420dc368537_rle_crop_4092026979_0.png.png imagette299935141767734101/1767733867_1038850_1402696002_7992aa74b6f5d94eb9eb7b8bbfd054cf_rle_crop_4092027014_0.png.png imagette299935141767734101/1767733867_1038850_1402696103_760522dfbce3097c0a8bc420dc368537_rle_crop_4092026977_0.png.png imagette299935141767734101/1767733626_1026829_1402694672_ab709b19286e13003c7e50ba8b490a3a_rle_crop_4092019278_0.png.png imagette299935141767734101/1767733626_1026829_1402695078_96a6ad19a82caf33aa73cc58252f27ee_rle_crop_4092018328_0.png.png imagette299935141767734101/1767733867_1038850_1402696138_b807dabca2b5a28d370e76a19ae7a64e_rle_crop_4092026962_0.png.png imagette299935141767734101/1767733826_1037628_1402696615_14350973d90d4d314f2d05d83ef304b8_rle_crop_4092025682_0.png.png imagette299935141767734101/1767733826_1037628_1402696614_a92821b8217d8f72de72f1af811bcd32_rle_crop_4092025701_0.png.png imagette299935141767734101/1767733626_1026829_1402694754_2baf4d9d6f5e65d6f0ec90a9119c260a_rle_crop_4092018346_0.png.png imagette299935141767734101/1767733826_1037628_1402696615_14350973d90d4d314f2d05d83ef304b8_rle_crop_4092025684_0.png.png imagette299935141767734101/1767733986_1045437_1402696744_50453fd0625f89b5ebe271bc232283cc_rle_crop_4092027298_0.png.png imagette299935141767734101/1767733826_1037628_1402696615_14350973d90d4d314f2d05d83ef304b8_rle_crop_4092025685_0.png.png imagette299935141767734101/1767733986_1045437_1402696744_50453fd0625f89b5ebe271bc232283cc_rle_crop_4092027292_0.png.png imagette299935141767734101/1767733867_1038850_1402696138_b807dabca2b5a28d370e76a19ae7a64e_rle_crop_4092026960_0.png.png imagette299935141767734101/1767733587_1025986_1402695073_cf223b47ae8b6140dcc63efa6bb8b277_rle_crop_4092015577_0.png.png imagette299935141767734101/1767733826_1037628_1402696633_1fbc31f45b6a95d26d9e87276e92973b_rle_crop_4092025669_0.png.png imagette299935141767734101/1767733626_1026829_1402695078_96a6ad19a82caf33aa73cc58252f27ee_rle_crop_4092018329_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/b65ecaf81be172d8c1ec906c0ac0e3c9_3287746.png imagette299935141767734101 29993515 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993515 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402695874: '1767733525_1022352_1402692919_dac28b1b23a4c0317b52d03a8b342711_rle_crop_4092012564_0.png', 1402697348: '1767733746_1032466_1402692919_dac28b1b23a4c0317b52d03a8b342711_rle_crop_4092012564_0.png', 1402698046: '1767733867_1038850_1402696384_234302ef48a1ad67a66f0dc09ab745f4_rle_crop_4092026948_0.png', 1402698047: '1767733867_1038850_1402696002_7992aa74b6f5d94eb9eb7b8bbfd054cf_rle_crop_4092027007_0.png', 1402699185: '1767733986_1045437_1402696381_f1961ff828cee6cf666ae617c7b6ab45_rle_crop_4092027309_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5bc68583d977a4ad5108359af9b20156_18829026.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5bc68583d977a4ad5108359af9b20156_34108245.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/866cdc85a60c9883a8b94ea1843d7747_75620342.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/1d164272d1266b32d51db8c7e53a9719_81049382.png change filename to text .imagette299935151767734103/ imagette299935151767734103/1767733867_1038850_1402696002_7992aa74b6f5d94eb9eb7b8bbfd054cf_rle_crop_4092027007_0.png.png imagette299935151767734103/1767733867_1038850_1402696384_234302ef48a1ad67a66f0dc09ab745f4_rle_crop_4092026948_0.png.png imagette299935151767734103/1767733525_1022352_1402692919_dac28b1b23a4c0317b52d03a8b342711_rle_crop_4092012564_0.png.png imagette299935151767734103/1767733986_1045437_1402696381_f1961ff828cee6cf666ae617c7b6ab45_rle_crop_4092027309_0.png.png imagette299935151767734103/1767733746_1032466_1402692919_dac28b1b23a4c0317b52d03a8b342711_rle_crop_4092012564_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/9a2a42aa0c140ff8e2d378fe84c13b48_62402397.png imagette299935151767734103 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29993483 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29993517,29993518,29993520,29993521,29993522,29993523,29993524,29993525,29993526,29993527,29993528,29993529?tags=cartonnette,autre_refus,flou,environnement,kraft,Carton_brun,papier,plastique,metal,mal_croppe,Teint_Dans_La_Masse,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1402699280] : ('0.04583944403635706',) no score found for photo 1402699280 We are sending mail with results at report@fotonower.com args[1402699136] : ('0.04583944403635706',) no score found for photo 1402699136 We are sending mail with results at report@fotonower.com args[1402699104] : ('0.04583944403635706',) no score found for photo 1402699104 We are sending mail with results at report@fotonower.com args[1402699072] : ('0.04583944403635706',) no score found for photo 1402699072 We are sending mail with results at report@fotonower.com args[1402699056] : ('0.04583944403635706',) no score found for photo 1402699056 We are sending mail with results at report@fotonower.com args[1402699037] : ('0.04583944403635706',) no score found for photo 1402699037 We are sending mail with results at report@fotonower.com args[1402699001] : ('0.04583944403635706',) no score found for photo 1402699001 We are sending mail with results at report@fotonower.com args[1402698718] : ('0.04583944403635706',) no score found for photo 1402698718 We are sending mail with results at report@fotonower.com args[1402698674] : ('0.04583944403635706',) no score found for photo 1402698674 We are sending mail with results at report@fotonower.com args[1402698535] : ('0.04583944403635706',) no score found for photo 1402698535 We are sending mail with results at report@fotonower.com args[1402698392] : ('0.04583944403635706',) no score found for photo 1402698392 We are sending mail with results at report@fotonower.com args[1402698254] : ('0.04583944403635706',) no score found for photo 1402698254 We are sending mail with results at report@fotonower.com args[1402698214] : ('0.04583944403635706',) no score found for photo 1402698214 We are sending mail with results at report@fotonower.com refus_total : 0.04583944403635706 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993483 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_P29993483_06-01-2026_22_14_59.pdf results_Auto_P29993483_06-01-2026_22_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29993483','results_Auto_P29993483_06-01-2026_22_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_14_59.pdf','pdf','','0.28','0.04583944403635706') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29993483]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214] map_info['map_portfolio_photo'] : {29993483: [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214, 1402697980, 1402697941, 1402697909, 1402697877, 1402697531, 1402697497, 1402697467, 1402697434, 1402697400, 1402697332, 1402697306, 1402697300, 1402696744, 1402696633, 1402696615, 1402696614, 1402696384, 1402696381, 1402696380, 1402696379, 1402696173, 1402696138, 1402696103, 1402696069, 1402696034, 1402696002, 1402695459, 1402695424, 1402695390, 1402695078, 1402695075, 1402695073, 1402695071, 1402694802, 1402694754, 1402694672, 1402694627, 1402693726, 1402693695, 1402693663, 1402693625, 1402692954, 1402692919]} final : False mtd_id 4302 list_pids : [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214] 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, '4318586') ('4302', '29993483', '1402699280', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699136', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699104', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699072', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699056', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699037', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699001', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698718', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698674', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698535', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698392', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698254', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698214', None, None, None, None, None, '4318586') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29993483', '1402699280', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699136', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699104', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699072', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699056', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699037', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699001', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698718', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698674', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698535', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698392', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698254', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698214', None, None, None, None, None, '4318586')] time used for this insertion : 0.015811920166015625 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.125275611877441 time spend to save output : 0.016042709350585938 total time spend for step 4 : 6.141318321228027 step5:split_time_score Tue Jan 6 22:15:05 2026 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 : ['29993483'] 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 : [('29993483',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29993483) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402699280: {'path': 'temp/1767734099_1684655_1402699280_8133f78a4023f8818d20e47ad83e3b0b.jpg', 'extension': 'jpg'}, 1402699072: {'path': 'temp/1767734099_1684655_1402699072_5cdeb2fc2b1df8ae397cef6cadc73a72.jpg', 'extension': 'jpg'}, 1402699104: {'path': 'temp/1767734099_1684655_1402699104_a8b5d857d94f7a967d2cfe5a34ab760a.jpg', 'extension': 'jpg'}, 1402699136: {'path': 'temp/1767734099_1684655_1402699136_db26b58783c5b1b502a03bc66ed73923.jpg', 'extension': 'jpg'}, 1402699001: {'path': 'temp/1767734099_1684655_1402699001_a87d71823087c4878109986826631116.jpg', 'extension': 'jpg'}, 1402699037: {'path': 'temp/1767734099_1684655_1402699037_5d644f612111857f85381016b0cf80f3.jpg', 'extension': 'jpg'}, 1402699056: {'path': 'temp/1767734099_1684655_1402699056_b9dab88003bfe0bdb8c50d72f946f6aa.jpg', 'extension': 'jpg'}, 1402698214: {'path': 'temp/1767734099_1684655_1402698214_1fc55ef83a25022a14ba801c0921d9af.jpg', 'extension': 'jpg'}, 1402698254: {'path': 'temp/1767734099_1684655_1402698254_a50b850ecfdf3a4652a3fefb314304ac.jpg', 'extension': 'jpg'}, 1402698392: {'path': 'temp/1767734099_1684655_1402698392_cb9cfb27d08aca4f81b3b93f8dc63d88.jpg', 'extension': 'jpg'}, 1402698535: {'path': 'temp/1767734099_1684655_1402698535_30a5ad50da356c0e7599123147672e19.jpg', 'extension': 'jpg'}, 1402698674: {'path': 'temp/1767734099_1684655_1402698674_4cf1b77346477a71588176dcaa3bfb47.jpg', 'extension': 'jpg'}, 1402698718: {'path': 'temp/1767734099_1684655_1402698718_ec31aabe29a208f37cad0d0c70f368c2.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 = 29993483; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29993483 group by h (('22', 56),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29993483 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 (29993483) 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 (29993483) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06012026 29993483 Nombre de photos uploadées : 56 / 23040 (0%) 06012026 29993483 Nombre de photos taguées (types de déchets): 0 / 56 (0%) 06012026 29993483 Nombre de photos taguées (volume) : 0 / 56 (0%) [{'photo_id': 1402692954, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/7c450a315ed6fdffd968b7c15a411c17.jpg', 'username': None, 'uploaded_at': 1767733267, 'text': 'image_06012026_22_00_33_009129m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402692919, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/dac28b1b23a4c0317b52d03a8b342711.jpg', 'username': None, 'uploaded_at': 1767733267, 'text': 'image_06012026_22_00_43_010144m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402693726, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/3bf06a8c5d6d06df6507687a83939ce0.jpg', 'username': None, 'uploaded_at': 1767733328, 'text': 'image_06012026_22_00_53_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402693695, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/adef1e8eb3c7974ba53700a8d31b14b9.jpg', 'username': None, 'uploaded_at': 1767733328, 'text': 'image_06012026_22_01_03_10160.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002434253692626953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29993483, '2026-01-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2026-01-06' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2847576,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.25691699981689453 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= 2847576 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29983702, 'dashboard_result_id': 19080093, '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_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29983871, 'dashboard_result_id': 19080094, '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_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29984338, 'dashboard_result_id': 19080095, '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_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29984604, 'dashboard_result_id': 19080096, '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_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29985208, 'dashboard_result_id': 19080097, '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_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29985695, 'dashboard_result_id': 19080098, '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_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29986175, 'dashboard_result_id': 19080099, '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_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29986341, 'dashboard_result_id': 19080100, '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_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29986616, 'dashboard_result_id': 19080101, '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_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29986912, 'dashboard_result_id': 19080102, '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_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29987128, 'dashboard_result_id': 19080103, '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_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29988197, 'dashboard_result_id': 19080104, '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_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29988950, 'dashboard_result_id': 19080106, '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_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29989109, 'dashboard_result_id': 19080107, '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_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29989579, 'dashboard_result_id': 19080108, '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_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29990042, 'dashboard_result_id': 19080109, '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_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29990281, 'dashboard_result_id': 19080110, '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_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29990561, 'dashboard_result_id': 19080111, '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_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29990904, 'dashboard_result_id': 19080112, '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_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29992020, 'dashboard_result_id': 19080113, '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_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29992183, 'dashboard_result_id': 19080114, '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_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29992563, 'dashboard_result_id': 19080115, '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_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29993031, 'dashboard_result_id': 19080116, '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_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860287, 'mtr_portfolio_id': 29993483, 'dashboard_result_id': 19080117, '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_P29993483_06-01-2026_22_13_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, '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 = 29983702 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': 4317127, 'mtr_portfolio_id': 29983702, 'created_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'result': '0.022296639149872198', 'result_long': None, 'result_double': None}] Qualite : 0.022296639149872198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29983702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_06-01-2026_14_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29983702 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_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, 'pht': 3726}}" where mtr_portfolio_id = 29983702 and dashboard_run_id = 2860287 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`=29983702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080093, 0.022296639149872198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, '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 = 29983871 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': 4317187, 'mtr_portfolio_id': 29983871, 'created_at': datetime.datetime(2026, 1, 6, 14, 19), 'result': '0.017274851096533806', 'result_long': None, 'result_double': None}] Qualite : 0.017274851096533806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29983871 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29983871 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_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, 'pht': 3726}}" where mtr_portfolio_id = 29983871 and dashboard_run_id = 2860287 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`=29983871 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080094, 0.017274851096533806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, '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 = 29984338 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': 4317247, 'mtr_portfolio_id': 29984338, 'created_at': datetime.datetime(2026, 1, 6, 14, 35), 'result': '0.04421720492812946', 'result_long': None, 'result_double': None}] Qualite : 0.04421720492812946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29984338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29984338 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_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, 'pht': 3726}}" where mtr_portfolio_id = 29984338 and dashboard_run_id = 2860287 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`=29984338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080095, 0.04421720492812946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, '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 = 29984604 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': 4317301, 'mtr_portfolio_id': 29984604, 'created_at': datetime.datetime(2026, 1, 6, 14, 48, 56), 'result': '0.04795347821360475', 'result_long': None, 'result_double': None}] Qualite : 0.04795347821360475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29984604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29984604 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_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, 'pht': 3726}}" where mtr_portfolio_id = 29984604 and dashboard_run_id = 2860287 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`=29984604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080096, 0.04795347821360475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, '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 = 29985208 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': 4317391, 'mtr_portfolio_id': 29985208, 'created_at': datetime.datetime(2026, 1, 6, 15, 3), 'result': '0.06037429492965243', 'result_long': None, 'result_double': None}] Qualite : 0.06037429492965243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29985208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29985208 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_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, 'pht': 3726}}" where mtr_portfolio_id = 29985208 and dashboard_run_id = 2860287 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`=29985208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080097, 0.06037429492965243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, '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 = 29985695 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': 4317466, 'mtr_portfolio_id': 29985695, 'created_at': datetime.datetime(2026, 1, 6, 15, 18, 59), 'result': '0.030739318521380846', 'result_long': None, 'result_double': None}] Qualite : 0.030739318521380846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29985695 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29985695 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_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, 'pht': 3726}}" where mtr_portfolio_id = 29985695 and dashboard_run_id = 2860287 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`=29985695 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080098, 0.030739318521380846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, '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 = 29986175 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': 4317511, 'mtr_portfolio_id': 29986175, 'created_at': datetime.datetime(2026, 1, 6, 15, 32, 58), 'result': '0.02568770202023262', 'result_long': None, 'result_double': None}] Qualite : 0.02568770202023262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986175 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_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, 'pht': 3726}}" where mtr_portfolio_id = 29986175 and dashboard_run_id = 2860287 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`=29986175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080099, 0.02568770202023262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, '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 = 29986341 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': 4317539, 'mtr_portfolio_id': 29986341, 'created_at': datetime.datetime(2026, 1, 6, 15, 49, 1), 'result': '0.026397140536285345', 'result_long': None, 'result_double': None}] Qualite : 0.026397140536285345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986341 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_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, 'pht': 3726}}" where mtr_portfolio_id = 29986341 and dashboard_run_id = 2860287 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`=29986341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080100, 0.026397140536285345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, '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 = 29986616 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': 4317584, 'mtr_portfolio_id': 29986616, 'created_at': datetime.datetime(2026, 1, 6, 16, 2, 58), 'result': '0.04873517687602566', 'result_long': None, 'result_double': None}] Qualite : 0.04873517687602566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986616 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_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, 'pht': 3726}}" where mtr_portfolio_id = 29986616 and dashboard_run_id = 2860287 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`=29986616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080101, 0.04873517687602566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, '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 = 29986912 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': 4317626, 'mtr_portfolio_id': 29986912, 'created_at': datetime.datetime(2026, 1, 6, 16, 20, 58), 'result': '0.03471252440187812', 'result_long': None, 'result_double': None}] Qualite : 0.03471252440187812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986912 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_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, 'pht': 3726}}" where mtr_portfolio_id = 29986912 and dashboard_run_id = 2860287 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`=29986912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080102, 0.03471252440187812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, '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 = 29987128 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': 4317656, 'mtr_portfolio_id': 29987128, 'created_at': datetime.datetime(2026, 1, 6, 16, 38, 58), 'result': '0.029989250279964', 'result_long': None, 'result_double': None}] Qualite : 0.029989250279964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29987128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29987128 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_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, 'pht': 3726}}" where mtr_portfolio_id = 29987128 and dashboard_run_id = 2860287 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`=29987128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080103, 0.029989250279964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, '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 = 29988197 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': 4317808, 'mtr_portfolio_id': 29988197, 'created_at': datetime.datetime(2026, 1, 6, 18, 13), 'result': '0.2352042110746693', 'result_long': None, 'result_double': None}] Qualite : 0.2352042110746693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29988197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29988197 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_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, 'pht': 3726}}" where mtr_portfolio_id = 29988197 and dashboard_run_id = 2860287 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`=29988197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080104, 0.2352042110746693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, '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 = 29988950 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': 4317940, 'mtr_portfolio_id': 29988950, 'created_at': datetime.datetime(2026, 1, 6, 18, 32, 58), 'result': '0.11963051026203138', 'result_long': None, 'result_double': None}] Qualite : 0.11963051026203138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29988950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29988950 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_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, 'pht': 3726}}" where mtr_portfolio_id = 29988950 and dashboard_run_id = 2860287 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`=29988950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080106, 0.11963051026203138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, '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 = 29989109 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': 4317977, 'mtr_portfolio_id': 29989109, 'created_at': datetime.datetime(2026, 1, 6, 18, 47, 1), 'result': '0.02513504881480487', 'result_long': None, 'result_double': None}] Qualite : 0.02513504881480487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29989109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29989109 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_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, 'pht': 3726}}" where mtr_portfolio_id = 29989109 and dashboard_run_id = 2860287 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`=29989109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080107, 0.02513504881480487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, '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 = 29989579 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': 4318051, 'mtr_portfolio_id': 29989579, 'created_at': datetime.datetime(2026, 1, 6, 19, 18, 31), 'result': '0.025601462006281817', 'result_long': None, 'result_double': None}] Qualite : 0.025601462006281817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29989579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29989579 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_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, 'pht': 3726}}" where mtr_portfolio_id = 29989579 and dashboard_run_id = 2860287 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`=29989579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080108, 0.025601462006281817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, '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 = 29990042 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': 4318092, 'mtr_portfolio_id': 29990042, 'created_at': datetime.datetime(2026, 1, 6, 19, 34, 30), 'result': '0.05281345252904674', 'result_long': None, 'result_double': None}] Qualite : 0.05281345252904674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990042 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_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, 'pht': 3726}}" where mtr_portfolio_id = 29990042 and dashboard_run_id = 2860287 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`=29990042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080109, 0.05281345252904674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, '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 = 29990281 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': 4318126, 'mtr_portfolio_id': 29990281, 'created_at': datetime.datetime(2026, 1, 6, 19, 46, 59), 'result': '0.031446307287372216', 'result_long': None, 'result_double': None}] Qualite : 0.031446307287372216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990281 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_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, 'pht': 3726}}" where mtr_portfolio_id = 29990281 and dashboard_run_id = 2860287 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`=29990281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080110, 0.031446307287372216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, '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 = 29990561 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': 4318162, 'mtr_portfolio_id': 29990561, 'created_at': datetime.datetime(2026, 1, 6, 20, 5), 'result': '0.11225773860733029', 'result_long': None, 'result_double': None}] Qualite : 0.11225773860733029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990561 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_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, 'pht': 3726}}" where mtr_portfolio_id = 29990561 and dashboard_run_id = 2860287 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`=29990561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080111, 0.11225773860733029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, '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 = 29990904 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': 4318212, 'mtr_portfolio_id': 29990904, 'created_at': datetime.datetime(2026, 1, 6, 20, 17), 'result': '0.15519283692203367', 'result_long': None, 'result_double': None}] Qualite : 0.15519283692203367 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990904 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_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, 'pht': 3726}}" where mtr_portfolio_id = 29990904 and dashboard_run_id = 2860287 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`=29990904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080112, 0.15519283692203367, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, '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 = 29992020 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': 4318367, 'mtr_portfolio_id': 29992020, 'created_at': datetime.datetime(2026, 1, 6, 21, 21, 13), 'result': '0.07044894118906095', 'result_long': None, 'result_double': None}] Qualite : 0.07044894118906095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992020 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_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, 'pht': 3726}}" where mtr_portfolio_id = 29992020 and dashboard_run_id = 2860287 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`=29992020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080113, 0.07044894118906095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, '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 = 29992183 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': 4318380, 'mtr_portfolio_id': 29992183, 'created_at': datetime.datetime(2026, 1, 6, 21, 35), 'result': '0.07215581131758142', 'result_long': None, 'result_double': None}] Qualite : 0.07215581131758142 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992183 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_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, 'pht': 3726}}" where mtr_portfolio_id = 29992183 and dashboard_run_id = 2860289 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`=29992183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080114, 0.07215581131758142, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, '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 = 29992563 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': 4318420, 'mtr_portfolio_id': 29992563, 'created_at': datetime.datetime(2026, 1, 6, 21, 49), 'result': '0.040228862385956514', 'result_long': None, 'result_double': None}] Qualite : 0.040228862385956514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992563 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_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, 'pht': 3726}}" where mtr_portfolio_id = 29992563 and dashboard_run_id = 2860289 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`=29992563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080115, 0.040228862385956514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, '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 = 29993031 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': 4318477, 'mtr_portfolio_id': 29993031, 'created_at': datetime.datetime(2026, 1, 6, 22, 2, 59), 'result': '0.05395314798042522', 'result_long': None, 'result_double': None}] Qualite : 0.05395314798042522 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29993031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29993031 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_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, 'pht': 3726}}" where mtr_portfolio_id = 29993031 and dashboard_run_id = 2860289 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`=29993031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080116, 0.05395314798042522, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, '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 = 29993483 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': 4318586, 'mtr_portfolio_id': 29993483, 'created_at': datetime.datetime(2026, 1, 6, 22, 14, 58), 'result': '0.04583944403635706', 'result_long': None, 'result_double': None}] Qualite : 0.04583944403635706 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29993483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29993483 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_P29993483_06-01-2026_22_14_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, 'pht': 3726}}" where mtr_portfolio_id = 29993483 and dashboard_run_id = 2860289 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`=29993483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19080117, 0.04583944403635706, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_14_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, '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 (29983702,29983871,29984338,29984604,29985208,29985695,29986175,29986341,29986616,29986912,29987128,29988197,29988950,29989109,29989579,29990042,29990281,29990561,29990904,29992020,29992183,29992563,29993031,29993483) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,), (1402655652,), (1402655715,), (1402656130,), (1402656154,), (1402656188,), (1402656225,), (1402656257,), (1402656355,), (1402657555,), (1402657557,), (1402658485,), (1402658620,), (1402658691,), (1402658746,), (1402658742,), (1402658744,), (1402658766,), (1402658768,), (1402658788,), (1402658790,), (1402658791,), (1402658808,), (1402658810,), (1402658835,), (1402658836,), (1402658837,), (1402658838,), (1402658841,), (1402658855,), (1402658856,), (1402658883,), (1402658884,), (1402658885,), (1402658887,), (1402658890,), (1402658909,), (1402658912,), (1402658915,), (1402658919,), (1402658924,), (1402658931,), (1402658950,), (1402658951,), (1402658953,), (1402658954,), (1402658969,), (1402658970,), (1402658971,), (1402658972,), (1402658977,), (1402658979,), (1402659005,), (1402659006,), (1402659008,), (1402659009,), (1402659013,), (1402659026,), (1402659027,), (1402659028,), (1402659029,), (1402659057,), (1402659068,), (1402659070,), (1402659071,), (1402659073,), (1402659095,), (1402659141,), (1402659091,), (1402659092,), (1402659094,), (1402659116,), (1402659119,), (1402659120,), (1402659124,), (1402659126,), (1402659129,), (1402659138,), (1402659139,), (1402659142,), (1402659143,), (1402659144,), (1402659148,), (1402659151,), (1402659202,), (1402659203,), (1402659204,), (1402659206,), (1402659219,), (1402659220,), (1402659222,), (1402659224,), (1402659228,), (1402659230,), (1402659249,), (1402659253,), (1402659254,), (1402659256,), (1402659277,), (1402659278,), (1402659279,), (1402659285,), (1402659291,), (1402659308,), (1402659402,), (1402659403,), (1402659404,), (1402659408,), (1402659413,), (1402659422,), (1402659459,), (1402659460,), (1402659461,), (1402659505,), (1402659506,), (1402659507,), (1402659509,), (1402659512,), (1402659515,), (1402659525,), (1402659526,), (1402659528,), (1402659530,), (1402659556,), (1402659557,), (1402659558,), (1402659561,), (1402659564,), (1402659565,), (1402659572,), (1402659574,), (1402659575,), (1402659576,), (1402659577,), (1402659677,), (1402659700,), (1402659781,), (1402659784,), (1402659921,), (1402660263,), (1402660284,), (1402660314,), (1402660552,), (1402660553,), (1402660577,), (1402660578,), (1402660580,), (1402660584,), (1402660729,), (1402660782,), (1402660785,), (1402660788,), (1402661137,), (1402661073,), (1402661105,), (1402661853,), (1402662604,), (1402662642,), (1402662777,), (1402662837,), (1402662889,), (1402662910,), (1402662984,), (1402663040,), (1402663042,), (1402663056,), (1402663069,), (1402663090,), (1402663091,), (1402663103,), (1402663118,), (1402663120,), (1402663158,), (1402663198,), (1402663230,), (1402663250,), (1402663276,), (1402663277,), (1402663312,), (1402663314,), (1402663329,), (1402663379,), (1402663457,), (1402663586,), (1402663621,), (1402663641,), (1402663682,), (1402663761,), (1402663759,), (1402663925,), (1402663933,), (1402664100,), (1402664202,), (1402664324,), (1402664328,), (1402664347,), (1402664381,), (1402664547,), (1402664596,), (1402664604,), (1402664605,), (1402664618,), (1402664619,), (1402665095,), (1402665551,), (1402665397,), (1402665694,), (1402666145,), (1402666164,), (1402666183,), (1402666184,), (1402666268,), (1402666278,), (1402666348,), (1402666350,), (1402666368,), (1402666604,), (1402671093,), (1402671095,), (1402671097,), (1402671254,), (1402671278,), (1402671626,), (1402671627,), (1402671795,), (1402673627,), (1402673736,), (1402673893,), (1402673930,), (1402673952,), (1402673978,), (1402673980,), (1402673992,), (1402674005,), (1402674020,), (1402674113,), (1402674114,), (1402674126,), (1402674160,), (1402674235,), (1402674236,), (1402674737,), (1402674910,), (1402677429,), (1402677764,), (1402679554,), (1402679589,), (1402679870,), (1402679892,), (1402679901,), (1402679934,), (1402680157,), (1402680437,), (1402680676,), (1402680689,), (1402680690,), (1402680770,), (1402680784,), (1402680797,), (1402680892,), (1402680894,), (1402680953,), (1402681012,), (1402681058,), (1402681070,), (1402681071,), (1402681082,), (1402681148,), (1402681242,), (1402681243,), (1402681411,), (1402681430,), (1402681605,), (1402681805,), (1402681806,), (1402681864,), (1402681866,), (1402681868,), (1402681877,), (1402682360,), (1402683739,), (1402683783,), (1402683821,), (1402683823,), (1402683837,), (1402683862,), (1402683932,), (1402683975,), (1402684206,), (1402684207,), (1402684480,), (1402686027,), (1402689280,), (1402689282,), (1402689284,), (1402689286,), (1402689322,), (1402689323,), (1402689975,), (1402689988,), (1402689989,), (1402690405,), (1402690435,), (1402690441,), (1402690450,), (1402690486,), (1402690487,), (1402690501,), (1402690502,), (1402690503,), (1402690504,), (1402690507,), (1402690534,), (1402690536,), (1402690538,), (1402690550,), (1402690552,), (1402690554,), (1402690556,), (1402690559,), (1402690574,), (1402690575,), (1402690577,), (1402690578,), (1402690582,), (1402690594,), (1402690596,), (1402690616,), (1402690617,), (1402690635,), (1402690637,), (1402690639,), (1402690643,), (1402690647,), (1402690651,), (1402690674,), (1402690677,), (1402690679,), (1402690696,), (1402690722,), (1402690694,), (1402690695,), (1402690718,), (1402690719,), (1402690720,), (1402690797,), (1402690798,), (1402690812,), (1402690814,), (1402690835,), (1402690837,), (1402690839,), (1402690841,), (1402690844,), (1402690861,), (1402690863,), (1402690865,), (1402690866,), (1402690868,), (1402690891,), (1402690896,), (1402690908,), (1402690910,), (1402690912,), (1402690913,), (1402690915,), (1402690917,), (1402690938,), (1402690940,), (1402690941,), (1402690943,), (1402690946,), (1402690961,), (1402690989,), (1402691060,), (1402691061,), (1402691062,), (1402691533,), (1402691501,), (1402691526,), (1402691528,), (1402691529,), (1402691531,), (1402691542,), (1402691544,), (1402691546,), (1402691569,), (1402691575,), (1402691580,), (1402691594,), (1402691596,), (1402691599,), (1402691602,), (1402691606,), (1402691608,), (1402691618,), (1402691620,), (1402691622,), (1402691625,), (1402691628,), (1402691655,), (1402691686,), (1402691718,), (1402691750,), (1402691993,), (1402691994,), (1402691995,), (1402691998,), (1402692001,), (1402692003,), (1402692012,), (1402692013,), (1402692015,), (1402692017,), (1402692051,), (1402692052,), (1402692053,), (1402692055,), (1402692059,), (1402692083,), (1402692085,), (1402692087,), (1402692115,), (1402692116,), (1402692118,), (1402692131,), (1402692212,), (1402692213,), (1402692215,), (1402692218,), (1402692222,), (1402692246,), (1402692248,), (1402692250,), (1402692253,), (1402692412,), (1402692446,), (1402692479,), (1402692513,), (1402692652,), (1402692685,), (1402692720,), (1402692754,), (1402693010,), (1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06012026': {'nb_upload': 56, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29993483]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214] map_info['map_portfolio_photo'] : {29993483: [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214, 1402697980, 1402697941, 1402697909, 1402697877, 1402697531, 1402697497, 1402697467, 1402697434, 1402697400, 1402697332, 1402697306, 1402697300, 1402696744, 1402696633, 1402696615, 1402696614, 1402696384, 1402696381, 1402696380, 1402696379, 1402696173, 1402696138, 1402696103, 1402696069, 1402696034, 1402696002, 1402695459, 1402695424, 1402695390, 1402695078, 1402695075, 1402695073, 1402695071, 1402694802, 1402694754, 1402694672, 1402694627, 1402693726, 1402693695, 1402693663, 1402693625, 1402692954, 1402692919]} final : True mtd_id 4302 list_pids : [1402699280, 1402699136, 1402699104, 1402699072, 1402699056, 1402699037, 1402699001, 1402698718, 1402698674, 1402698535, 1402698392, 1402698254, 1402698214] Looping around the photos to save general results len do output : 1 /29993483Didn'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, '4318586') ('4302', '29993483', '1402699280', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699136', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699104', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699072', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699056', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699037', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402699001', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698718', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698674', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698535', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698392', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698254', None, None, None, None, None, '4318586') ('4302', None, None, None, None, None, None, None, '4318586') ('4302', '29993483', '1402698214', None, None, None, None, None, '4318586') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '29993483', 'None', None, None, None, None, '4318586'), ('4302', '29993483', '1402699280', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699136', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699104', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699072', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699056', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699037', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402699001', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698718', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698674', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698535', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698392', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698254', None, None, None, None, None, '4318586'), ('4302', '29993483', '1402698214', None, None, None, None, None, '4318586')] time used for this insertion : 0.01688408851623535 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9579665660858154 time spend to save output : 0.01712632179260254 total time spend for step 5 : 1.975092887878418 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 (4318586) 2.21user 2.55system 0:11.22elapsed 42%CPU (0avgtext+0avgdata 166572maxresident)k 584inputs+16472outputs (3major+80045minor)pagefaults 0swaps