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 : 3460619 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 (4289408) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4289408) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811670 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4289408'] with mtr_portfolio_ids : ['29811670'] and first list_photo_ids : [] new path : /proc/3460619/ Name: python3 Umask: 0002 State: R (running) Tgid: 3460619 Ngid: 0 Pid: 3460619 PPid: 3460618 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3460619 NSpid: 3460619 NSpgid: 3459082 NSsid: 3459082 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104832 kB VmRSS: 104832 kB RssAnon: 66308 kB RssFile: 38524 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 624 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: 49 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3460619', 'Ngid': '0', 'Pid': '3460619', 'PPid': '3460618', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3460619', 'NSpid': '3460619', 'NSpgid': '3459082', 'NSsid': '3459082', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104832 kB', 'VmRSS': '104832 kB', 'RssAnon': '66308 kB', 'RssFile': '38524 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '624 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': '49', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '3460619', '1113368', '0', '1113368', '872096', '104832', b'', 'marlene', '4289408') 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 (29811670) 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 (4289408 ) ) 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 (29811670) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401702636, 'portfolio_id': 29811670}, {'photo_id': 1401702630, 'portfolio_id': 29811670}, {'photo_id': 1401702628, 'portfolio_id': 29811670}, {'photo_id': 1401702578, 'portfolio_id': 29811670}, {'photo_id': 1401702570, 'portfolio_id': 29811670}, {'photo_id': 1401702564, 'portfolio_id': 29811670}, {'photo_id': 1401702561, 'portfolio_id': 29811670}, {'photo_id': 1401702558, 'portfolio_id': 29811670}, {'photo_id': 1401702373, 'portfolio_id': 29811670}, {'photo_id': 1401702315, 'portfolio_id': 29811670}, {'photo_id': 1401702292, 'portfolio_id': 29811670}, {'photo_id': 1401702289, 'portfolio_id': 29811670}, {'photo_id': 1401702287, 'portfolio_id': 29811670}, {'photo_id': 1401702276, 'portfolio_id': 29811670}, {'photo_id': 1401702272, 'portfolio_id': 29811670}, {'photo_id': 1401702269, 'portfolio_id': 29811670}, {'photo_id': 1401702241, 'portfolio_id': 29811670}, {'photo_id': 1401702236, 'portfolio_id': 29811670}, {'photo_id': 1401702226, 'portfolio_id': 29811670}, {'photo_id': 1401702222, 'portfolio_id': 29811670}, {'photo_id': 1401702193, 'portfolio_id': 29811670}, {'photo_id': 1401702162, 'portfolio_id': 29811670}, {'photo_id': 1401702042, 'portfolio_id': 29811670}, {'photo_id': 1401702039, 'portfolio_id': 29811670}, {'photo_id': 1401702036, 'portfolio_id': 29811670}, {'photo_id': 1401702033, 'portfolio_id': 29811670}, {'photo_id': 1401702009, 'portfolio_id': 29811670}, {'photo_id': 1401702003, 'portfolio_id': 29811670}, {'photo_id': 1401702001, 'portfolio_id': 29811670}, {'photo_id': 1401702000, 'portfolio_id': 29811670}, {'photo_id': 1401701999, 'portfolio_id': 29811670}, {'photo_id': 1401701974, 'portfolio_id': 29811670}, {'photo_id': 1401701971, 'portfolio_id': 29811670}, {'photo_id': 1401701818, 'portfolio_id': 29811670}, {'photo_id': 1401701805, 'portfolio_id': 29811670}, {'photo_id': 1401701801, 'portfolio_id': 29811670}, {'photo_id': 1401701799, 'portfolio_id': 29811670}, {'photo_id': 1401701796, 'portfolio_id': 29811670}, {'photo_id': 1401701763, 'portfolio_id': 29811670}, {'photo_id': 1401701759, 'portfolio_id': 29811670}, {'photo_id': 1401701757, 'portfolio_id': 29811670}, {'photo_id': 1401701755, 'portfolio_id': 29811670}] map_portfolio_id_photo_id: {29811670: [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276, 1401702272, 1401702269, 1401702241, 1401702236, 1401702226, 1401702222, 1401702193, 1401702162, 1401702042, 1401702039, 1401702036, 1401702033, 1401702009, 1401702003, 1401702001, 1401702000, 1401701999, 1401701974, 1401701971, 1401701818, 1401701805, 1401701801, 1401701799, 1401701796, 1401701763, 1401701759, 1401701757, 1401701755]} ##### 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.017157316207885742 #### 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 Dec 30 16:26:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29811670) 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 : 29811670 get user id for portfolio 29811670 get sub ptf for main ptf 29811670, type 3726 and hashtags ['environnement', 'cartonnette', 'papier', 'Carton_gris', 'Carton_brun', 'kraft', 'plastique', 'metal', 'autre_refus', 'Teint_Dans_La_Masse', 'mal_croppe', 'flou'] 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`=29811670 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','papier','Carton_gris','Carton_brun','kraft','plastique','metal','autre_refus','Teint_Dans_La_Masse','mal_croppe','flou')) 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`=29811670 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','papier','Carton_gris','Carton_brun','kraft','plastique','metal','autre_refus','Teint_Dans_La_Masse','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 29811670, 'sub_port_id': 29811677, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384955, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}, 'Carton_brun': {'main_port_id': 29811670, 'sub_port_id': 29811678, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384956, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}, 'autre_refus': {'main_port_id': 29811670, 'sub_port_id': 29811679, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384957, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}, 'mal_croppe': {'main_port_id': 29811670, 'sub_port_id': 29811680, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384958, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}, 'plastique': {'main_port_id': 29811670, 'sub_port_id': 29811681, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384959, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}, 'flou': {'main_port_id': 29811670, 'sub_port_id': 29811682, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384960, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}, 'environnement': {'main_port_id': 29811670, 'sub_port_id': 29811683, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384961, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}, 'metal': {'main_port_id': 29811670, 'sub_port_id': 29811684, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384962, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29811670, 'sub_port_id': 29811685, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384963, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}, 'Carton_gris': {'main_port_id': 29811670, 'sub_port_id': 29811686, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384964, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}, 'papier': {'main_port_id': 29811670, 'sub_port_id': 29811687, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384965, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}, 'cartonnette': {'main_port_id': 29811670, 'sub_port_id': 29811688, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384966, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29811677 , 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=29811670 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 (29811677) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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 29811678 , 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=29811670 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 (29811678) result : ((1401702256,), (1401702258,), (1401702555,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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 29811679 , 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=29811670 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 (29811679) result : ((1401702252,), (1401702603,), (1401702604,), (1401702605,), (1401702619,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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 29811680 , 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=29811670 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 (29811680) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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 29811681 , 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=29811670 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 (29811681) result : ((1401702610,), (1401702612,), (1401702613,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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 29811682 , 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=29811670 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 (29811682) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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 29811683 , 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=29811670 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 (29811683) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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 29811684 , 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=29811670 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 (29811684) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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 29811685 , 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=29811670 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 (29811685) result : ((1401702551,), (1401702552,), (1401702617,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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 29811686 , 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=29811670 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 (29811686) result : ((1401702606,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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 29811687 , 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=29811670 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 (29811687) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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 29811688 , 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=29811670 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 (29811688) result : ((1401702553,), (1401702554,), (1401702607,), (1401702621,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29811670) result : ((1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) 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 (1401702000) 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`=29811670 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','papier','Carton_gris','Carton_brun','kraft','plastique','metal','autre_refus','Teint_Dans_La_Masse','mal_croppe','flou')) 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`=29811670 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','papier','Carton_gris','Carton_brun','kraft','plastique','metal','autre_refus','Teint_Dans_La_Masse','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 29811670, 'sub_port_id': 29811690, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384967, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}, 'Carton_brun': {'main_port_id': 29811670, 'sub_port_id': 29811691, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384968, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}, 'autre_refus': {'main_port_id': 29811670, 'sub_port_id': 29811692, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384969, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}, 'mal_croppe': {'main_port_id': 29811670, 'sub_port_id': 29811693, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384970, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}, 'plastique': {'main_port_id': 29811670, 'sub_port_id': 29811694, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384971, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}, 'flou': {'main_port_id': 29811670, 'sub_port_id': 29811695, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384972, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}, 'environnement': {'main_port_id': 29811670, 'sub_port_id': 29811696, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384973, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}, 'metal': {'main_port_id': 29811670, 'sub_port_id': 29811697, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384974, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 29811670, 'sub_port_id': 29811698, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384975, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}, 'Carton_gris': {'main_port_id': 29811670, 'sub_port_id': 29811699, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384976, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}, 'papier': {'main_port_id': 29811670, 'sub_port_id': 29811700, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384977, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 19, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}, 'cartonnette': {'main_port_id': 29811670, 'sub_port_id': 29811701, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20384978, 'last_updated_at': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 16, 24, 56), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 16, 19, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811690,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811677 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811691,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811678 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811692,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811679 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811693,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811680 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811694,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811681 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811695,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811682 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811696,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811683 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811697,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811684 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811698,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811685 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811699,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811686 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811700,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811687 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29811701,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29811688 lien utilise dans velours : https://marlene.fotonower.com/velours/29811690,29811691,29811692,29811693,29811694,29811695,29811696,29811697,29811698,29811699,29811700,29811701?tags=kraft,Carton_brun,autre_refus,mal_croppe,plastique,flou,environnement,metal,Teint_Dans_La_Masse,Carton_gris,papier,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29811670]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276] map_info['map_portfolio_photo'] : {29811670: [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276, 1401702272, 1401702269, 1401702241, 1401702236, 1401702226, 1401702222, 1401702193, 1401702162, 1401702042, 1401702039, 1401702036, 1401702033, 1401702009, 1401702003, 1401702001, 1401702000, 1401701999, 1401701974, 1401701971, 1401701818, 1401701805, 1401701801, 1401701799, 1401701796, 1401701763, 1401701759, 1401701757, 1401701755]} final : False mtd_id 4302 list_pids : [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276] Looping around the photos to save general results len do output : 1 /29811670. 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, '4289408') ('4302', '29811670', '1401702636', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702630', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702628', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702578', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702570', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702564', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702561', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702558', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702373', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702315', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702292', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702289', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702287', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702276', None, None, None, None, None, '4289408') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29811670', "{'kraft': 29811677, 'Carton_brun': 29811678, 'autre_refus': 29811679, 'mal_croppe': 29811680, 'plastique': 29811681, 'flou': 29811682, 'environnement': 29811683, 'metal': 29811684, 'Teint_Dans_La_Masse': 29811685, 'Carton_gris': 29811686, 'papier': 29811687, 'cartonnette': 29811688}", None, None, None, None, '4289408'), ('4302', '29811670', '1401702636', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702630', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702628', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702578', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702570', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702564', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702561', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702558', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702373', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702315', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702292', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702289', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702287', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702276', None, None, None, None, None, '4289408')] time used for this insertion : 0.019771099090576172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5775072574615479 time spend to save output : 0.020055532455444336 total time spend for step 1 : 0.5975627899169922 step2:final Tue Dec 30 16:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29811670) 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 29811670 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401701763,1401701759,1401701757,1401701755,1401701818,1401701805,1401701801,1401701799,1401701796,1401701974,1401701971,1401702009,1401702003,1401702001,1401702000,1401701999,1401702042,1401702272,1401702039,1401702269,1401702036,1401702241,1401702033,1401702236,1401702226,1401702222,1401702193,1401702162,1401702373,1401702315,1401702292,1401702289,1401702287,1401702276,1401702578,1401702570,1401702564,1401702561,1401702558,1401702636,1401702630,1401702628); 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([29811670]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} new output for save of step final : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276] map_info['map_portfolio_photo'] : {29811670: [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276, 1401702272, 1401702269, 1401702241, 1401702236, 1401702226, 1401702222, 1401702193, 1401702162, 1401702042, 1401702039, 1401702036, 1401702033, 1401702009, 1401702003, 1401702001, 1401702000, 1401701999, 1401701974, 1401701971, 1401701818, 1401701805, 1401701801, 1401701799, 1401701796, 1401701763, 1401701759, 1401701757, 1401701755]} final : False mtd_id 4302 list_pids : [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276] Looping around the photos to save general results len do output : 14 /1401702636.Didn't retrieve data . /1401702630.Didn't retrieve data . /1401702628.Didn't retrieve data . /1401702578.Didn't retrieve data . /1401702570.Didn't retrieve data . /1401702564.Didn't retrieve data . /1401702561.Didn't retrieve data . /1401702558.Didn't retrieve data . /1401702373.Didn't retrieve data . /1401702315.Didn't retrieve data . /1401702292.Didn't retrieve data . /1401702289.Didn't retrieve data . /1401702287.Didn't retrieve data . /1401702276.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, '4289408') ('4302', '29811670', '1401702636', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702630', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702628', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702578', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702570', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702564', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702561', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702558', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702373', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702315', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702292', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702289', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702287', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702276', None, None, None, None, None, '4289408') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '29811670', '1401702636', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702630', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702628', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702578', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702570', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702564', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702561', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702558', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702373', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702315', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702292', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702289', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702287', '0.04231359237532555', None, None, None, None, '4289408'), ('4302', '29811670', '1401702276', '0.04231359237532555', None, None, None, None, '4289408')] time used for this insertion : 0.018423795700073242 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08295369148254395 time spend to save output : 0.01903700828552246 total time spend for step 2 : 0.1019906997680664 step3:velours_tree Tue Dec 30 16:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29811670: [{'kraft': 29811677, 'Carton_brun': 29811678, 'autre_refus': 29811679, 'mal_croppe': 29811680, 'plastique': 29811681, 'flou': 29811682, 'environnement': 29811683, 'metal': 29811684, 'Teint_Dans_La_Masse': 29811685, 'Carton_gris': 29811686, 'papier': 29811687, 'cartonnette': 29811688}]} input_args_next_step : {29811670: ()} output_args : {29811670: [{'kraft': 29811677, 'Carton_brun': 29811678, 'autre_refus': 29811679, 'mal_croppe': 29811680, 'plastique': 29811681, 'flou': 29811682, 'environnement': 29811683, 'metal': 29811684, 'Teint_Dans_La_Masse': 29811685, 'Carton_gris': 29811686, 'papier': 29811687, 'cartonnette': 29811688}]} args : 29811670 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 29811677, 'Carton_brun': 29811678, 'autre_refus': 29811679, 'mal_croppe': 29811680, 'plastique': 29811681, 'flou': 29811682, 'environnement': 29811683, 'metal': 29811684, 'Teint_Dans_La_Masse': 29811685, 'Carton_gris': 29811686, 'papier': 29811687, 'cartonnette': 29811688},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29811670) 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([29811670]) 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.2387838363647461 time spend to save output : 4.8160552978515625e-05 total time spend for step 3 : 0.2388319969177246 step4:send_mail_cod Tue Dec 30 16:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} input_args_next_step : {1401702636: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702636 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702630 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702628 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702578 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702570 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702564 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702561 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702558 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702373 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702315 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702292 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702289 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702287 depend.output_id : 0 input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ()} output_args : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',)} args : 1401702276 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 : {29811670: [{'kraft': 29811677, 'Carton_brun': 29811678, 'autre_refus': 29811679, 'mal_croppe': 29811680, 'plastique': 29811681, 'flou': 29811682, 'environnement': 29811683, 'metal': 29811684, 'Teint_Dans_La_Masse': 29811685, 'Carton_gris': 29811686, 'papier': 29811687, 'cartonnette': 29811688}]} input_args_next_step : {1401702636: ('0.04231359237532555',), 1401702630: ('0.04231359237532555',), 1401702628: ('0.04231359237532555',), 1401702578: ('0.04231359237532555',), 1401702570: ('0.04231359237532555',), 1401702564: ('0.04231359237532555',), 1401702561: ('0.04231359237532555',), 1401702558: ('0.04231359237532555',), 1401702373: ('0.04231359237532555',), 1401702315: ('0.04231359237532555',), 1401702292: ('0.04231359237532555',), 1401702289: ('0.04231359237532555',), 1401702287: ('0.04231359237532555',), 1401702276: ('0.04231359237532555',), 29811670: ()} output_args : {29811670: [{'kraft': 29811677, 'Carton_brun': 29811678, 'autre_refus': 29811679, 'mal_croppe': 29811680, 'plastique': 29811681, 'flou': 29811682, 'environnement': 29811683, 'metal': 29811684, 'Teint_Dans_La_Masse': 29811685, 'Carton_gris': 29811686, 'papier': 29811687, 'cartonnette': 29811688}]} args : 29811670 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 :15, first value : ('0.04231359237532555',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29811670) 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 (1401702636,1401702630,1401702628,1401702578,1401702570,1401702564,1401702561,1401702558,1401702373,1401702315,1401702292,1401702289,1401702287,1401702276) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401702276 begin to download photo : 1401702292 begin to download photo : 1401702558 begin to download photo : 1401702570 begin to download photo : 1401702630 download finish for photo 1401702292 begin to download photo : 1401702315 download finish for photo 1401702630 begin to download photo : 1401702636 download finish for photo 1401702558 begin to download photo : 1401702561 download finish for photo 1401702570 begin to download photo : 1401702578 download finish for photo 1401702276 begin to download photo : 1401702287 download finish for photo 1401702636 download finish for photo 1401702315 begin to download photo : 1401702373 download finish for photo 1401702561 begin to download photo : 1401702564 download finish for photo 1401702578 begin to download photo : 1401702628 download finish for photo 1401702287 begin to download photo : 1401702289 download finish for photo 1401702564 download finish for photo 1401702373 download finish for photo 1401702628 download finish for photo 1401702289 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette298116771767108418/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P29811670_30-12-2025_16_26_58.pdf 29811677 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=29811677 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298116771767108418 29811679 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=29811679 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401702252: '1767108186_3478511_1401701805_15bfd2733005ccdbd995757817b04217_rle_crop_4085630305_0.png', 1401702603: '1767108305_3482470_1401702003_0e8544f6d228d8c0b9f7e7e12cd2be35_rle_crop_4085630786_0.png', 1401702604: '1767108305_3482470_1401702001_a178afcef899640aa29bca81ed923be9_rle_crop_4085630807_0.png', 1401702605: '1767108305_3482470_1401702000_0311aa803d614b027ab7a4d880d92ccf_rle_crop_4085630827_0.png', 1401702619: '1767108327_3484916_1401702009_9eb7093591d7362cef9a992420696d2c_rle_crop_4085630884_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/f2795e216b17cf87823d6a75b325b483_33083706.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/47303bdc3976bbb370cfe979076bf3c8_7143162.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/14867f559c8923426a7b9078b7972187_92629428.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/94cfc4e17db55d4036ee531e17f91c4c_76746454.png change filename to text .imagette298116791767108418/ imagette298116791767108418/1767108305_3482470_1401702001_a178afcef899640aa29bca81ed923be9_rle_crop_4085630807_0.png.png imagette298116791767108418/1767108186_3478511_1401701805_15bfd2733005ccdbd995757817b04217_rle_crop_4085630305_0.png.png imagette298116791767108418/1767108305_3482470_1401702000_0311aa803d614b027ab7a4d880d92ccf_rle_crop_4085630827_0.png.png imagette298116791767108418/1767108327_3484916_1401702009_9eb7093591d7362cef9a992420696d2c_rle_crop_4085630884_0.png.png imagette298116791767108418/1767108305_3482470_1401702003_0e8544f6d228d8c0b9f7e7e12cd2be35_rle_crop_4085630786_0.png.png imagette298116801767108419/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/563d3404a76d874f414007c2ae7c4193_19027763.png imagette298116791767108418 29811680 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=29811680 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298116801767108419 29811681 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=29811681 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401702610: '1767108305_3482470_1401702001_a178afcef899640aa29bca81ed923be9_rle_crop_4085630809_0.png', 1401702612: '1767108305_3482470_1401702000_0311aa803d614b027ab7a4d880d92ccf_rle_crop_4085630830_0.png', 1401702613: '1767108305_3482470_1401701999_daa3aec01137f24534099791acf40dd2_rle_crop_4085630842_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/412256bb4d9c5b51410cf6b9b47e5225_68929403.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/5ae6d82efb82b4e527f14103f5f8ad68_57950865.png change filename to text .imagette298116811767108419/ imagette298116811767108419/1767108305_3482470_1401702000_0311aa803d614b027ab7a4d880d92ccf_rle_crop_4085630830_0.png.png imagette298116811767108419/1767108305_3482470_1401702001_a178afcef899640aa29bca81ed923be9_rle_crop_4085630809_0.png.png imagette298116811767108419/1767108305_3482470_1401701999_daa3aec01137f24534099791acf40dd2_rle_crop_4085630842_0.png.png imagette298116821767108419/ imagette298116841767108419/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/23896f938af630a63620bdd1daeb88ee_80716137.png imagette298116811767108419 29811682 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=29811682 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298116821767108419 29811684 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=29811684 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298116841767108419 29811688 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=29811688 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401702553: '1767108267_3481468_1401702036_330f38baf18db9fb2c990efaea2ffcd2_rle_crop_4085630546_0.png', 1401702554: '1767108267_3481468_1401702033_0ea9c47b9ff6d60b44b2f07b7e1c0079_rle_crop_4085630561_0.png', 1401702607: '1767108305_3482470_1401701999_daa3aec01137f24534099791acf40dd2_rle_crop_4085630838_0.png', 1401702621: '1767108327_3484916_1401702009_9eb7093591d7362cef9a992420696d2c_rle_crop_4085630883_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/f3fabee13765fcd1e91dffdb0c817fef_53502029.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/ed2f743ad811211fd22c68f7f86b720a_49448946.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/8063e0021f94aa6d16ec6b25a1007520_91375627.png change filename to text .imagette298116881767108419/ imagette298116881767108419/1767108267_3481468_1401702033_0ea9c47b9ff6d60b44b2f07b7e1c0079_rle_crop_4085630561_0.png.png imagette298116881767108419/1767108267_3481468_1401702036_330f38baf18db9fb2c990efaea2ffcd2_rle_crop_4085630546_0.png.png imagette298116881767108419/1767108327_3484916_1401702009_9eb7093591d7362cef9a992420696d2c_rle_crop_4085630883_0.png.png imagette298116881767108419/1767108305_3482470_1401701999_daa3aec01137f24534099791acf40dd2_rle_crop_4085630838_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/7197179735eeaf55319a43e34201f75f_59826576.png imagette298116881767108419 29811678 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=29811678 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401702256: '1767108186_3478511_1401701799_74a69f35ac2221ec9d17fb3a507843ba_rle_crop_4085630332_0.png', 1401702258: '1767108186_3478511_1401701796_85bf89d415e27613cf7480ad9802c1a8_rle_crop_4085630344_0.png', 1401702555: '1767108267_3481468_1401702033_0ea9c47b9ff6d60b44b2f07b7e1c0079_rle_crop_4085630569_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/018169cc4435aa12d526bb3cdbc57006_20096574.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/95d5752c04418492c7a6025812d40c1a_39727946.png change filename to text .imagette298116781767108419/ imagette298116781767108419/1767108186_3478511_1401701799_74a69f35ac2221ec9d17fb3a507843ba_rle_crop_4085630332_0.png.png imagette298116781767108419/1767108186_3478511_1401701796_85bf89d415e27613cf7480ad9802c1a8_rle_crop_4085630344_0.png.png imagette298116781767108419/1767108267_3481468_1401702033_0ea9c47b9ff6d60b44b2f07b7e1c0079_rle_crop_4085630569_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/723fa2c965a4e05717965ea95d85e636_93444057.png imagette298116781767108419 29811685 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=29811685 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401702551: '1767108267_3481468_1401702036_330f38baf18db9fb2c990efaea2ffcd2_rle_crop_4085630553_0.png', 1401702552: '1767108267_3481468_1401702033_0ea9c47b9ff6d60b44b2f07b7e1c0079_rle_crop_4085630567_0.png', 1401702617: '1767108327_3484916_1401702009_9eb7093591d7362cef9a992420696d2c_rle_crop_4085630885_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/18c5e3be208e1eeecc7b23523bb4d8d0_36074200.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/1f20be9b66a70b0d179c771aae3d604a_30085863.png change filename to text .imagette298116851767108419/ imagette298116851767108419/1767108267_3481468_1401702036_330f38baf18db9fb2c990efaea2ffcd2_rle_crop_4085630553_0.png.png imagette298116851767108419/1767108267_3481468_1401702033_0ea9c47b9ff6d60b44b2f07b7e1c0079_rle_crop_4085630567_0.png.png imagette298116851767108419/1767108327_3484916_1401702009_9eb7093591d7362cef9a992420696d2c_rle_crop_4085630885_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/95a7e09c523e53a758ff132d9c4658d3_40370635.png imagette298116851767108419 29811686 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=29811686 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401702606: '1767108305_3482470_1401702003_0e8544f6d228d8c0b9f7e7e12cd2be35_rle_crop_4085630789_0.png'} change filename to text .imagette298116861767108420/ imagette298116861767108420/1767108305_3482470_1401702003_0e8544f6d228d8c0b9f7e7e12cd2be35_rle_crop_4085630789_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/8129eba04926c95ac7707aa47b3f9072_53835336.png imagette298116861767108420 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29811670 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29811690,29811691,29811692,29811693,29811694,29811695,29811696,29811697,29811698,29811699,29811700,29811701?tags=kraft,Carton_brun,autre_refus,mal_croppe,plastique,flou,environnement,metal,Teint_Dans_La_Masse,Carton_gris,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1401702636] : ('0.04231359237532555',) no score found for photo 1401702636 We are sending mail with results at report@fotonower.com args[1401702630] : ('0.04231359237532555',) no score found for photo 1401702630 We are sending mail with results at report@fotonower.com args[1401702628] : ('0.04231359237532555',) no score found for photo 1401702628 We are sending mail with results at report@fotonower.com args[1401702578] : ('0.04231359237532555',) no score found for photo 1401702578 We are sending mail with results at report@fotonower.com args[1401702570] : ('0.04231359237532555',) no score found for photo 1401702570 We are sending mail with results at report@fotonower.com args[1401702564] : ('0.04231359237532555',) no score found for photo 1401702564 We are sending mail with results at report@fotonower.com args[1401702561] : ('0.04231359237532555',) no score found for photo 1401702561 We are sending mail with results at report@fotonower.com args[1401702558] : ('0.04231359237532555',) no score found for photo 1401702558 We are sending mail with results at report@fotonower.com args[1401702373] : ('0.04231359237532555',) no score found for photo 1401702373 We are sending mail with results at report@fotonower.com args[1401702315] : ('0.04231359237532555',) no score found for photo 1401702315 We are sending mail with results at report@fotonower.com args[1401702292] : ('0.04231359237532555',) no score found for photo 1401702292 We are sending mail with results at report@fotonower.com args[1401702289] : ('0.04231359237532555',) no score found for photo 1401702289 We are sending mail with results at report@fotonower.com args[1401702287] : ('0.04231359237532555',) no score found for photo 1401702287 We are sending mail with results at report@fotonower.com args[1401702276] : ('0.04231359237532555',) no score found for photo 1401702276 We are sending mail with results at report@fotonower.com refus_total : 0.04231359237532555 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=29811670 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_P29811670_30-12-2025_16_26_58.pdf results_Auto_P29811670_30-12-2025_16_26_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29811670_30-12-2025_16_26_58.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','29811670','results_Auto_P29811670_30-12-2025_16_26_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29811670_30-12-2025_16_26_58.pdf','pdf','','0.17','0.04231359237532555') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29811670]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276] map_info['map_portfolio_photo'] : {29811670: [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276, 1401702272, 1401702269, 1401702241, 1401702236, 1401702226, 1401702222, 1401702193, 1401702162, 1401702042, 1401702039, 1401702036, 1401702033, 1401702009, 1401702003, 1401702001, 1401702000, 1401701999, 1401701974, 1401701971, 1401701818, 1401701805, 1401701801, 1401701799, 1401701796, 1401701763, 1401701759, 1401701757, 1401701755]} final : False mtd_id 4302 list_pids : [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276] 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, '4289408') ('4302', '29811670', '1401702636', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702630', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702628', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702578', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702570', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702564', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702561', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702558', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702373', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702315', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702292', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702289', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702287', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702276', None, None, None, None, None, '4289408') 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', '29811670', '1401702636', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702630', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702628', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702578', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702570', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702564', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702561', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702558', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702373', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702315', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702292', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702289', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702287', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702276', None, None, None, None, None, '4289408')] time used for this insertion : 0.016773700714111328 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.106971263885498 time spend to save output : 0.017035722732543945 total time spend for step 4 : 3.124006986618042 step5:split_time_score Tue Dec 30 16:27:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29811670'] 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 : [('29811670',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29811670) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401702630: {'path': 'temp/1767108418_3460619_1401702630_091a6b45e6a24e6d5e7fd9a64ced9734.jpg', 'extension': 'jpg'}, 1401702636: {'path': 'temp/1767108418_3460619_1401702636_ac6a0b770147c60fc0641314558b8044.jpg', 'extension': 'jpg'}, 1401702558: {'path': 'temp/1767108418_3460619_1401702558_069679b9e933fd5e1f5c47378c3fa1ed.jpg', 'extension': 'jpg'}, 1401702561: {'path': 'temp/1767108418_3460619_1401702561_a86d1a31e804f0c4e4689504d47bcd0e.jpg', 'extension': 'jpg'}, 1401702564: {'path': 'temp/1767108418_3460619_1401702564_beebabc7fb1668d6efb859a7cbc28225.jpg', 'extension': 'jpg'}, 1401702292: {'path': 'temp/1767108418_3460619_1401702292_c7a1dac49f5424045ce54a179f8c133c.jpg', 'extension': 'jpg'}, 1401702315: {'path': 'temp/1767108418_3460619_1401702315_23a65a60097332142dca41c3005781a1.jpg', 'extension': 'jpg'}, 1401702373: {'path': 'temp/1767108418_3460619_1401702373_49400ed67972e3f92b310d416aae1aea.jpg', 'extension': 'jpg'}, 1401702570: {'path': 'temp/1767108418_3460619_1401702570_ef88c1b6927c95045e02d12e2eabf0cd.jpg', 'extension': 'jpg'}, 1401702578: {'path': 'temp/1767108418_3460619_1401702578_75836f085f2e9386bb31348501b9902c.jpg', 'extension': 'jpg'}, 1401702628: {'path': 'temp/1767108418_3460619_1401702628_3548c47a556aa705683771b30e7fcf34.jpg', 'extension': 'jpg'}, 1401702276: {'path': 'temp/1767108418_3460619_1401702276_aae9eb927ee71c39a564582c2372c39c.jpg', 'extension': 'jpg'}, 1401702287: {'path': 'temp/1767108418_3460619_1401702287_31a185d681308c9c22c2cc51dc0710e7.jpg', 'extension': 'jpg'}, 1401702289: {'path': 'temp/1767108418_3460619_1401702289_112aec8df94d44c00cd8579f1cbdb9f9.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 = 29811670; (('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 = 29811670 group by h (('16', 42),) 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=29811670 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 (29811670) 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 (29811670) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30122025 29811670 Nombre de photos uploadées : 42 / 23040 (0%) 30122025 29811670 Nombre de photos taguées (types de déchets): 0 / 42 (0%) 30122025 29811670 Nombre de photos taguées (volume) : 0 / 42 (0%) [{'photo_id': 1401701763, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/f4e6c4a77dc3d6a4a1c9e1cd0903637c.jpg', 'username': None, 'uploaded_at': 1767107887, 'text': 'image_30122025_16_17_13_10142.jpg'}, {'photo_id': 1401701759, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/4c0434028f2b7abb7ef23b876c4328e7.jpg', 'username': None, 'uploaded_at': 1767107887, 'text': 'image_30122025_16_17_24_10137.jpg'}, {'photo_id': 1401701757, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/6e71f819a6dab7621064e6a4b7fde6f5.jpg', 'username': None, 'uploaded_at': 1767107887, 'text': 'image_30122025_16_17_34_10139.jpg'}, {'photo_id': 1401701755, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/b00500bfc81577c0538e401757963275.jpg', 'username': None, 'uploaded_at': 1767107887, 'text': 'image_30122025_16_17_44_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ?????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018682479858398438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29811670, '2025-12-30' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2809232,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23630023002624512 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= 2809232 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29790877, 'dashboard_result_id': 18842269, '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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29790983, 'dashboard_result_id': 18842270, '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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29791397, 'dashboard_result_id': 18842271, '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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29791790, 'dashboard_result_id': 18842272, '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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29792732, 'dashboard_result_id': 18842273, '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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29795877, 'dashboard_result_id': 18842274, '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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29797237, 'dashboard_result_id': 18842275, '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_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29797610, 'dashboard_result_id': 18842276, '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_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29798325, 'dashboard_result_id': 18842277, '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_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29799025, 'dashboard_result_id': 18842278, '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_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29799682, 'dashboard_result_id': 18842279, '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_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29800360, 'dashboard_result_id': 18842280, '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_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29800908, 'dashboard_result_id': 18842281, '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_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29801565, 'dashboard_result_id': 18842282, '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_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29802386, 'dashboard_result_id': 18842283, '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_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29803120, 'dashboard_result_id': 18842284, '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_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29803763, 'dashboard_result_id': 18842285, '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_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29804529, 'dashboard_result_id': 18842286, '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_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29804985, 'dashboard_result_id': 18842287, '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_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29805655, 'dashboard_result_id': 18842288, '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_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29806068, 'dashboard_result_id': 18842289, '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_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29806405, 'dashboard_result_id': 18842290, '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_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29807136, 'dashboard_result_id': 18842291, '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_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29807749, 'dashboard_result_id': 18842292, '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_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29807975, 'dashboard_result_id': 18842293, '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_P29807975_30-12-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29808572, 'dashboard_result_id': 18842294, '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_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29809267, 'dashboard_result_id': 18842295, '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_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29809890, 'dashboard_result_id': 18842296, '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_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29810418, 'dashboard_result_id': 18842297, '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_P29810418_30-12-2025_16_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29810954, 'dashboard_result_id': 18842298, '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_P29810954_30-12-2025_16_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29810975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810978, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2820213, 'mtr_portfolio_id': 29811670, 'dashboard_result_id': 18842299, '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_P29811670_30-12-2025_16_24_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29811677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29811678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29811679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29811680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29811681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29811682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29811683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29811684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29811685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29811686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29811687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29811688, '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 = 29790877 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': 4286652, 'mtr_portfolio_id': 29790877, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 26), 'result': '0.0348694091114477', 'result_long': None, 'result_double': None}] Qualite : 0.0348694091114477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790877 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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}" where mtr_portfolio_id = 29790877 and dashboard_run_id = 2820213 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`=29790877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842269, 0.0348694091114477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, '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 = 29790983 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': 4286653, 'mtr_portfolio_id': 29790983, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 57), 'result': '0.0463877614951028', 'result_long': None, 'result_double': None}] Qualite : 0.0463877614951028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790983 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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}" where mtr_portfolio_id = 29790983 and dashboard_run_id = 2820213 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`=29790983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842270, 0.0463877614951028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, '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 = 29791397 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': 4286654, 'mtr_portfolio_id': 29791397, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 30), 'result': '0.0505279555715365', 'result_long': None, 'result_double': None}] Qualite : 0.0505279555715365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791397 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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}" where mtr_portfolio_id = 29791397 and dashboard_run_id = 2820213 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`=29791397 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842271, 0.0505279555715365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, '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 = 29791790 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': 4286655, 'mtr_portfolio_id': 29791790, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 40), 'result': '0.06145194760347519', 'result_long': None, 'result_double': None}] Qualite : 0.06145194760347519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791790 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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}" where mtr_portfolio_id = 29791790 and dashboard_run_id = 2820213 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`=29791790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842272, 0.06145194760347519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, '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 = 29792732 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': 4286656, 'mtr_portfolio_id': 29792732, 'created_at': datetime.datetime(2025, 12, 30, 5, 56), 'result': '0.04424892577297573', 'result_long': None, 'result_double': None}] Qualite : 0.04424892577297573 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29792732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29792732 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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}" where mtr_portfolio_id = 29792732 and dashboard_run_id = 2820213 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`=29792732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842273, 0.04424892577297573, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, '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 = 29795877 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': 4287149, 'mtr_portfolio_id': 29795877, 'created_at': datetime.datetime(2025, 12, 30, 9, 50, 58), 'result': '0.039355367116025095', 'result_long': None, 'result_double': None}] Qualite : 0.039355367116025095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29795877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29795877 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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}" where mtr_portfolio_id = 29795877 and dashboard_run_id = 2820213 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`=29795877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842274, 0.039355367116025095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, '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 = 29797237 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': 4287322, 'mtr_portfolio_id': 29797237, 'created_at': datetime.datetime(2025, 12, 30, 10, 38, 59), 'result': '0.033921253396910656', 'result_long': None, 'result_double': None}] Qualite : 0.033921253396910656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797237 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_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}" where mtr_portfolio_id = 29797237 and dashboard_run_id = 2820213 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`=29797237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842275, 0.033921253396910656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, '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 = 29797610 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': 4287387, 'mtr_portfolio_id': 29797610, 'created_at': datetime.datetime(2025, 12, 30, 10, 46, 59), 'result': '0.02814284116711131', 'result_long': None, 'result_double': None}] Qualite : 0.02814284116711131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797610 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_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, 'pht': 3726}}" where mtr_portfolio_id = 29797610 and dashboard_run_id = 2820213 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`=29797610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842276, 0.02814284116711131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, '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 = 29798325 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': 4287497, 'mtr_portfolio_id': 29798325, 'created_at': datetime.datetime(2025, 12, 30, 11, 3), 'result': '0.04468246908718581', 'result_long': None, 'result_double': None}] Qualite : 0.04468246908718581 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29798325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29798325_30-12-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29798325 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_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, 'pht': 3726}}" where mtr_portfolio_id = 29798325 and dashboard_run_id = 2820213 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`=29798325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842277, 0.04468246908718581, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, '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 = 29799025 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': 4287585, 'mtr_portfolio_id': 29799025, 'created_at': datetime.datetime(2025, 12, 30, 11, 16, 59), 'result': '0.08667658362391771', 'result_long': None, 'result_double': None}] Qualite : 0.08667658362391771 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29799025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799025_30-12-2025_11_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29799025 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_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, 'pht': 3726}}" where mtr_portfolio_id = 29799025 and dashboard_run_id = 2820213 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`=29799025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842278, 0.08667658362391771, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, '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 = 29799682 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': 4287640, 'mtr_portfolio_id': 29799682, 'created_at': datetime.datetime(2025, 12, 30, 11, 34, 59), 'result': '0.06698004484459952', 'result_long': None, 'result_double': None}] Qualite : 0.06698004484459952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29799682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799682_30-12-2025_11_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29799682 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_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, 'pht': 3726}}" where mtr_portfolio_id = 29799682 and dashboard_run_id = 2820213 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`=29799682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842279, 0.06698004484459952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, '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 = 29800360 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': 4287740, 'mtr_portfolio_id': 29800360, 'created_at': datetime.datetime(2025, 12, 30, 11, 46, 59), 'result': '0.09044129800279434', 'result_long': None, 'result_double': None}] Qualite : 0.09044129800279434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29800360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800360_30-12-2025_11_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29800360 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_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, 'pht': 3726}}" where mtr_portfolio_id = 29800360 and dashboard_run_id = 2820213 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`=29800360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842280, 0.09044129800279434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, '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 = 29800908 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': 4287857, 'mtr_portfolio_id': 29800908, 'created_at': datetime.datetime(2025, 12, 30, 12, 5, 30), 'result': '0.04178504958311081', 'result_long': None, 'result_double': None}] Qualite : 0.04178504958311081 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29800908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800908_30-12-2025_12_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29800908 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_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, 'pht': 3726}}" where mtr_portfolio_id = 29800908 and dashboard_run_id = 2820213 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`=29800908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842281, 0.04178504958311081, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, '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 = 29801565 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': 4287995, 'mtr_portfolio_id': 29801565, 'created_at': datetime.datetime(2025, 12, 30, 12, 16, 30), 'result': '0.061738346351304985', 'result_long': None, 'result_double': None}] Qualite : 0.061738346351304985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29801565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29801565_30-12-2025_12_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29801565 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_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, 'pht': 3726}}" where mtr_portfolio_id = 29801565 and dashboard_run_id = 2820213 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`=29801565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842282, 0.061738346351304985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, '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 = 29802386 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': 4288100, 'mtr_portfolio_id': 29802386, 'created_at': datetime.datetime(2025, 12, 30, 12, 32, 58), 'result': '0.10020094194934427', 'result_long': None, 'result_double': None}] Qualite : 0.10020094194934427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29802386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29802386_30-12-2025_12_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29802386 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_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, 'pht': 3726}}" where mtr_portfolio_id = 29802386 and dashboard_run_id = 2820213 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`=29802386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842283, 0.10020094194934427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, '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 = 29803120 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': 4288207, 'mtr_portfolio_id': 29803120, 'created_at': datetime.datetime(2025, 12, 30, 12, 46, 57), 'result': '0.06914954905671847', 'result_long': None, 'result_double': None}] Qualite : 0.06914954905671847 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29803120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803120_30-12-2025_12_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29803120 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_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, 'pht': 3726}}" where mtr_portfolio_id = 29803120 and dashboard_run_id = 2820213 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`=29803120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842284, 0.06914954905671847, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, '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 = 29803763 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': 4288276, 'mtr_portfolio_id': 29803763, 'created_at': datetime.datetime(2025, 12, 30, 13, 7), 'result': '0.060443862108655634', 'result_long': None, 'result_double': None}] Qualite : 0.060443862108655634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29803763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803763_30-12-2025_13_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29803763 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_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, 'pht': 3726}}" where mtr_portfolio_id = 29803763 and dashboard_run_id = 2820213 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`=29803763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842285, 0.060443862108655634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, '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 = 29804529 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': 4288429, 'mtr_portfolio_id': 29804529, 'created_at': datetime.datetime(2025, 12, 30, 13, 18, 59), 'result': '0.0690374605124261', 'result_long': None, 'result_double': None}] Qualite : 0.0690374605124261 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29804529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804529_30-12-2025_13_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29804529 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_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, 'pht': 3726}}" where mtr_portfolio_id = 29804529 and dashboard_run_id = 2820213 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`=29804529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842286, 0.0690374605124261, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, '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 = 29804985 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': 4288482, 'mtr_portfolio_id': 29804985, 'created_at': datetime.datetime(2025, 12, 30, 13, 38, 59), 'result': '0.07868173997295111', 'result_long': None, 'result_double': None}] Qualite : 0.07868173997295111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29804985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804985_30-12-2025_13_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29804985 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_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, 'pht': 3726}}" where mtr_portfolio_id = 29804985 and dashboard_run_id = 2820213 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`=29804985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842287, 0.07868173997295111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, '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 = 29805655 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': 4288574, 'mtr_portfolio_id': 29805655, 'created_at': datetime.datetime(2025, 12, 30, 13, 46, 29), 'result': '0.07467653211303711', 'result_long': None, 'result_double': None}] Qualite : 0.07467653211303711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29805655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29805655_30-12-2025_13_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29805655 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_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, 'pht': 3726}}" where mtr_portfolio_id = 29805655 and dashboard_run_id = 2820213 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`=29805655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842288, 0.07467653211303711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, '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 = 29806068 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': 4288620, 'mtr_portfolio_id': 29806068, 'created_at': datetime.datetime(2025, 12, 30, 14, 2, 58), 'result': '0.041353131115149946', 'result_long': None, 'result_double': None}] Qualite : 0.041353131115149946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29806068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806068_30-12-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29806068 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_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, 'pht': 3726}}" where mtr_portfolio_id = 29806068 and dashboard_run_id = 2820213 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`=29806068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842289, 0.041353131115149946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, '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 = 29806405 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': 4288693, 'mtr_portfolio_id': 29806405, 'created_at': datetime.datetime(2025, 12, 30, 14, 19, 1), 'result': '0.05856573578394818', 'result_long': None, 'result_double': None}] Qualite : 0.05856573578394818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29806405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806405_30-12-2025_14_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29806405 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_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, 'pht': 3726}}" where mtr_portfolio_id = 29806405 and dashboard_run_id = 2820213 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`=29806405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842290, 0.05856573578394818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, '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 = 29807136 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': 4288763, 'mtr_portfolio_id': 29807136, 'created_at': datetime.datetime(2025, 12, 30, 14, 36, 57), 'result': '0.0666570528973185', 'result_long': None, 'result_double': None}] Qualite : 0.0666570528973185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807136_30-12-2025_14_36_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807136 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_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, 'pht': 3726}}" where mtr_portfolio_id = 29807136 and dashboard_run_id = 2820213 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`=29807136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842291, 0.0666570528973185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807136_30-12-2025_14_36_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807151, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807155, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807161, '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 = 29807749 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': 4288856, 'mtr_portfolio_id': 29807749, 'created_at': datetime.datetime(2025, 12, 30, 14, 46, 58), 'result': '0.0822214256802385', 'result_long': None, 'result_double': None}] Qualite : 0.0822214256802385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807749_30-12-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807749 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_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, 'pht': 3726}}" where mtr_portfolio_id = 29807749 and dashboard_run_id = 2820213 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`=29807749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842292, 0.0822214256802385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807749_30-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29807753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29807758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29807760, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29807763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807764, '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 = 29807975 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': 4288885, 'mtr_portfolio_id': 29807975, 'created_at': datetime.datetime(2025, 12, 30, 15, 2, 59), 'result': '0.05405081722722423', 'result_long': None, 'result_double': None}] Qualite : 0.05405081722722423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29807975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807975_30-12-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807975 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_P29807975_30-12-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, 'pht': 3726}}" where mtr_portfolio_id = 29807975 and dashboard_run_id = 2820213 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`=29807975 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842293, 0.05405081722722423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807975_30-12-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29807991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29807992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29807993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29807994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29807995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29807996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29807997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29807998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29807999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808000, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808002, '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 = 29808572 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': 4288972, 'mtr_portfolio_id': 29808572, 'created_at': datetime.datetime(2025, 12, 30, 15, 16, 59), 'result': '0.050320479973079126', 'result_long': None, 'result_double': None}] Qualite : 0.050320479973079126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29808572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29808572_30-12-2025_15_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29808572 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_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, 'pht': 3726}}" where mtr_portfolio_id = 29808572 and dashboard_run_id = 2820213 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`=29808572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842294, 0.050320479973079126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29808572_30-12-2025_15_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29808589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29808590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29808591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29808592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29808593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29808594, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29808596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29808597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29808598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29808599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29808600, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29808601, '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 = 29809267 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': 4289079, 'mtr_portfolio_id': 29809267, 'created_at': datetime.datetime(2025, 12, 30, 15, 33, 59), 'result': '0.057795355547802296', 'result_long': None, 'result_double': None}] Qualite : 0.057795355547802296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29809267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809267_30-12-2025_15_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29809267 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_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, 'pht': 3726}}" where mtr_portfolio_id = 29809267 and dashboard_run_id = 2820213 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`=29809267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842295, 0.057795355547802296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809267_30-12-2025_15_34_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809287, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29809293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809294, '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 = 29809890 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': 4289165, 'mtr_portfolio_id': 29809890, 'created_at': datetime.datetime(2025, 12, 30, 15, 49), 'result': '0.048586920997346045', 'result_long': None, 'result_double': None}] Qualite : 0.048586920997346045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29809890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809890_30-12-2025_15_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29809890 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_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, 'pht': 3726}}" where mtr_portfolio_id = 29809890 and dashboard_run_id = 2820215 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`=29809890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842296, 0.048586920997346045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29809890_30-12-2025_15_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29809898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29809899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29809900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29809901, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29809902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29809903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29809904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29809905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29809906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29809907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29809908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29809909, '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 = 29810418 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': 4289248, 'mtr_portfolio_id': 29810418, 'created_at': datetime.datetime(2025, 12, 30, 16, 2, 57), 'result': '0.03607667162220529', 'result_long': None, 'result_double': None}] Qualite : 0.03607667162220529 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29810418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810418_30-12-2025_16_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29810418 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_P29810418_30-12-2025_16_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, 'pht': 3726}}" where mtr_portfolio_id = 29810418 and dashboard_run_id = 2820215 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`=29810418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842297, 0.03607667162220529, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810418_30-12-2025_16_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29810452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810463, '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 = 29810954 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': 4289335, 'mtr_portfolio_id': 29810954, 'created_at': datetime.datetime(2025, 12, 30, 16, 19, 31), 'result': '0.047599694348580475', 'result_long': None, 'result_double': None}] Qualite : 0.047599694348580475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29810954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810954_30-12-2025_16_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29810954 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_P29810954_30-12-2025_16_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29810975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810978, 'pht': 3726}}" where mtr_portfolio_id = 29810954 and dashboard_run_id = 2820215 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`=29810954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842298, 0.047599694348580475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29810954_30-12-2025_16_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29810967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29810968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29810969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29810970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29810971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29810972, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29810973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29810974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29810975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29810976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29810977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29810978, '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 = 29811670 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': 4289408, 'mtr_portfolio_id': 29811670, 'created_at': datetime.datetime(2025, 12, 30, 16, 26, 58), 'result': '0.04231359237532555', 'result_long': None, 'result_double': None}] Qualite : 0.04231359237532555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29811670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29811670_30-12-2025_16_26_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29811670 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_P29811670_30-12-2025_16_26_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29811677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29811678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29811679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29811680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29811681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29811682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29811683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29811684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29811685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29811686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29811687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29811688, 'pht': 3726}}" where mtr_portfolio_id = 29811670 and dashboard_run_id = 2820215 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`=29811670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18842299, 0.04231359237532555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29811670_30-12-2025_16_26_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29811677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29811678, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29811679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29811680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29811681, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29811682, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29811683, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29811684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29811685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29811686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29811687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29811688, '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 (29790877,29790983,29791397,29791790,29792732,29795877,29797237,29797610,29798325,29799025,29799682,29800360,29800908,29801565,29802386,29803120,29803763,29804529,29804985,29805655,29806068,29806405,29807136,29807749,29807975,29808572,29809267,29809890,29810418,29810954,29811670) result : ((1401601673,), (1401601679,), (1401601753,), (1401601754,), (1401601755,), (1401601757,), (1401601778,), (1401601779,), (1401601780,), (1401601800,), (1401601804,), (1401601808,), (1401601837,), (1401601841,), (1401601845,), (1401601830,), (1401601831,), (1401601834,), (1401601851,), (1401601852,), (1401601854,), (1401601858,), (1401601887,), (1401601888,), (1401601889,), (1401601912,), (1401601914,), (1401601916,), (1401601918,), (1401601944,), (1401601946,), (1401601948,), (1401601950,), (1401601952,), (1401601954,), (1401601962,), (1401601965,), (1401601968,), (1401601970,), (1401601998,), (1401602028,), (1401602058,), (1401602416,), (1401602449,), (1401602477,), (1401602480,), (1401602484,), (1401602485,), (1401602637,), (1401602638,), (1401602639,), (1401602642,), (1401602647,), (1401602650,), (1401602666,), (1401602668,), (1401602670,), (1401602692,), (1401602693,), (1401602694,), (1401602695,), (1401602719,), (1401602720,), (1401602722,), (1401602727,), (1401602731,), (1401602735,), (1401602746,), (1401602748,), (1401602753,), (1401602756,), (1401602760,), (1401602767,), (1401602773,), (1401602775,), (1401602777,), (1401602781,), (1401602785,), (1401602786,), (1401602789,), (1401602792,), (1401602796,), (1401602800,), (1401602803,), (1401602805,), (1401602808,), (1401602809,), (1401602811,), (1401602815,), (1401602874,), (1401602868,), (1401602870,), (1401602872,), (1401602896,), (1401602899,), (1401602901,), (1401602904,), (1401602908,), (1401602920,), (1401602921,), (1401602954,), (1401602957,), (1401602991,), (1401602992,), (1401602993,), (1401602996,), (1401602999,), (1401603009,), (1401603011,), (1401603015,), (1401603020,), (1401603025,), (1401603029,), (1401603032,), (1401603038,), (1401603040,), (1401603059,), (1401603060,), (1401603061,), (1401603082,), (1401603083,), (1401603084,), (1401603087,), (1401603102,), (1401603104,), (1401603108,), (1401603114,), (1401603155,), (1401603157,), (1401603158,), (1401603160,), (1401603162,), (1401603165,), (1401603176,), (1401603192,), (1401603194,), (1401603196,), (1401603199,), (1401603203,), (1401603216,), (1401603219,), (1401603222,), (1401603225,), (1401603230,), (1401603254,), (1401603258,), (1401603311,), (1401603312,), (1401603329,), (1401603331,), (1401603334,), (1401603246,), (1401603247,), (1401603248,), (1401603251,), (1401603267,), (1401603269,), (1401603272,), (1401603276,), (1401603280,), (1401603285,), (1401603299,), (1401603302,), (1401603307,), (1401603309,), (1401603322,), (1401603324,), (1401603327,), (1401603340,), (1401603390,), (1401603392,), (1401603432,), (1401603434,), (1401603435,), (1401603437,), (1401603455,), (1401603457,), (1401603460,), (1401603463,), (1401603485,), (1401603493,), (1401603499,), (1401603503,), (1401603508,), (1401603519,), (1401603522,), (1401603524,), (1401603547,), (1401603549,), (1401603553,), (1401603557,), (1401603560,), (1401603563,), (1401603568,), (1401603573,), (1401603575,), (1401603579,), (1401603581,), (1401603585,), (1401603587,), (1401603598,), (1401603600,), (1401603601,), (1401603643,), (1401603646,), (1401603650,), (1401603656,), (1401603660,), (1401603663,), (1401603671,), (1401603697,), (1401606743,), (1401606683,), (1401606740,), (1401606756,), (1401606758,), (1401606760,), (1401606761,), (1401606763,), (1401606777,), (1401606779,), (1401606782,), (1401606784,), (1401606786,), (1401606788,), (1401606796,), (1401606798,), (1401606801,), (1401606803,), (1401606805,), (1401606808,), (1401606812,), (1401606831,), (1401606834,), (1401606837,), (1401606882,), (1401610665,), (1401639240,), (1401639300,), (1401639683,), (1401639691,), (1401639693,), (1401639696,), (1401639717,), (1401639801,), (1401639803,), (1401639890,), (1401639925,), (1401645937,), (1401649754,), (1401649756,), (1401649759,), (1401649760,), (1401649765,), (1401649782,), (1401649804,), (1401649805,), (1401649830,), (1401649831,), (1401649868,), (1401649870,), (1401649871,), (1401649872,), (1401649874,), (1401649893,), (1401649895,), (1401649896,), (1401649947,), (1401649948,), (1401649949,), (1401649971,), (1401649973,), (1401649975,), (1401649979,), (1401649982,), (1401649985,), (1401649994,), (1401649997,), (1401650004,), (1401650006,), (1401650008,), (1401650011,), (1401650014,), (1401650017,), (1401650062,), (1401650064,), (1401650065,), (1401650066,), (1401650093,), (1401650094,), (1401650095,), (1401650097,), (1401650116,), (1401650118,), (1401650179,), (1401650181,), (1401650182,), (1401650184,), (1401650205,), (1401650206,), (1401650207,), (1401650208,), (1401650211,), (1401650254,), (1401650257,), (1401650258,), (1401650302,), (1401650522,), (1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,), (1401650493,), (1401650494,), (1401650495,), (1401650498,), (1401650501,), (1401650504,), (1401650526,), (1401650527,), (1401650529,), (1401650536,), (1401650546,), (1401650563,), (1401650565,), (1401650567,), (1401650577,), (1401650584,), (1401650587,), (1401650624,), (1401650626,), (1401650628,), (1401650630,), (1401650632,), (1401650897,), (1401650927,), (1401650958,), (1401650997,), (1401651286,), (1401651309,), (1401651318,), (1401651616,), (1401651651,), (1401651688,), (1401651726,), (1401651768,), (1401652104,), (1401652151,), (1401652191,), (1401652228,), (1401652265,), (1401652305,), (1401652397,), (1401652433,), (1401652571,), (1401652578,), (1401652597,), (1401652601,), (1401653110,), (1401653595,), (1401653555,), (1401653731,), (1401653732,), (1401653754,), (1401653762,), (1401654123,), (1401654184,), (1401654246,), (1401654278,), (1401654311,), (1401654470,), (1401654473,), (1401654478,), (1401654480,), (1401654520,), (1401654523,), (1401654533,), (1401654806,), (1401654834,), (1401654836,), (1401655017,), (1401655020,), (1401655028,), (1401655061,), (1401655063,), (1401655066,), (1401655068,), (1401655071,), (1401655074,), (1401655100,), (1401655137,), (1401655173,), (1401655204,), (1401655241,), (1401655276,), (1401655440,), (1401655473,), (1401655505,), (1401655536,), (1401655548,), (1401655585,), (1401655688,), (1401655726,), (1401655747,), (1401655750,), (1401656085,), (1401656086,), (1401656106,), (1401656122,), (1401656131,), (1401656245,), (1401656248,), (1401656251,), (1401656254,), (1401656257,), (1401656497,), (1401656532,), (1401656568,), (1401656603,), (1401656955,), (1401656842,), (1401656877,), (1401656909,), (1401656925,), (1401657487,), (1401657549,), (1401657667,), (1401657713,), (1401657767,), (1401657841,), (1401658014,), (1401658018,), (1401658032,), (1401658067,), (1401658100,), (1401658138,), (1401658471,), (1401658474,), (1401658507,), (1401658524,), (1401658529,), (1401658532,), (1401658538,), (1401658539,), (1401658541,), (1401658543,), (1401658545,), (1401658546,), (1401658557,), (1401658559,), (1401658562,), (1401658572,), (1401658580,), (1401658591,), (1401658606,), (1401658616,), (1401658880,), (1401658914,), (1401658946,), (1401658989,), (1401659029,), (1401659382,), (1401659406,), (1401659597,), (1401659631,), (1401659672,), (1401659712,), (1401659716,), (1401659720,), (1401659850,), (1401659853,), (1401659857,), (1401659861,), (1401659864,), (1401659902,), (1401659904,), (1401659907,), (1401659909,), (1401659913,), (1401660087,), (1401660088,), (1401660089,), (1401660149,), (1401660151,), (1401660152,), (1401660189,), (1401660226,), (1401660257,), (1401660267,), (1401660283,), (1401660296,), (1401660309,), (1401660325,), (1401660353,), (1401660384,), (1401660387,), (1401660430,), (1401660423,), (1401660425,), (1401660426,), (1401660480,), (1401660482,), (1401660519,), (1401660643,), (1401660761,), (1401660861,), (1401661666,), (1401661697,), (1401661730,), (1401661762,), (1401661799,), (1401661985,), (1401662038,), (1401662134,), (1401662223,), (1401662315,), (1401662584,), (1401662599,), (1401662628,), (1401662632,), (1401662644,), (1401662655,), (1401662673,), (1401662696,), (1401662733,), (1401662771,), (1401662807,), (1401663076,), (1401663088,), (1401663096,), (1401663100,), (1401663105,), (1401663180,), (1401663213,), (1401663246,), (1401663279,), (1401663290,), (1401663292,), (1401663297,), (1401663299,), (1401663302,), (1401663305,), (1401663308,), (1401663312,), (1401663314,), (1401663317,), (1401663319,), (1401663324,), (1401663350,), (1401663352,), (1401663354,), (1401663358,), (1401663426,), (1401663431,), (1401663434,), (1401663438,), (1401663443,), (1401663447,), (1401663460,), (1401663463,), (1401663465,), (1401663468,), (1401663472,), (1401663499,), (1401663501,), (1401663504,), (1401663508,), (1401663531,), (1401663534,), (1401663537,), (1401663579,), (1401663591,), (1401663594,), (1401663597,), (1401663628,), (1401663610,), (1401663614,), (1401663647,), (1401663650,), (1401663653,), (1401663658,), (1401663663,), (1401663667,), (1401663686,), (1401663715,), (1401663749,), (1401663764,), (1401663777,), (1401663785,), (1401663809,), (1401663813,), (1401663815,), (1401663816,), (1401663819,), (1401663821,), (1401663831,), (1401663833,), (1401663838,), (1401663840,), (1401663842,), (1401663845,), (1401663855,), (1401663856,), (1401663859,), (1401663860,), (1401663863,), (1401663864,), (1401663865,), (1401663866,), (1401663869,), (1401663878,), (1401663882,), (1401663886,), (1401664027,), (1401664033,), (1401664040,), (1401664043,), (1401664096,), (1401664099,), (1401664102,), (1401664106,), (1401664109,), (1401664111,), (1401664123,), (1401664142,), (1401664144,), (1401664145,), (1401664146,), (1401664331,), (1401664362,), (1401664392,), (1401664424,), (1401664456,), (1401664522,), (1401664554,), (1401664556,), (1401664558,), (1401664560,), (1401664592,), (1401664594,), (1401664597,), (1401664600,), (1401664604,), (1401664606,), (1401664617,), (1401664620,), (1401664633,), (1401664678,), (1401664677,), (1401664710,), (1401664713,), (1401664716,), (1401664718,), (1401664737,), (1401664738,), (1401664857,), (1401664927,), (1401664930,), (1401664932,), (1401664935,), (1401664939,), (1401664966,), (1401664967,), (1401664968,), (1401665001,), (1401665089,), (1401665289,), (1401665293,), (1401665298,), (1401665534,), (1401665536,), (1401665538,), (1401665541,), (1401665544,), (1401665549,), (1401665557,), (1401665566,), (1401665568,), (1401665569,), (1401665570,), (1401665573,), (1401665575,), (1401665599,), (1401665600,), (1401665603,), (1401665606,), (1401665609,), (1401665632,), (1401665636,), (1401665640,), (1401665644,), (1401665647,), (1401665663,), (1401665665,), (1401665692,), (1401665695,), (1401665698,), (1401665752,), (1401665758,), (1401665764,), (1401665769,), (1401665777,), (1401665778,), (1401665780,), (1401665781,), (1401665782,), (1401665783,), (1401665807,), (1401665802,), (1401665804,), (1401665840,), (1401666405,), (1401666475,), (1401666541,), (1401667232,), (1401667263,), (1401667294,), (1401667470,), (1401667533,), (1401667601,), (1401668029,), (1401668076,), (1401668110,), (1401668707,), (1401668742,), (1401668841,), (1401670023,), (1401670105,), (1401670559,), (1401670560,), (1401670563,), (1401670621,), (1401670683,), (1401670685,), (1401670713,), (1401670808,), (1401670818,), (1401671089,), (1401671091,), (1401671093,), (1401671097,), (1401671124,), (1401671126,), (1401671128,), (1401671130,), (1401671160,), (1401671477,), (1401671440,), (1401671839,), (1401671894,), (1401672166,), (1401672226,), (1401672276,), (1401672309,), (1401672432,), (1401672438,), (1401672471,), (1401672710,), (1401672722,), (1401672739,), (1401672762,), (1401673017,), (1401673031,), (1401673033,), (1401673063,), (1401673065,), (1401673067,), (1401673119,), (1401673129,), (1401673152,), (1401673160,), (1401673165,), (1401673193,), (1401673196,), (1401673225,), (1401673227,), (1401673264,), (1401673267,), (1401673394,), (1401673408,), (1401673409,), (1401673412,), (1401673536,), (1401673537,), (1401673539,), (1401673543,), (1401673564,), (1401673567,), (1401673570,), (1401673694,), (1401673711,), (1401673721,), (1401673798,), (1401673786,), (1401673791,), (1401673842,), (1401673850,), (1401673852,), (1401673872,), (1401673922,), (1401673924,), (1401673926,), (1401673929,), (1401673932,), (1401673937,), (1401673962,), (1401673981,), (1401673993,), (1401674123,), (1401674131,), (1401674134,), (1401674138,), (1401674144,), (1401674146,), (1401674158,), (1401674159,), (1401674165,), (1401674167,), (1401674170,), (1401674171,), (1401674174,), (1401674176,), (1401674178,), (1401674179,), (1401674185,), (1401674188,), (1401674215,), (1401674217,), (1401674257,), (1401674293,), (1401674295,), (1401674296,), (1401674297,), (1401674349,), (1401674358,), (1401674362,), (1401674446,), (1401674479,), (1401674492,), (1401674494,), (1401674526,), (1401674530,), (1401674593,), (1401674594,), (1401674595,), (1401674598,), (1401674600,), (1401674603,), (1401674638,), (1401674640,), (1401674642,), (1401674644,), (1401674668,), (1401674669,), (1401674671,), (1401674673,), (1401674677,), (1401674707,), (1401674698,), (1401674701,), (1401674704,), (1401674736,), (1401674738,), (1401674740,), (1401674742,), (1401674841,), (1401674850,), (1401674852,), (1401674875,), (1401674878,), (1401674881,), (1401674886,), (1401674920,), (1401674922,), (1401674924,), (1401674926,), (1401674955,), (1401674957,), (1401674961,), (1401674966,), (1401674970,), (1401674979,), (1401674988,), (1401674990,), (1401674994,), (1401675002,), (1401675005,), (1401675009,), (1401675012,), (1401675014,), (1401675181,), (1401675185,), (1401675187,), (1401675190,), (1401675193,), (1401675197,), (1401675205,), (1401675207,), (1401675210,), (1401675213,), (1401675218,), (1401675222,), (1401675226,), (1401675242,), (1401675245,), (1401675248,), (1401675345,), (1401678620,), (1401678559,), (1401678592,), (1401678971,), (1401678975,), (1401678979,), (1401678982,), (1401678987,), (1401678991,), (1401679011,), (1401679013,), (1401679015,), (1401679017,), (1401679045,), (1401679048,), (1401679050,), (1401679053,), (1401679057,), (1401679076,), (1401679079,), (1401679080,), (1401679081,), (1401679084,), (1401679105,), (1401679108,), (1401679111,), (1401679114,), (1401679117,), (1401679136,), (1401679138,), (1401679140,), (1401679142,), (1401679145,), (1401679149,), (1401679179,), (1401679180,), (1401679181,), (1401679184,), (1401679221,), (1401679224,), (1401679226,), (1401679230,), (1401679233,), (1401679235,), (1401679257,), (1401679259,), (1401679272,), (1401679300,), (1401679305,), (1401679306,), (1401679309,), (1401679312,), (1401679316,), (1401679336,), (1401679338,), (1401679341,), (1401679344,), (1401679392,), (1401679375,), (1401679377,), (1401679379,), (1401679383,), (1401679388,), (1401679407,), (1401679409,), (1401679411,), (1401679415,), (1401679477,), (1401679480,), (1401679482,), (1401679485,), (1401679489,), (1401679511,), (1401679513,), (1401679514,), (1401679518,), (1401679523,), (1401679527,), (1401679572,), (1401679575,), (1401679578,), (1401679582,), (1401679613,), (1401679614,), (1401679615,), (1401679617,), (1401679621,), (1401679623,), (1401679940,), (1401679977,), (1401680009,), (1401680044,), (1401680077,), (1401680478,), (1401680513,), (1401680543,), (1401680578,), (1401680614,), (1401680649,), (1401680773,), (1401680806,), (1401680837,), (1401680850,), (1401680852,), (1401680861,), (1401680865,), (1401680868,), (1401680873,), (1401680955,), (1401680996,), (1401681037,), (1401681098,), (1401681161,), (1401681226,), (1401681645,), (1401681674,), (1401681707,), (1401681744,), (1401681872,), (1401681875,), (1401681878,), (1401681882,), (1401681886,), (1401681888,), (1401681904,), (1401681906,), (1401681908,), (1401681911,), (1401681935,), (1401681937,), (1401681939,), (1401681942,), (1401681945,), (1401682408,), (1401682369,), (1401682393,), (1401682464,), (1401682465,), (1401682466,), (1401682468,), (1401682473,), (1401682566,), (1401682589,), (1401682600,), (1401682603,), (1401682628,), (1401682629,), (1401682631,), (1401682632,), (1401682635,), (1401682639,), (1401682663,), (1401682672,), (1401682678,), (1401682681,), (1401682709,), (1401682723,), (1401682729,), (1401682744,), (1401682754,), (1401682770,), (1401682811,), (1401682812,), (1401682817,), (1401682846,), (1401682850,), (1401682883,), (1401682917,), (1401683183,), (1401683186,), (1401683189,), (1401683190,), (1401683193,), (1401683195,), (1401683335,), (1401683334,), (1401683445,), (1401683446,), (1401683448,), (1401683450,), (1401683658,), (1401683748,), (1401683812,), (1401683879,), (1401683922,), (1401683965,), (1401684115,), (1401684118,), (1401684119,), (1401684121,), (1401684123,), (1401684126,), (1401684175,), (1401684177,), (1401684179,), (1401684182,), (1401684185,), (1401684189,), (1401684205,), (1401684207,), (1401684211,), (1401684215,), (1401684219,), (1401684227,), (1401684236,), (1401684241,), (1401684243,), (1401684246,), (1401684249,), (1401684251,), (1401684253,), (1401684274,), (1401684276,), (1401684279,), (1401684281,), (1401684283,), (1401684286,), (1401684295,), (1401684308,), (1401684319,), (1401684325,), (1401684327,), (1401684355,), (1401684452,), (1401684510,), (1401684547,), (1401684551,), (1401684552,), (1401684554,), (1401684557,), (1401684559,), (1401684612,), (1401684617,), (1401684623,), (1401684659,), (1401684694,), (1401684695,), (1401684704,), (1401684707,), (1401685132,), (1401684883,), (1401684918,), (1401685020,), (1401685062,), (1401685097,), (1401685339,), (1401685341,), (1401685342,), (1401685343,), (1401686004,), (1401686020,), (1401686049,), (1401686071,), (1401686075,), (1401686090,), (1401686111,), (1401686113,), (1401686136,), (1401686143,), (1401686145,), (1401686341,), (1401686343,), (1401686345,), (1401686347,), (1401686632,), (1401686670,), (1401686711,), (1401686747,), (1401686786,), (1401687310,), (1401687349,), (1401687383,), (1401687417,), (1401687451,), (1401687463,), (1401687491,), (1401687527,), (1401687561,), (1401687923,), (1401687990,), (1401688073,), (1401688114,), (1401688153,), (1401688184,), (1401688382,), (1401688405,), (1401688414,), (1401688417,), (1401688453,), (1401688474,), (1401688499,), (1401688501,), (1401688503,), (1401688517,), (1401688529,), (1401688533,), (1401688553,), (1401688593,), (1401688602,), (1401688607,), (1401688714,), (1401688729,), (1401688733,), (1401688747,), (1401688750,), (1401688752,), (1401688782,), (1401688784,), (1401688786,), (1401688789,), (1401688792,), (1401688795,), (1401688849,), (1401688852,), (1401688856,), (1401688859,), (1401688862,), (1401688865,), (1401688942,), (1401688988,), (1401689020,), (1401689045,), (1401689055,), (1401689057,), (1401689067,), (1401689082,), (1401689097,), (1401689098,), (1401689101,), (1401689104,), (1401689334,), (1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,), (1401689625,), (1401689629,), (1401689633,), (1401689661,), (1401689667,), (1401689677,), (1401689685,), (1401689689,), (1401689830,), (1401689856,), (1401689889,), (1401689996,), (1401690000,), (1401690003,), (1401690028,), (1401690031,), (1401690034,), (1401690517,), (1401690516,), (1401690603,), (1401690606,), (1401690609,), (1401690683,), (1401690685,), (1401690699,), (1401690700,), (1401690703,), (1401690774,), (1401690776,), (1401690778,), (1401690781,), (1401691060,), (1401691063,), (1401691065,), (1401691069,), (1401691075,), (1401691099,), (1401691102,), (1401691106,), (1401691110,), (1401691116,), (1401691118,), (1401691135,), (1401691137,), (1401691139,), (1401691143,), (1401691146,), (1401691149,), (1401691166,), (1401691176,), (1401691179,), (1401691185,), (1401691192,), (1401691194,), (1401691195,), (1401691198,), (1401691251,), (1401691252,), (1401691254,), (1401691256,), (1401691259,), (1401691262,), (1401691291,), (1401691282,), (1401691285,), (1401691288,), (1401691309,), (1401691312,), (1401691313,), (1401691315,), (1401691318,), (1401691325,), (1401691349,), (1401691350,), (1401691352,), (1401691355,), (1401691375,), (1401691377,), (1401691380,), (1401691383,), (1401691389,), (1401691397,), (1401691517,), (1401691519,), (1401691520,), (1401691521,), (1401691524,), (1401691563,), (1401691564,), (1401691567,), (1401691570,), (1401691574,), (1401691578,), (1401691613,), (1401691617,), (1401691621,), (1401691625,), (1401691649,), (1401691650,), (1401691651,), (1401691653,), (1401691655,), (1401691659,), (1401691680,), (1401691684,), (1401691687,), (1401691707,), (1401691833,), (1401691834,), (1401691835,), (1401691837,), (1401691839,), (1401691841,), (1401691855,), (1401691858,), (1401691864,), (1401691868,), (1401691871,), (1401691873,), (1401691894,), (1401691895,), (1401691897,), (1401691898,), (1401691899,), (1401691901,), (1401691904,), (1401691906,), (1401691910,), (1401691911,), (1401691913,), (1401691914,), (1401691921,), (1401691924,), (1401691925,), (1401691927,), (1401691931,), (1401691934,), (1401691945,), (1401691955,), (1401691967,), (1401691975,), (1401691978,), (1401691979,), (1401692022,), (1401692024,), (1401692026,), (1401692028,), (1401692030,), (1401692032,), (1401692039,), (1401692045,), (1401692051,), (1401692056,), (1401692061,), (1401692065,), (1401692072,), (1401692073,), (1401692074,), (1401692087,), (1401692090,), (1401692092,), (1401692119,), (1401692120,), (1401692128,), (1401692131,), (1401692136,), (1401692105,), (1401692109,), (1401692113,), (1401692116,), (1401692169,), (1401692175,), (1401692178,), (1401692183,), (1401692206,), (1401692208,), (1401692213,), (1401692221,), (1401692224,), (1401692226,), (1401692271,), (1401692280,), (1401692283,), (1401692286,), (1401692290,), (1401692292,), (1401692294,), (1401692331,), (1401692336,), (1401692339,), (1401692341,), (1401692344,), (1401692347,), (1401692419,), (1401692422,), (1401692424,), (1401692429,), (1401692474,), (1401692475,), (1401692479,), (1401692481,), (1401692485,), (1401692489,), (1401692517,), (1401692519,), (1401692521,), (1401692524,), (1401692556,), (1401692564,), (1401692572,), (1401692576,), (1401692581,), (1401692588,), (1401692683,), (1401692701,), (1401692704,), (1401692708,), (1401692774,), (1401692800,), (1401692805,), (1401692814,), (1401692826,), (1401692829,), (1401692897,), (1401692907,), (1401692912,), (1401692962,), (1401692963,), (1401692972,), (1401693009,), (1401693044,), (1401693082,), (1401693199,), (1401693233,), (1401693266,), (1401693273,), (1401693330,), (1401693337,), (1401693339,), (1401693542,), (1401693519,), (1401693716,), (1401693719,), (1401693721,), (1401693724,), (1401693728,), (1401693748,), (1401693750,), (1401693752,), (1401693755,), (1401693759,), (1401693762,), (1401693793,), (1401693795,), (1401693798,), (1401693802,), (1401693807,), (1401693844,), (1401693846,), (1401693849,), (1401693871,), (1401693873,), (1401693876,), (1401693878,), (1401693882,), (1401693903,), (1401693905,), (1401693907,), (1401693929,), (1401693931,), (1401693934,), (1401693938,), (1401693942,), (1401693961,), (1401693964,), (1401693966,), (1401693969,), (1401694006,), (1401694009,), (1401694012,), (1401694017,), (1401694147,), (1401694164,), (1401694173,), (1401694195,), (1401694200,), (1401694540,), (1401694537,), (1401694572,), (1401694576,), (1401694579,), (1401694606,), (1401694608,), (1401694609,), (1401694612,), (1401694615,), (1401694618,), (1401694664,), (1401694704,), (1401694706,), (1401694708,), (1401694712,), (1401694761,), (1401694858,), (1401694892,), (1401695091,), (1401695096,), (1401695105,), (1401695118,), (1401695121,), (1401695123,), (1401695212,), (1401695213,), (1401695216,), (1401695219,), (1401695223,), (1401695227,), (1401695288,), (1401695290,), (1401695321,), (1401695325,), (1401695335,), (1401695345,), (1401695377,), (1401695399,), (1401695411,), (1401695413,), (1401695414,), (1401695416,), (1401695419,), (1401695437,), (1401695439,), (1401695440,), (1401695443,), (1401695446,), (1401695449,), (1401695476,), (1401695484,), (1401695487,), (1401695491,), (1401695495,), (1401695514,), (1401695518,), (1401695520,), (1401695526,), (1401695528,), (1401695531,), (1401695540,), (1401695545,), (1401695588,), (1401695590,), (1401695592,), (1401695594,), (1401695598,), (1401695601,), (1401695646,), (1401695679,), (1401695714,), (1401696002,), (1401695882,), (1401695885,), (1401695889,), (1401695919,), (1401695967,), (1401696039,), (1401696040,), (1401696041,), (1401696043,), (1401696047,), (1401696072,), (1401696073,), (1401696075,), (1401696079,), (1401696084,), (1401696106,), (1401696108,), (1401696110,), (1401696113,), (1401696118,), (1401696145,), (1401696148,), (1401696151,), (1401696155,), (1401696177,), (1401696180,), (1401696181,), (1401696183,), (1401696187,), (1401696190,), (1401696226,), (1401696230,), (1401696265,), (1401696301,), (1401696337,), (1401696374,), (1401696542,), (1401696546,), (1401696550,), (1401696555,), (1401696558,), (1401696561,), (1401696581,), (1401696584,), (1401696586,), (1401696593,), (1401696595,), (1401696597,), (1401696600,), (1401696603,), (1401696607,), (1401696626,), (1401696627,), (1401696628,), (1401696630,), (1401696634,), (1401696663,), (1401696666,), (1401696676,), (1401696680,), (1401696714,), (1401696753,), (1401696790,), (1401696795,), (1401696803,), (1401696814,), (1401696815,), (1401696816,), (1401696843,), (1401696852,), (1401696859,), (1401696929,), (1401696930,), (1401696932,), (1401696935,), (1401696939,), (1401697153,), (1401697199,), (1401697236,), (1401697368,), (1401697430,), (1401698065,), (1401698007,), (1401699796,), (1401699839,), (1401699889,), (1401700349,), (1401700351,), (1401700352,), (1401700353,), (1401700355,), (1401700495,), (1401700527,), (1401700561,), (1401700595,), (1401700820,), (1401700824,), (1401700827,), (1401700850,), (1401700932,), (1401700933,), (1401700960,), (1401700971,), (1401700973,), (1401701012,), (1401701015,), (1401701018,), (1401701024,), (1401701029,), (1401701033,), (1401701058,), (1401701060,), (1401701063,), (1401701066,), (1401701069,), (1401701072,), (1401701080,), (1401701083,), (1401701085,), (1401701087,), (1401701091,), (1401701094,), (1401701097,), (1401701125,), (1401701127,), (1401701130,), (1401701133,), (1401701182,), (1401701184,), (1401701187,), (1401701190,), (1401701193,), (1401701195,), (1401701251,), (1401701341,), (1401701767,), (1401701755,), (1401701757,), (1401701759,), (1401701763,), (1401701796,), (1401701799,), (1401701801,), (1401701805,), (1401701818,), (1401701971,), (1401701974,), (1401701999,), (1401702000,), (1401702001,), (1401702003,), (1401702009,), (1401702033,), (1401702036,), (1401702039,), (1401702042,), (1401702162,), (1401702193,), (1401702222,), (1401702226,), (1401702236,), (1401702241,), (1401702269,), (1401702272,), (1401702276,), (1401702287,), (1401702289,), (1401702292,), (1401702315,), (1401702373,), (1401702558,), (1401702561,), (1401702564,), (1401702570,), (1401702578,), (1401702628,), (1401702630,), (1401702636,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30122025': {'nb_upload': 42, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29811670]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276] map_info['map_portfolio_photo'] : {29811670: [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276, 1401702272, 1401702269, 1401702241, 1401702236, 1401702226, 1401702222, 1401702193, 1401702162, 1401702042, 1401702039, 1401702036, 1401702033, 1401702009, 1401702003, 1401702001, 1401702000, 1401701999, 1401701974, 1401701971, 1401701818, 1401701805, 1401701801, 1401701799, 1401701796, 1401701763, 1401701759, 1401701757, 1401701755]} final : True mtd_id 4302 list_pids : [1401702636, 1401702630, 1401702628, 1401702578, 1401702570, 1401702564, 1401702561, 1401702558, 1401702373, 1401702315, 1401702292, 1401702289, 1401702287, 1401702276] Looping around the photos to save general results len do output : 1 /29811670Didn'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, '4289408') ('4302', '29811670', '1401702636', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702630', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702628', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702578', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702570', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702564', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702561', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702558', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702373', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702315', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702292', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702289', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702287', None, None, None, None, None, '4289408') ('4302', None, None, None, None, None, None, None, '4289408') ('4302', '29811670', '1401702276', None, None, None, None, None, '4289408') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29811670', 'None', None, None, None, None, '4289408'), ('4302', '29811670', '1401702636', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702630', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702628', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702578', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702570', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702564', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702561', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702558', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702373', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702315', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702292', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702289', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702287', None, None, None, None, None, '4289408'), ('4302', '29811670', '1401702276', None, None, None, None, None, '4289408')] time used for this insertion : 0.017829179763793945 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4350199699401855 time spend to save output : 0.018101215362548828 total time spend for step 5 : 2.4531211853027344 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 (4289408) 2.25user 2.45system 0:08.79elapsed 53%CPU (0avgtext+0avgdata 167372maxresident)k 40inputs+11328outputs (0major+76020minor)pagefaults 0swaps