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 : 33771 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 (3682052) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3682052) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671697 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3682052'] with mtr_portfolio_ids : ['26671697'] and first list_photo_ids : [] new path : /proc/33771/ Name: python3 Umask: 0002 State: R (running) Tgid: 33771 Ngid: 0 Pid: 33771 PPid: 33770 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 33771 NSpid: 33771 NSpgid: 32719 NSsid: 32719 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99564 kB VmRSS: 99564 kB RssAnon: 60176 kB RssFile: 39388 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '33771', 'Ngid': '0', 'Pid': '33771', 'PPid': '33770', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '33771', 'NSpid': '33771', 'NSpgid': '32719', 'NSsid': '32719', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99564 kB', 'VmRSS': '99564 kB', 'RssAnon': '60176 kB', 'RssFile': '39388 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '33771', '1107252', '0', '1107252', '866004', '99564', b'', 'marlene', '3682052') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26671697) 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 (3682052 ) ) 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 (26671697) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1382719706, 'portfolio_id': 26671697}, {'photo_id': 1382719700, 'portfolio_id': 26671697}, {'photo_id': 1382719698, 'portfolio_id': 26671697}, {'photo_id': 1382719695, 'portfolio_id': 26671697}, {'photo_id': 1382719692, 'portfolio_id': 26671697}, {'photo_id': 1382719686, 'portfolio_id': 26671697}, {'photo_id': 1382719683, 'portfolio_id': 26671697}, {'photo_id': 1382719681, 'portfolio_id': 26671697}, {'photo_id': 1382719680, 'portfolio_id': 26671697}, {'photo_id': 1382719618, 'portfolio_id': 26671697}, {'photo_id': 1382719616, 'portfolio_id': 26671697}, {'photo_id': 1382719614, 'portfolio_id': 26671697}, {'photo_id': 1382719604, 'portfolio_id': 26671697}, {'photo_id': 1382719596, 'portfolio_id': 26671697}, {'photo_id': 1382719590, 'portfolio_id': 26671697}, {'photo_id': 1382719571, 'portfolio_id': 26671697}, {'photo_id': 1382719568, 'portfolio_id': 26671697}, {'photo_id': 1382719564, 'portfolio_id': 26671697}, {'photo_id': 1382719560, 'portfolio_id': 26671697}, {'photo_id': 1382719555, 'portfolio_id': 26671697}, {'photo_id': 1382719552, 'portfolio_id': 26671697}, {'photo_id': 1382719535, 'portfolio_id': 26671697}, {'photo_id': 1382719531, 'portfolio_id': 26671697}, {'photo_id': 1382719528, 'portfolio_id': 26671697}, {'photo_id': 1382719520, 'portfolio_id': 26671697}, {'photo_id': 1382719515, 'portfolio_id': 26671697}, {'photo_id': 1382719509, 'portfolio_id': 26671697}, {'photo_id': 1382719504, 'portfolio_id': 26671697}, {'photo_id': 1382719499, 'portfolio_id': 26671697}, {'photo_id': 1382719496, 'portfolio_id': 26671697}, {'photo_id': 1382719470, 'portfolio_id': 26671697}, {'photo_id': 1382719466, 'portfolio_id': 26671697}, {'photo_id': 1382719462, 'portfolio_id': 26671697}, {'photo_id': 1382719461, 'portfolio_id': 26671697}, {'photo_id': 1382719460, 'portfolio_id': 26671697}, {'photo_id': 1382719411, 'portfolio_id': 26671697}, {'photo_id': 1382719410, 'portfolio_id': 26671697}, {'photo_id': 1382719409, 'portfolio_id': 26671697}, {'photo_id': 1382719401, 'portfolio_id': 26671697}, {'photo_id': 1382719400, 'portfolio_id': 26671697}, {'photo_id': 1382719397, 'portfolio_id': 26671697}, {'photo_id': 1382719396, 'portfolio_id': 26671697}] map_portfolio_id_photo_id: {26671697: [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590, 1382719571, 1382719568, 1382719564, 1382719560, 1382719555, 1382719552, 1382719535, 1382719531, 1382719528, 1382719520, 1382719515, 1382719509, 1382719504, 1382719499, 1382719496, 1382719470, 1382719466, 1382719462, 1382719461, 1382719460, 1382719411, 1382719410, 1382719409, 1382719401, 1382719400, 1382719397, 1382719396]} ##### 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.014984369277954102 #### 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 Sep 9 03:24: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26671697) 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 : 26671697 get user id for portfolio 26671697 get sub ptf for main ptf 26671697, type 3726 and hashtags ['metal', 'cartonnette', 'plastique', 'Teint_Dans_La_Masse', 'environnement', 'kraft', 'flou', 'papier', 'autre_refus', 'mal_croppe', 'Carton_brun', 'Carton_gris'] 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`=26671697 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','plastique','Teint_Dans_La_Masse','environnement','kraft','flou','papier','autre_refus','mal_croppe','Carton_brun','Carton_gris')) 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`=26671697 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','plastique','Teint_Dans_La_Masse','environnement','kraft','flou','papier','autre_refus','mal_croppe','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 26671697, 'sub_port_id': 26671731, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975550, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}, 'mal_croppe': {'main_port_id': 26671697, 'sub_port_id': 26671732, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975551, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}, 'autre_refus': {'main_port_id': 26671697, 'sub_port_id': 26671733, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975552, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 26671697, 'sub_port_id': 26671734, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975553, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}, 'plastique': {'main_port_id': 26671697, 'sub_port_id': 26671735, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975554, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}, 'environnement': {'main_port_id': 26671697, 'sub_port_id': 26671736, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975555, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}, 'kraft': {'main_port_id': 26671697, 'sub_port_id': 26671737, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975556, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}, 'papier': {'main_port_id': 26671697, 'sub_port_id': 26671738, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975557, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}, 'Carton_gris': {'main_port_id': 26671697, 'sub_port_id': 26671739, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975558, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}, 'cartonnette': {'main_port_id': 26671697, 'sub_port_id': 26671740, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975559, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}, 'flou': {'main_port_id': 26671697, 'sub_port_id': 26671741, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975560, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}, 'Carton_brun': {'main_port_id': 26671697, 'sub_port_id': 26671742, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975561, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26671731 , 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=26671697 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 (26671731) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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 26671732 , 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=26671697 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 (26671732) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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 26671733 , 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=26671697 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 (26671733) result : ((1382719579,), (1382719580,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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 26671734 , 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=26671697 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 (26671734) result : ((1382719545,), (1382719546,), (1382719577,), (1382719578,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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 26671735 , 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=26671697 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 (26671735) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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 26671736 , 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=26671697 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 (26671736) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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 26671737 , 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=26671697 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 (26671737) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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 26671738 , 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=26671697 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 (26671738) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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 26671739 , 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=26671697 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 (26671739) result : ((1382719547,), (1382719582,), (1382719583,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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 26671740 , 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=26671697 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 (26671740) result : ((1382719584,), (1382719585,), (1382719586,), (1382719587,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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 26671741 , 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=26671697 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 (26671741) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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 26671742 , 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=26671697 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 (26671742) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26671697) result : ((1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) 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 (1382719400,1382719700) 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`=26671697 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','plastique','Teint_Dans_La_Masse','environnement','kraft','flou','papier','autre_refus','mal_croppe','Carton_brun','Carton_gris')) 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`=26671697 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','plastique','Teint_Dans_La_Masse','environnement','kraft','flou','papier','autre_refus','mal_croppe','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 26671697, 'sub_port_id': 26671743, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975562, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}, 'mal_croppe': {'main_port_id': 26671697, 'sub_port_id': 26671744, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975563, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}, 'autre_refus': {'main_port_id': 26671697, 'sub_port_id': 26671745, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975564, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26671697, 'sub_port_id': 26671746, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975565, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}, 'plastique': {'main_port_id': 26671697, 'sub_port_id': 26671747, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975566, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}, 'environnement': {'main_port_id': 26671697, 'sub_port_id': 26671748, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975567, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}, 'kraft': {'main_port_id': 26671697, 'sub_port_id': 26671749, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975568, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}, 'papier': {'main_port_id': 26671697, 'sub_port_id': 26671750, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975569, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}, 'Carton_gris': {'main_port_id': 26671697, 'sub_port_id': 26671751, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975570, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}, 'cartonnette': {'main_port_id': 26671697, 'sub_port_id': 26671752, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975571, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}, 'flou': {'main_port_id': 26671697, 'sub_port_id': 26671753, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975572, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}, 'Carton_brun': {'main_port_id': 26671697, 'sub_port_id': 26671754, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17975573, 'last_updated_at': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_desc': datetime.datetime(2025, 9, 9, 3, 22, 56), 'last_updated_at_asc': datetime.datetime(2025, 9, 9, 3, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671743,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671731 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671744,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671732 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671745,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671733 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671746,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671734 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671747,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671735 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671748,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671736 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671749,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671737 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671750,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671738 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671751,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671739 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671752,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671740 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671753,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671741 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26671754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26671742 lien utilise dans velours : https://marlene.fotonower.com/velours/26671743,26671744,26671745,26671746,26671747,26671748,26671749,26671750,26671751,26671752,26671753,26671754?tags=metal,mal_croppe,autre_refus,Teint_Dans_La_Masse,plastique,environnement,kraft,papier,Carton_gris,cartonnette,flou,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26671697]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590] map_info['map_portfolio_photo'] : {26671697: [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590, 1382719571, 1382719568, 1382719564, 1382719560, 1382719555, 1382719552, 1382719535, 1382719531, 1382719528, 1382719520, 1382719515, 1382719509, 1382719504, 1382719499, 1382719496, 1382719470, 1382719466, 1382719462, 1382719461, 1382719460, 1382719411, 1382719410, 1382719409, 1382719401, 1382719400, 1382719397, 1382719396]} final : False mtd_id 4302 list_pids : [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590] Looping around the photos to save general results len do output : 1 /26671697. 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, '3682052') ('4302', '26671697', '1382719706', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719700', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719698', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719695', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719692', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719686', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719683', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719681', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719680', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719618', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719616', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719614', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719604', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719596', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719590', None, None, None, None, None, '3682052') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '26671697', "{'metal': 26671731, 'mal_croppe': 26671732, 'autre_refus': 26671733, 'Teint_Dans_La_Masse': 26671734, 'plastique': 26671735, 'environnement': 26671736, 'kraft': 26671737, 'papier': 26671738, 'Carton_gris': 26671739, 'cartonnette': 26671740, 'flou': 26671741, 'Carton_brun': 26671742}", None, None, None, None, '3682052'), ('4302', '26671697', '1382719706', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719700', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719698', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719695', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719692', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719686', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719683', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719681', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719680', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719618', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719616', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719614', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719604', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719596', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719590', None, None, None, None, None, '3682052')] time used for this insertion : 0.015397787094116211 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4214198589324951 time spend to save output : 0.01608419418334961 total time spend for step 1 : 0.4375040531158447 step2:final Tue Sep 9 03:24: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 (26671697) 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 26671697 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1382719400,1382719401,1382719397,1382719396,1382719411,1382719410,1382719409,1382719470,1382719466,1382719462,1382719461,1382719460,1382719520,1382719515,1382719509,1382719504,1382719499,1382719496,1382719535,1382719531,1382719528,1382719571,1382719568,1382719564,1382719560,1382719555,1382719552,1382719618,1382719706,1382719616,1382719700,1382719614,1382719698,1382719604,1382719695,1382719596,1382719692,1382719590,1382719686,1382719683,1382719681,1382719680); 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([26671697]) Inside saveOutput : final : False verbose : True original output for save of step final : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} new output for save of step final : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590] map_info['map_portfolio_photo'] : {26671697: [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590, 1382719571, 1382719568, 1382719564, 1382719560, 1382719555, 1382719552, 1382719535, 1382719531, 1382719528, 1382719520, 1382719515, 1382719509, 1382719504, 1382719499, 1382719496, 1382719470, 1382719466, 1382719462, 1382719461, 1382719460, 1382719411, 1382719410, 1382719409, 1382719401, 1382719400, 1382719397, 1382719396]} final : False mtd_id 4302 list_pids : [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590] Looping around the photos to save general results len do output : 15 /1382719706.Didn't retrieve data . /1382719700.Didn't retrieve data . /1382719698.Didn't retrieve data . /1382719695.Didn't retrieve data . /1382719692.Didn't retrieve data . /1382719686.Didn't retrieve data . /1382719683.Didn't retrieve data . /1382719681.Didn't retrieve data . /1382719680.Didn't retrieve data . /1382719618.Didn't retrieve data . /1382719616.Didn't retrieve data . /1382719614.Didn't retrieve data . /1382719604.Didn't retrieve data . /1382719596.Didn't retrieve data . /1382719590.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, '3682052') ('4302', '26671697', '1382719706', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719700', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719698', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719695', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719692', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719686', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719683', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719681', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719680', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719618', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719616', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719614', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719604', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719596', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719590', None, None, None, None, None, '3682052') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '26671697', '1382719706', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719700', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719698', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719695', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719692', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719686', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719683', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719681', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719680', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719618', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719616', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719614', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719604', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719596', '0.03486828632794276', None, None, None, None, '3682052'), ('4302', '26671697', '1382719590', '0.03486828632794276', None, None, None, None, '3682052')] time used for this insertion : 0.03327679634094238 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07295370101928711 time spend to save output : 0.03396463394165039 total time spend for step 2 : 0.1069183349609375 step3:velours_tree Tue Sep 9 03:24:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26671697: [{'metal': 26671731, 'mal_croppe': 26671732, 'autre_refus': 26671733, 'Teint_Dans_La_Masse': 26671734, 'plastique': 26671735, 'environnement': 26671736, 'kraft': 26671737, 'papier': 26671738, 'Carton_gris': 26671739, 'cartonnette': 26671740, 'flou': 26671741, 'Carton_brun': 26671742}]} input_args_next_step : {26671697: ()} output_args : {26671697: [{'metal': 26671731, 'mal_croppe': 26671732, 'autre_refus': 26671733, 'Teint_Dans_La_Masse': 26671734, 'plastique': 26671735, 'environnement': 26671736, 'kraft': 26671737, 'papier': 26671738, 'Carton_gris': 26671739, 'cartonnette': 26671740, 'flou': 26671741, 'Carton_brun': 26671742}]} args : 26671697 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 : ({'metal': 26671731, 'mal_croppe': 26671732, 'autre_refus': 26671733, 'Teint_Dans_La_Masse': 26671734, 'plastique': 26671735, 'environnement': 26671736, 'kraft': 26671737, 'papier': 26671738, 'Carton_gris': 26671739, 'cartonnette': 26671740, 'flou': 26671741, 'Carton_brun': 26671742},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26671697) 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([26671697]) 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.2816143035888672 time spend to save output : 3.9577484130859375e-05 total time spend for step 3 : 0.28165388107299805 step4:send_mail_cod Tue Sep 9 03:24:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} input_args_next_step : {1382719706: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719706 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719700 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719698 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719695 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719692 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719686 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719683 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719681 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719680 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719618 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719616 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719614 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719604 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719596 depend.output_id : 0 input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ()} output_args : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',)} args : 1382719590 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 : {26671697: [{'metal': 26671731, 'mal_croppe': 26671732, 'autre_refus': 26671733, 'Teint_Dans_La_Masse': 26671734, 'plastique': 26671735, 'environnement': 26671736, 'kraft': 26671737, 'papier': 26671738, 'Carton_gris': 26671739, 'cartonnette': 26671740, 'flou': 26671741, 'Carton_brun': 26671742}]} input_args_next_step : {1382719706: ('0.03486828632794276',), 1382719700: ('0.03486828632794276',), 1382719698: ('0.03486828632794276',), 1382719695: ('0.03486828632794276',), 1382719692: ('0.03486828632794276',), 1382719686: ('0.03486828632794276',), 1382719683: ('0.03486828632794276',), 1382719681: ('0.03486828632794276',), 1382719680: ('0.03486828632794276',), 1382719618: ('0.03486828632794276',), 1382719616: ('0.03486828632794276',), 1382719614: ('0.03486828632794276',), 1382719604: ('0.03486828632794276',), 1382719596: ('0.03486828632794276',), 1382719590: ('0.03486828632794276',), 26671697: ()} output_args : {26671697: [{'metal': 26671731, 'mal_croppe': 26671732, 'autre_refus': 26671733, 'Teint_Dans_La_Masse': 26671734, 'plastique': 26671735, 'environnement': 26671736, 'kraft': 26671737, 'papier': 26671738, 'Carton_gris': 26671739, 'cartonnette': 26671740, 'flou': 26671741, 'Carton_brun': 26671742}]} args : 26671697 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 :16, first value : ('0.03486828632794276',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26671697) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1382719706,1382719700,1382719698,1382719695,1382719692,1382719686,1382719683,1382719681,1382719680,1382719618,1382719616,1382719614,1382719604,1382719596,1382719590) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1382719590 begin to download photo : 1382719616 begin to download photo : 1382719683 begin to download photo : 1382719698 download finish for photo 1382719698 begin to download photo : 1382719700 download finish for photo 1382719616 begin to download photo : 1382719618 download finish for photo 1382719683 begin to download photo : 1382719686 download finish for photo 1382719590 begin to download photo : 1382719596 download finish for photo 1382719618 begin to download photo : 1382719680 download finish for photo 1382719700 begin to download photo : 1382719706 download finish for photo 1382719686 begin to download photo : 1382719692 download finish for photo 1382719596 begin to download photo : 1382719604 download finish for photo 1382719706 download finish for photo 1382719680 begin to download photo : 1382719681 download finish for photo 1382719692 begin to download photo : 1382719695 download finish for photo 1382719604 begin to download photo : 1382719614 download finish for photo 1382719681 download finish for photo 1382719695 download finish for photo 1382719614 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette266717311757381099/ imagette266717321757381099/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P26671697_09-09-2025_03_24_59.pdf 26671731 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671731 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266717311757381099 26671732 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671732 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266717321757381099 26671733 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671733 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382719579: '1757380875_473948_1382719397_03a55e995b98c53e38243b2028dc5a38_rle_crop_3952022899_0.png', 1382719580: '1757380875_473948_1382719396_7f1b0c7636b4dd7dfc2d652a083b1010_rle_crop_3952022918_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/465faedc2b1f2bfc471041fe3dd93bc1_24091279.png change filename to text .imagette266717331757381099/ imagette266717331757381099/1757380875_473948_1382719397_03a55e995b98c53e38243b2028dc5a38_rle_crop_3952022899_0.png.png imagette266717331757381099/1757380875_473948_1382719396_7f1b0c7636b4dd7dfc2d652a083b1010_rle_crop_3952022918_0.png.png imagette266717351757381099/ imagette266717371757381100/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/465faedc2b1f2bfc471041fe3dd93bc1_45357105.png imagette266717331757381099 26671735 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671735 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266717351757381099 26671737 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671737 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266717371757381100 26671740 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671740 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382719584: '1757380875_473948_1382719397_03a55e995b98c53e38243b2028dc5a38_rle_crop_3952022898_0.png', 1382719585: '1757380875_473948_1382719397_03a55e995b98c53e38243b2028dc5a38_rle_crop_3952022893_0.png', 1382719586: '1757380875_473948_1382719396_7f1b0c7636b4dd7dfc2d652a083b1010_rle_crop_3952022917_0.png', 1382719587: '1757380875_473948_1382719396_7f1b0c7636b4dd7dfc2d652a083b1010_rle_crop_3952022912_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/675482df2fa12ed696a3a18ea7fd8139_54015186.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/f2082ea2ce62dc27c90fbaf22f19e881_62334868.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/675482df2fa12ed696a3a18ea7fd8139_7373903.png change filename to text .imagette266717401757381100/ imagette266717401757381100/1757380875_473948_1382719396_7f1b0c7636b4dd7dfc2d652a083b1010_rle_crop_3952022912_0.png.png imagette266717401757381100/1757380875_473948_1382719397_03a55e995b98c53e38243b2028dc5a38_rle_crop_3952022893_0.png.png imagette266717401757381100/1757380875_473948_1382719396_7f1b0c7636b4dd7dfc2d652a083b1010_rle_crop_3952022917_0.png.png imagette266717401757381100/1757380875_473948_1382719397_03a55e995b98c53e38243b2028dc5a38_rle_crop_3952022898_0.png.png imagette266717411757381100/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/f2082ea2ce62dc27c90fbaf22f19e881_39163365.png imagette266717401757381100 26671741 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671741 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266717411757381100 26671734 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671734 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382719545: '1757380825_472462_1382719409_6a0a59377186e8293c3483ce98baa342_rle_crop_3952022298_0.png', 1382719546: '1757380825_472462_1382719409_6a0a59377186e8293c3483ce98baa342_rle_crop_3952022300_0.png', 1382719577: '1757380875_473948_1382719397_03a55e995b98c53e38243b2028dc5a38_rle_crop_3952022897_0.png', 1382719578: '1757380875_473948_1382719396_7f1b0c7636b4dd7dfc2d652a083b1010_rle_crop_3952022916_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/de7a013329736c1acd4f708706d853c5_33985237.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/7ef025b9c2fa3d4823a5cb877d5048d1_95363350.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/90ab282d1a4c24e7bd535691b63cf409_27111291.png change filename to text .imagette266717341757381100/ imagette266717341757381100/1757380875_473948_1382719397_03a55e995b98c53e38243b2028dc5a38_rle_crop_3952022897_0.png.png imagette266717341757381100/1757380825_472462_1382719409_6a0a59377186e8293c3483ce98baa342_rle_crop_3952022298_0.png.png imagette266717341757381100/1757380825_472462_1382719409_6a0a59377186e8293c3483ce98baa342_rle_crop_3952022300_0.png.png imagette266717341757381100/1757380875_473948_1382719396_7f1b0c7636b4dd7dfc2d652a083b1010_rle_crop_3952022916_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/90ab282d1a4c24e7bd535691b63cf409_67155371.png imagette266717341757381100 26671739 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671739 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382719547: '1757380825_472462_1382719409_6a0a59377186e8293c3483ce98baa342_rle_crop_3952022296_0.png', 1382719582: '1757380875_473948_1382719401_bfe169e461648fc3f8cbec673b6130e0_rle_crop_3952022867_0.png', 1382719583: '1757380875_473948_1382719400_f966d2a1adcadcee745bf2bc5c5a3f4d_rle_crop_3952022881_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/3f1c6c90b404787bdfb71784a0a36030_81613759.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/ffb1f313ee4aca7fd9083a8b6f38d0f1_5047020.png change filename to text .imagette266717391757381100/ imagette266717391757381100/1757380825_472462_1382719409_6a0a59377186e8293c3483ce98baa342_rle_crop_3952022296_0.png.png imagette266717391757381100/1757380875_473948_1382719401_bfe169e461648fc3f8cbec673b6130e0_rle_crop_3952022867_0.png.png imagette266717391757381100/1757380875_473948_1382719400_f966d2a1adcadcee745bf2bc5c5a3f4d_rle_crop_3952022881_0.png.png imagette266717421757381100/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/ffb1f313ee4aca7fd9083a8b6f38d0f1_66951796.png imagette266717391757381100 26671742 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette266717421757381100 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26671697 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26671743,26671744,26671745,26671746,26671747,26671748,26671749,26671750,26671751,26671752,26671753,26671754?tags=metal,mal_croppe,autre_refus,Teint_Dans_La_Masse,plastique,environnement,kraft,papier,Carton_gris,cartonnette,flou,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1382719706] : ('0.03486828632794276',) no score found for photo 1382719706 We are sending mail with results at report@fotonower.com args[1382719700] : ('0.03486828632794276',) no score found for photo 1382719700 We are sending mail with results at report@fotonower.com args[1382719698] : ('0.03486828632794276',) no score found for photo 1382719698 We are sending mail with results at report@fotonower.com args[1382719695] : ('0.03486828632794276',) no score found for photo 1382719695 We are sending mail with results at report@fotonower.com args[1382719692] : ('0.03486828632794276',) no score found for photo 1382719692 We are sending mail with results at report@fotonower.com args[1382719686] : ('0.03486828632794276',) no score found for photo 1382719686 We are sending mail with results at report@fotonower.com args[1382719683] : ('0.03486828632794276',) no score found for photo 1382719683 We are sending mail with results at report@fotonower.com args[1382719681] : ('0.03486828632794276',) no score found for photo 1382719681 We are sending mail with results at report@fotonower.com args[1382719680] : ('0.03486828632794276',) no score found for photo 1382719680 We are sending mail with results at report@fotonower.com args[1382719618] : ('0.03486828632794276',) no score found for photo 1382719618 We are sending mail with results at report@fotonower.com args[1382719616] : ('0.03486828632794276',) no score found for photo 1382719616 We are sending mail with results at report@fotonower.com args[1382719614] : ('0.03486828632794276',) no score found for photo 1382719614 We are sending mail with results at report@fotonower.com args[1382719604] : ('0.03486828632794276',) no score found for photo 1382719604 We are sending mail with results at report@fotonower.com args[1382719596] : ('0.03486828632794276',) no score found for photo 1382719596 We are sending mail with results at report@fotonower.com args[1382719590] : ('0.03486828632794276',) no score found for photo 1382719590 We are sending mail with results at report@fotonower.com refus_total : 0.03486828632794276 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671697 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_P26671697_09-09-2025_03_24_59.pdf results_Auto_P26671697_09-09-2025_03_24_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671697_09-09-2025_03_24_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26671697','results_Auto_P26671697_09-09-2025_03_24_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671697_09-09-2025_03_24_59.pdf','pdf','','0.15','0.03486828632794276') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26671697]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590] map_info['map_portfolio_photo'] : {26671697: [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590, 1382719571, 1382719568, 1382719564, 1382719560, 1382719555, 1382719552, 1382719535, 1382719531, 1382719528, 1382719520, 1382719515, 1382719509, 1382719504, 1382719499, 1382719496, 1382719470, 1382719466, 1382719462, 1382719461, 1382719460, 1382719411, 1382719410, 1382719409, 1382719401, 1382719400, 1382719397, 1382719396]} final : False mtd_id 4302 list_pids : [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590] 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, '3682052') ('4302', '26671697', '1382719706', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719700', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719698', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719695', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719692', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719686', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719683', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719681', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719680', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719618', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719616', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719614', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719604', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719596', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719590', None, None, None, None, None, '3682052') 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', '26671697', '1382719706', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719700', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719698', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719695', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719692', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719686', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719683', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719681', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719680', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719618', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719616', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719614', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719604', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719596', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719590', None, None, None, None, None, '3682052')] time used for this insertion : 0.04078817367553711 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.695267915725708 time spend to save output : 0.04103708267211914 total time spend for step 4 : 2.736304998397827 step5:split_time_score Tue Sep 9 03:25:02 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 : ['26671697'] 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 : [('26671697',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26671697) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1382719698: {'path': 'temp/1757381099_33771_1382719698_f2f730b0f12e3811f5bbb265ed36939f.jpg', 'extension': 'jpg'}, 1382719700: {'path': 'temp/1757381099_33771_1382719700_afd1754d93297d753160f3fe746d5142.jpg', 'extension': 'jpg'}, 1382719706: {'path': 'temp/1757381099_33771_1382719706_17a9cdee8aed29bbbd6de148ea4c296d.jpg', 'extension': 'jpg'}, 1382719616: {'path': 'temp/1757381099_33771_1382719616_80f99f136e9a8e0103211bcc6b4e3666.jpg', 'extension': 'jpg'}, 1382719618: {'path': 'temp/1757381099_33771_1382719618_98a221e396bf3f261c63d84c6c13e4c9.jpg', 'extension': 'jpg'}, 1382719680: {'path': 'temp/1757381099_33771_1382719680_42030efb0f6506a435b4da8d9c5a7719.jpg', 'extension': 'jpg'}, 1382719681: {'path': 'temp/1757381099_33771_1382719681_ddf59c86e55132a8192c2ae601c04a84.jpg', 'extension': 'jpg'}, 1382719683: {'path': 'temp/1757381099_33771_1382719683_31c8c3fe3396aa87c34d8117d9682b21.jpg', 'extension': 'jpg'}, 1382719686: {'path': 'temp/1757381099_33771_1382719686_06bdfe18bd58c834eb95a49970a66955.jpg', 'extension': 'jpg'}, 1382719692: {'path': 'temp/1757381099_33771_1382719692_0890b3428b49b7ee13990553ef24b2a8.jpg', 'extension': 'jpg'}, 1382719695: {'path': 'temp/1757381099_33771_1382719695_250d7d2737122109176b2ff2f6288dc0.jpg', 'extension': 'jpg'}, 1382719590: {'path': 'temp/1757381099_33771_1382719590_e7dc58667b2c850506dc28e3cc24e071.jpg', 'extension': 'jpg'}, 1382719596: {'path': 'temp/1757381099_33771_1382719596_7632d4ebd26aac59b7e92be56a47846c.jpg', 'extension': 'jpg'}, 1382719604: {'path': 'temp/1757381099_33771_1382719604_892fb0d9e55ed36b150cf77701aa74e5.jpg', 'extension': 'jpg'}, 1382719614: {'path': 'temp/1757381099_33771_1382719614_e625214e7f0070100bc32bc66b8fec6f.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 = 26671697; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26671697 group by h (('03', 42),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26671697 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 (26671697) 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 (26671697) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09092025 26671697 Nombre de photos uploadées : 42 / 23040 (0%) 09092025 26671697 Nombre de photos taguées (types de déchets): 0 / 42 (0%) 09092025 26671697 Nombre de photos taguées (volume) : 0 / 42 (0%) [{'photo_id': 1382719400, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/f966d2a1adcadcee745bf2bc5c5a3f4d.jpg', 'username': None, 'uploaded_at': 1757380592, 'text': 'image_09092025_03_15_23_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382719401, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/bfe169e461648fc3f8cbec673b6130e0.jpg', 'username': None, 'uploaded_at': 1757380592, 'text': 'image_09092025_03_15_23_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382719397, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/03a55e995b98c53e38243b2028dc5a38.jpg', 'username': None, 'uploaded_at': 1757380592, 'text': 'image_09092025_03_15_44_010146m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1382719396, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/9/7f1b0c7636b4dd7dfc2d652a083b1010.jpg', 'username': None, 'uploaded_at': 1757380592, 'text': 'image_09092025_03_15_44_010146m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ?????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026488304138183594 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26671697, '2025-09-09' ) 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-09-09' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2253579,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.1952519416809082 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= 2253579 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26665951, 'dashboard_result_id': 14922499, '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_P26665951_09-09-2025_00_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26666470, 'dashboard_result_id': 14922500, '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_P26666470_09-09-2025_00_34_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26666997, 'dashboard_result_id': 14922501, '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_P26666997_09-09-2025_00_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26667314, 'dashboard_result_id': 14922502, '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_P26667314_09-09-2025_01_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26668399, 'dashboard_result_id': 14922503, '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_P26668399_09-09-2025_01_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26668763, 'dashboard_result_id': 14922504, '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_P26668763_09-09-2025_02_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26669124, 'dashboard_result_id': 14922505, '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_P26669124_09-09-2025_02_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26669820, 'dashboard_result_id': 14922506, '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_P26669820_09-09-2025_02_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26670286, 'dashboard_result_id': 14922507, '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_P26670286_09-09-2025_02_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26670744, 'dashboard_result_id': 14922508, '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_P26670744_09-09-2025_03_04_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26671134, 'dashboard_result_id': 14922509, '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_P26671134_09-09-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, 'pht': 3726}}"}, {'dashboat_entry_day': 2253579, 'dashboard_run_id': 2261748, 'mtr_portfolio_id': 26671697, 'dashboard_result_id': 14922510, '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_P26671697_09-09-2025_03_22_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, '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 = 26665951 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': 3681317, 'mtr_portfolio_id': 26665951, 'created_at': datetime.datetime(2025, 9, 9, 0, 18, 57), 'result': '0.046662394749032415', 'result_long': None, 'result_double': None}] Qualite : 0.046662394749032415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26665951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26665951_09-09-2025_00_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26665951 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_P26665951_09-09-2025_00_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, 'pht': 3726}}" where mtr_portfolio_id = 26665951 and dashboard_run_id = 2261748 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`=26665951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922499, 0.046662394749032415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26665951_09-09-2025_00_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26665956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26665957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26665958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26665959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26665960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26665961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26665962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26665963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26665964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26665965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26665966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26665967, '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 = 26666470 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': 3681360, 'mtr_portfolio_id': 26666470, 'created_at': datetime.datetime(2025, 9, 9, 0, 34, 59), 'result': '0.054882241324818885', 'result_long': None, 'result_double': None}] Qualite : 0.054882241324818885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26666470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666470_09-09-2025_00_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26666470 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_P26666470_09-09-2025_00_34_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, 'pht': 3726}}" where mtr_portfolio_id = 26666470 and dashboard_run_id = 2261748 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`=26666470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922500, 0.054882241324818885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666470_09-09-2025_00_34_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26666477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26666478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26666479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26666480, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26666481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26666482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26666483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26666484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26666485, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26666486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26666487, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26666488, '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 = 26666997 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': 3681419, 'mtr_portfolio_id': 26666997, 'created_at': datetime.datetime(2025, 9, 9, 0, 48, 58), 'result': '0.061625099150971356', 'result_long': None, 'result_double': None}] Qualite : 0.061625099150971356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26666997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666997_09-09-2025_00_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26666997 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_P26666997_09-09-2025_00_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, 'pht': 3726}}" where mtr_portfolio_id = 26666997 and dashboard_run_id = 2261748 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`=26666997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922501, 0.061625099150971356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26666997_09-09-2025_00_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26667000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667011, '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 = 26667314 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': 3681455, 'mtr_portfolio_id': 26667314, 'created_at': datetime.datetime(2025, 9, 9, 1, 33), 'result': '0.07097795704242905', 'result_long': None, 'result_double': None}] Qualite : 0.07097795704242905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26667314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26667314_09-09-2025_01_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26667314 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_P26667314_09-09-2025_01_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, 'pht': 3726}}" where mtr_portfolio_id = 26667314 and dashboard_run_id = 2261748 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`=26667314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922502, 0.07097795704242905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26667314_09-09-2025_01_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26667321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26667322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26667323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26667324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26667325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26667326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26667327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26667328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26667329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26667330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26667331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26667332, '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 = 26668399 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': 3681594, 'mtr_portfolio_id': 26668399, 'created_at': datetime.datetime(2025, 9, 9, 1, 48, 57), 'result': '0.04110695882135456', 'result_long': None, 'result_double': None}] Qualite : 0.04110695882135456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26668399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668399_09-09-2025_01_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26668399 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_P26668399_09-09-2025_01_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, 'pht': 3726}}" where mtr_portfolio_id = 26668399 and dashboard_run_id = 2261748 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`=26668399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922503, 0.04110695882135456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668399_09-09-2025_01_48_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668404, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668412, '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 = 26668763 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': 3681635, 'mtr_portfolio_id': 26668763, 'created_at': datetime.datetime(2025, 9, 9, 2, 2, 57), 'result': '0.028900682519440953', 'result_long': None, 'result_double': None}] Qualite : 0.028900682519440953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26668763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668763_09-09-2025_02_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26668763 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_P26668763_09-09-2025_02_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, 'pht': 3726}}" where mtr_portfolio_id = 26668763 and dashboard_run_id = 2261748 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`=26668763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922504, 0.028900682519440953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26668763_09-09-2025_02_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26668767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26668768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26668769, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26668770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26668771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26668772, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26668773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26668774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26668775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26668776, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26668777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26668778, '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 = 26669124 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': 3681698, 'mtr_portfolio_id': 26669124, 'created_at': datetime.datetime(2025, 9, 9, 2, 19, 1), 'result': '0.039077998133629235', 'result_long': None, 'result_double': None}] Qualite : 0.039077998133629235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26669124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669124_09-09-2025_02_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26669124 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_P26669124_09-09-2025_02_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, 'pht': 3726}}" where mtr_portfolio_id = 26669124 and dashboard_run_id = 2261748 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`=26669124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922505, 0.039077998133629235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669124_09-09-2025_02_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669153, '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 = 26669820 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': 3681756, 'mtr_portfolio_id': 26669820, 'created_at': datetime.datetime(2025, 9, 9, 2, 33, 27), 'result': '0.03782897775463108', 'result_long': None, 'result_double': None}] Qualite : 0.03782897775463108 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26669820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669820_09-09-2025_02_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26669820 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_P26669820_09-09-2025_02_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, 'pht': 3726}}" where mtr_portfolio_id = 26669820 and dashboard_run_id = 2261748 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`=26669820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922506, 0.03782897775463108, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26669820_09-09-2025_02_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26669828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26669829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26669830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26669831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26669832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26669833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26669834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26669835, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26669836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26669837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26669838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26669839, '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 = 26670286 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': 3681808, 'mtr_portfolio_id': 26670286, 'created_at': datetime.datetime(2025, 9, 9, 2, 48, 58), 'result': '0.04562831883154974', 'result_long': None, 'result_double': None}] Qualite : 0.04562831883154974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26670286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670286_09-09-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26670286 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_P26670286_09-09-2025_02_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, 'pht': 3726}}" where mtr_portfolio_id = 26670286 and dashboard_run_id = 2261749 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`=26670286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922507, 0.04562831883154974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670286_09-09-2025_02_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670290, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670301, '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 = 26670744 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': 3681875, 'mtr_portfolio_id': 26670744, 'created_at': datetime.datetime(2025, 9, 9, 3, 4, 57), 'result': '0.0625638514028179', 'result_long': None, 'result_double': None}] Qualite : 0.0625638514028179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26670744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670744_09-09-2025_03_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26670744 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_P26670744_09-09-2025_03_04_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, 'pht': 3726}}" where mtr_portfolio_id = 26670744 and dashboard_run_id = 2261749 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`=26670744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922508, 0.0625638514028179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26670744_09-09-2025_03_04_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26670763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26670764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26670765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26670766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26670767, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26670768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26670769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26670770, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26670771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26670772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26670773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26670774, '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 = 26671134 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': 3681967, 'mtr_portfolio_id': 26671134, 'created_at': datetime.datetime(2025, 9, 9, 3, 18, 56), 'result': '0.040897300538202924', 'result_long': None, 'result_double': None}] Qualite : 0.040897300538202924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26671134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671134_09-09-2025_03_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26671134 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_P26671134_09-09-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, 'pht': 3726}}" where mtr_portfolio_id = 26671134 and dashboard_run_id = 2261749 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`=26671134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922509, 0.040897300538202924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671134_09-09-2025_03_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26671158, '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 = 26671697 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': 3682052, 'mtr_portfolio_id': 26671697, 'created_at': datetime.datetime(2025, 9, 9, 3, 24, 58), 'result': '0.03486828632794276', 'result_long': None, 'result_double': None}] Qualite : 0.03486828632794276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26671697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671697_09-09-2025_03_24_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26671697 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_P26671697_09-09-2025_03_24_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, 'pht': 3726}}" where mtr_portfolio_id = 26671697 and dashboard_run_id = 2261749 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`=26671697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14922510, 0.03486828632794276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26671697_09-09-2025_03_24_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26671731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26671732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26671733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26671734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26671735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26671736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26671737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26671738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26671739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26671740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26671741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26671742, '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 (26665951,26666470,26666997,26667314,26668399,26668763,26669124,26669820,26670286,26670744,26671134,26671697) result : ((1382694087,), (1382694183,), (1382694245,), (1382694319,), (1382694895,), (1382694983,), (1382695070,), (1382695164,), (1382695818,), (1382695895,), (1382695984,), (1382696065,), (1382696130,), (1382696190,), (1382696400,), (1382696407,), (1382696438,), (1382696470,), (1382696837,), (1382696868,), (1382696928,), (1382696966,), (1382696999,), (1382697040,), (1382697100,), (1382697146,), (1382697174,), (1382697194,), (1382697215,), (1382697218,), (1382697224,), (1382697271,), (1382697272,), (1382697291,), (1382697326,), (1382697385,), (1382697470,), (1382697558,), (1382697652,), (1382698439,), (1382698441,), (1382698443,), (1382698446,), (1382698451,), (1382698455,), (1382698698,), (1382698753,), (1382698793,), (1382698825,), (1382698855,), (1382698894,), (1382698911,), (1382698928,), (1382698938,), (1382698948,), (1382698964,), (1382699012,), (1382699014,), (1382699017,), (1382699021,), (1382699030,), (1382699038,), (1382699054,), (1382699056,), (1382699058,), (1382699060,), (1382699061,), (1382699073,), (1382699077,), (1382699081,), (1382699083,), (1382699089,), (1382699095,), (1382699099,), (1382699104,), (1382699110,), (1382699281,), (1382699199,), (1382699230,), (1382699263,), (1382699321,), (1382699322,), (1382699324,), (1382699328,), (1382699395,), (1382699396,), (1382699398,), (1382699403,), (1382699429,), (1382699433,), (1382699438,), (1382699441,), (1382699466,), (1382699467,), (1382699468,), (1382699473,), (1382699477,), (1382699484,), (1382699612,), (1382699647,), (1382699675,), (1382699722,), (1382700012,), (1382700045,), (1382700074,), (1382700103,), (1382700433,), (1382700465,), (1382700502,), (1382700533,), (1382700741,), (1382700750,), (1382700754,), (1382700756,), (1382700958,), (1382700969,), (1382700971,), (1382700974,), (1382700978,), (1382700981,), (1382701248,), (1382701333,), (1382701237,), (1382701240,), (1382701241,), (1382701244,), (1382701310,), (1382701311,), (1382701313,), (1382701318,), (1382701321,), (1382701324,), (1382701330,), (1382701341,), (1382701347,), (1382701362,), (1382701364,), (1382701366,), (1382701369,), (1382701375,), (1382701408,), (1382701411,), (1382701412,), (1382701416,), (1382701419,), (1382701439,), (1382701441,), (1382701449,), (1382701453,), (1382701463,), (1382701520,), (1382701522,), (1382701525,), (1382701530,), (1382701549,), (1382701552,), (1382701555,), (1382701589,), (1382701591,), (1382701592,), (1382701595,), (1382701616,), (1382701617,), (1382701619,), (1382701623,), (1382701626,), (1382701631,), (1382701641,), (1382701642,), (1382701643,), (1382701645,), (1382701651,), (1382701663,), (1382701668,), (1382701673,), (1382701677,), (1382701680,), (1382701685,), (1382701689,), (1382701690,), (1382701692,), (1382701694,), (1382701696,), (1382701707,), (1382701710,), (1382701714,), (1382701716,), (1382701718,), (1382701720,), (1382701734,), (1382701741,), (1382701744,), (1382701747,), (1382701749,), (1382701751,), (1382701762,), (1382701769,), (1382701773,), (1382701777,), (1382701784,), (1382701755,), (1382701758,), (1382701791,), (1382701794,), (1382701798,), (1382701802,), (1382701805,), (1382701808,), (1382701828,), (1382701830,), (1382701832,), (1382701835,), (1382701841,), (1382701854,), (1382701856,), (1382701908,), (1382701922,), (1382701925,), (1382701929,), (1382701933,), (1382701960,), (1382701962,), (1382701966,), (1382701971,), (1382701975,), (1382702002,), (1382702004,), (1382702005,), (1382702007,), (1382702013,), (1382702035,), (1382702062,), (1382702067,), (1382702072,), (1382702076,), (1382702080,), (1382702087,), (1382702090,), (1382702092,), (1382702097,), (1382702101,), (1382702115,), (1382702119,), (1382702123,), (1382702126,), (1382702156,), (1382702160,), (1382702162,), (1382702165,), (1382702185,), (1382702187,), (1382702189,), (1382702192,), (1382702195,), (1382702218,), (1382702219,), (1382702230,), (1382702237,), (1382702241,), (1382702246,), (1382706399,), (1382706429,), (1382706431,), (1382706513,), (1382706515,), (1382706516,), (1382706519,), (1382706522,), (1382706544,), (1382706545,), (1382706548,), (1382706552,), (1382706575,), (1382706580,), (1382706585,), (1382706589,), (1382706595,), (1382706609,), (1382706615,), (1382706619,), (1382706636,), (1382706637,), (1382706638,), (1382706640,), (1382706645,), (1382706672,), (1382706674,), (1382706676,), (1382706680,), (1382706685,), (1382706700,), (1382706703,), (1382706706,), (1382706708,), (1382706735,), (1382706765,), (1382706769,), (1382706774,), (1382706805,), (1382706808,), (1382706810,), (1382706813,), (1382706872,), (1382706874,), (1382706876,), (1382706880,), (1382706885,), (1382706914,), (1382706915,), (1382706917,), (1382706920,), (1382706923,), (1382706940,), (1382706941,), (1382706943,), (1382706946,), (1382706980,), (1382706963,), (1382706965,), (1382706968,), (1382706971,), (1382706976,), (1382706990,), (1382706992,), (1382706995,), (1382706999,), (1382707003,), (1382707006,), (1382707022,), (1382707028,), (1382707029,), (1382707109,), (1382707112,), (1382707116,), (1382707120,), (1382707124,), (1382707146,), (1382707147,), (1382707148,), (1382707150,), (1382707155,), (1382707174,), (1382707397,), (1382707425,), (1382707452,), (1382707483,), (1382707513,), (1382707747,), (1382707773,), (1382707885,), (1382707887,), (1382707888,), (1382708041,), (1382708071,), (1382708103,), (1382708139,), (1382708321,), (1382708324,), (1382708327,), (1382708343,), (1382708345,), (1382708348,), (1382708372,), (1382708375,), (1382708378,), (1382708389,), (1382708419,), (1382708421,), (1382708423,), (1382708745,), (1382708775,), (1382708807,), (1382708837,), (1382708869,), (1382709572,), (1382709404,), (1382709461,), (1382709516,), (1382709816,), (1382709853,), (1382709878,), (1382710151,), (1382710173,), (1382710205,), (1382710216,), (1382710238,), (1382710240,), (1382710248,), (1382710250,), (1382710251,), (1382710254,), (1382710257,), (1382710261,), (1382710266,), (1382710391,), (1382710422,), (1382710454,), (1382710493,), (1382710527,), (1382710561,), (1382710684,), (1382710715,), (1382711170,), (1382711231,), (1382711643,), (1382711682,), (1382711742,), (1382711773,), (1382712106,), (1382712136,), (1382712141,), (1382712162,), (1382712216,), (1382712277,), (1382712279,), (1382712282,), (1382712286,), (1382712317,), (1382712333,), (1382712337,), (1382712342,), (1382712347,), (1382712352,), (1382712568,), (1382712599,), (1382712630,), (1382712663,), (1382712694,), (1382712729,), (1382712836,), (1382712861,), (1382712863,), (1382712865,), (1382712931,), (1382712965,), (1382712974,), (1382712986,), (1382713010,), (1382713049,), (1382713052,), (1382713058,), (1382713062,), (1382713064,), (1382713066,), (1382713103,), (1382713269,), (1382713304,), (1382713423,), (1382713077,), (1382713087,), (1382713094,), (1382713099,), (1382713102,), (1382713125,), (1382713159,), (1382713190,), (1382713231,), (1382713511,), (1382713541,), (1382713571,), (1382713878,), (1382713908,), (1382713938,), (1382713942,), (1382713946,), (1382713975,), (1382713977,), (1382713979,), (1382713982,), (1382713990,), (1382714291,), (1382714323,), (1382714353,), (1382714477,), (1382714478,), (1382714479,), (1382714481,), (1382714500,), (1382714501,), (1382714505,), (1382714510,), (1382714514,), (1382714517,), (1382714522,), (1382714532,), (1382714544,), (1382714549,), (1382714559,), (1382714561,), (1382714563,), (1382714566,), (1382714570,), (1382714598,), (1382714600,), (1382714602,), (1382714605,), (1382714632,), (1382714634,), (1382714637,), (1382714641,), (1382714673,), (1382714676,), (1382714679,), (1382714683,), (1382714686,), (1382714704,), (1382714707,), (1382714710,), (1382714744,), (1382714745,), (1382714746,), (1382714749,), (1382714804,), (1382714802,), (1382714803,), (1382714827,), (1382714830,), (1382714886,), (1382714887,), (1382714888,), (1382714892,), (1382714896,), (1382714924,), (1382714926,), (1382714928,), (1382714931,), (1382714935,), (1382714941,), (1382714965,), (1382714970,), (1382714975,), (1382714981,), (1382714985,), (1382714989,), (1382715003,), (1382715006,), (1382715007,), (1382715008,), (1382715013,), (1382715017,), (1382715027,), (1382715030,), (1382715034,), (1382715037,), (1382715047,), (1382715060,), (1382715074,), (1382715112,), (1382715115,), (1382715117,), (1382715120,), (1382715142,), (1382715144,), (1382715147,), (1382715150,), (1382715190,), (1382715192,), (1382715215,), (1382715218,), (1382715222,), (1382715228,), (1382715257,), (1382715263,), (1382715276,), (1382715299,), (1382715300,), (1382715301,), (1382715305,), (1382715333,), (1382715336,), (1382715338,), (1382715341,), (1382715346,), (1382715349,), (1382715363,), (1382715368,), (1382715373,), (1382715379,), (1382715383,), (1382715388,), (1382715393,), (1382715395,), (1382715414,), (1382715398,), (1382715401,), (1382715405,), (1382715408,), (1382715411,), (1382715449,), (1382715451,), (1382715453,), (1382715455,), (1382715459,), (1382715463,), (1382715485,), (1382715487,), (1382715488,), (1382715500,), (1382715513,), (1382715530,), (1382715533,), (1382715535,), (1382715567,), (1382715568,), (1382715569,), (1382715571,), (1382715591,), (1382715595,), (1382715600,), (1382715619,), (1382715620,), (1382715621,), (1382715633,), (1382715636,), (1382715639,), (1382715642,), (1382715649,), (1382715650,), (1382715659,), (1382715661,), (1382715663,), (1382715666,), (1382715681,), (1382715684,), (1382715689,), (1382715696,), (1382715702,), (1382715711,), (1382715713,), (1382715715,), (1382715728,), (1382715730,), (1382715742,), (1382715807,), (1382715810,), (1382715813,), (1382715815,), (1382716517,), (1382716576,), (1382716637,), (1382716691,), (1382716752,), (1382716895,), (1382716947,), (1382717004,), (1382717059,), (1382717386,), (1382718157,), (1382717203,), (1382717254,), (1382717293,), (1382717346,), (1382717714,), (1382717744,), (1382717775,), (1382717809,), (1382717841,), (1382717896,), (1382718081,), (1382718125,), (1382718295,), (1382718352,), (1382718631,), (1382718658,), (1382718687,), (1382718706,), (1382718707,), (1382718735,), (1382718769,), (1382718962,), (1382718993,), (1382719024,), (1382719081,), (1382719084,), (1382719087,), (1382719100,), (1382719105,), (1382719120,), (1382719154,), (1382719156,), (1382719160,), (1382719162,), (1382719164,), (1382719168,), (1382719186,), (1382719219,), (1382719225,), (1382719229,), (1382719233,), (1382719237,), (1382719245,), (1382719247,), (1382719251,), (1382719269,), (1382719272,), (1382719275,), (1382719279,), (1382719282,), (1382719292,), (1382719295,), (1382719300,), (1382719304,), (1382719313,), (1382719315,), (1382719318,), (1382719332,), (1382719335,), (1382719337,), (1382719339,), (1382719341,), (1382719353,), (1382719355,), (1382719358,), (1382719363,), (1382719366,), (1382719369,), (1382719385,), (1382719387,), (1382719389,), (1382719404,), (1382719405,), (1382719396,), (1382719397,), (1382719400,), (1382719401,), (1382719409,), (1382719410,), (1382719411,), (1382719460,), (1382719461,), (1382719462,), (1382719466,), (1382719470,), (1382719496,), (1382719499,), (1382719504,), (1382719509,), (1382719515,), (1382719520,), (1382719528,), (1382719531,), (1382719535,), (1382719552,), (1382719555,), (1382719560,), (1382719564,), (1382719568,), (1382719571,), (1382719590,), (1382719596,), (1382719604,), (1382719614,), (1382719616,), (1382719618,), (1382719680,), (1382719681,), (1382719683,), (1382719686,), (1382719692,), (1382719695,), (1382719698,), (1382719700,), (1382719706,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09092025': {'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([26671697]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590] map_info['map_portfolio_photo'] : {26671697: [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590, 1382719571, 1382719568, 1382719564, 1382719560, 1382719555, 1382719552, 1382719535, 1382719531, 1382719528, 1382719520, 1382719515, 1382719509, 1382719504, 1382719499, 1382719496, 1382719470, 1382719466, 1382719462, 1382719461, 1382719460, 1382719411, 1382719410, 1382719409, 1382719401, 1382719400, 1382719397, 1382719396]} final : True mtd_id 4302 list_pids : [1382719706, 1382719700, 1382719698, 1382719695, 1382719692, 1382719686, 1382719683, 1382719681, 1382719680, 1382719618, 1382719616, 1382719614, 1382719604, 1382719596, 1382719590] Looping around the photos to save general results len do output : 1 /26671697Didn'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, '3682052') ('4302', '26671697', '1382719706', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719700', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719698', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719695', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719692', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719686', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719683', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719681', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719680', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719618', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719616', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719614', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719604', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719596', None, None, None, None, None, '3682052') ('4302', None, None, None, None, None, None, None, '3682052') ('4302', '26671697', '1382719590', None, None, None, None, None, '3682052') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '26671697', 'None', None, None, None, None, '3682052'), ('4302', '26671697', '1382719706', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719700', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719698', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719695', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719692', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719686', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719683', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719681', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719680', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719618', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719616', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719614', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719604', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719596', None, None, None, None, None, '3682052'), ('4302', '26671697', '1382719590', None, None, None, None, None, '3682052')] time used for this insertion : 0.04171919822692871 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9390411376953125 time spend to save output : 0.04194211959838867 total time spend for step 5 : 0.9809832572937012 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 (3682052) 2.14user 2.42system 0:07.03elapsed 65%CPU (0avgtext+0avgdata 161224maxresident)k 296inputs+10048outputs (1major+64440minor)pagefaults 0swaps