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 : 1143737 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 (4217956) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4217956) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398436 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4217956'] with mtr_portfolio_ids : ['29398436'] and first list_photo_ids : [] new path : /proc/1143737/ Name: python3 Umask: 0002 State: R (running) Tgid: 1143737 Ngid: 0 Pid: 1143737 PPid: 1143736 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1143737 NSpid: 1143737 NSpgid: 1142674 NSsid: 1142674 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105836 kB VmRSS: 105836 kB RssAnon: 66300 kB RssFile: 39536 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1143737', 'Ngid': '0', 'Pid': '1143737', 'PPid': '1143736', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1143737', 'NSpid': '1143737', 'NSpgid': '1142674', 'NSsid': '1142674', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105836 kB', 'VmRSS': '105836 kB', 'RssAnon': '66300 kB', 'RssFile': '39536 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '1143737', '1113364', '0', '1113364', '872092', '105836', b'', 'marlene', '4217956') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29398436) 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 (4217956 ) ) 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 (29398436) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399169716, 'portfolio_id': 29398436}, {'photo_id': 1399169715, 'portfolio_id': 29398436}, {'photo_id': 1399169714, 'portfolio_id': 29398436}, {'photo_id': 1399169713, 'portfolio_id': 29398436}, {'photo_id': 1399169691, 'portfolio_id': 29398436}, {'photo_id': 1399169688, 'portfolio_id': 29398436}, {'photo_id': 1399169686, 'portfolio_id': 29398436}, {'photo_id': 1399169683, 'portfolio_id': 29398436}, {'photo_id': 1399169681, 'portfolio_id': 29398436}, {'photo_id': 1399169663, 'portfolio_id': 29398436}, {'photo_id': 1399169660, 'portfolio_id': 29398436}, {'photo_id': 1399169659, 'portfolio_id': 29398436}, {'photo_id': 1399169658, 'portfolio_id': 29398436}, {'photo_id': 1399169656, 'portfolio_id': 29398436}, {'photo_id': 1399169638, 'portfolio_id': 29398436}, {'photo_id': 1399169637, 'portfolio_id': 29398436}, {'photo_id': 1399169636, 'portfolio_id': 29398436}, {'photo_id': 1399169635, 'portfolio_id': 29398436}, {'photo_id': 1399169619, 'portfolio_id': 29398436}, {'photo_id': 1399169618, 'portfolio_id': 29398436}, {'photo_id': 1399169617, 'portfolio_id': 29398436}, {'photo_id': 1399169616, 'portfolio_id': 29398436}, {'photo_id': 1399169586, 'portfolio_id': 29398436}, {'photo_id': 1399169585, 'portfolio_id': 29398436}, {'photo_id': 1399169584, 'portfolio_id': 29398436}, {'photo_id': 1399169583, 'portfolio_id': 29398436}, {'photo_id': 1399169577, 'portfolio_id': 29398436}, {'photo_id': 1399169576, 'portfolio_id': 29398436}, {'photo_id': 1399169575, 'portfolio_id': 29398436}, {'photo_id': 1399169574, 'portfolio_id': 29398436}, {'photo_id': 1399169566, 'portfolio_id': 29398436}, {'photo_id': 1399169562, 'portfolio_id': 29398436}, {'photo_id': 1399169558, 'portfolio_id': 29398436}, {'photo_id': 1399169554, 'portfolio_id': 29398436}, {'photo_id': 1399169552, 'portfolio_id': 29398436}, {'photo_id': 1399169550, 'portfolio_id': 29398436}, {'photo_id': 1399169531, 'portfolio_id': 29398436}, {'photo_id': 1399169530, 'portfolio_id': 29398436}, {'photo_id': 1399169504, 'portfolio_id': 29398436}, {'photo_id': 1399169501, 'portfolio_id': 29398436}, {'photo_id': 1399169500, 'portfolio_id': 29398436}, {'photo_id': 1399169499, 'portfolio_id': 29398436}, {'photo_id': 1399169498, 'portfolio_id': 29398436}, {'photo_id': 1399169490, 'portfolio_id': 29398436}, {'photo_id': 1399169487, 'portfolio_id': 29398436}, {'photo_id': 1399169486, 'portfolio_id': 29398436}, {'photo_id': 1399169485, 'portfolio_id': 29398436}, {'photo_id': 1399169484, 'portfolio_id': 29398436}] map_portfolio_id_photo_id: {29398436: [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656, 1399169638, 1399169637, 1399169636, 1399169635, 1399169619, 1399169618, 1399169617, 1399169616, 1399169586, 1399169585, 1399169584, 1399169583, 1399169577, 1399169576, 1399169575, 1399169574, 1399169566, 1399169562, 1399169558, 1399169554, 1399169552, 1399169550, 1399169531, 1399169530, 1399169504, 1399169501, 1399169500, 1399169499, 1399169498, 1399169490, 1399169487, 1399169486, 1399169485, 1399169484]} ##### 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.020036697387695312 #### 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 Sat Dec 13 02:26:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29398436) 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 : 29398436 get user id for portfolio 29398436 get sub ptf for main ptf 29398436, type 3726 and hashtags ['kraft', 'Teint_Dans_La_Masse', 'environnement', 'autre_refus', 'cartonnette', 'flou', 'Carton_brun', 'papier', 'plastique', 'mal_croppe', 'metal', '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`=29398436 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','environnement','autre_refus','cartonnette','flou','Carton_brun','papier','plastique','mal_croppe','metal','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`=29398436 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','environnement','autre_refus','cartonnette','flou','Carton_brun','papier','plastique','mal_croppe','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29398436, 'sub_port_id': 29398462, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028868, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29398436, 'sub_port_id': 29398463, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028869, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}, 'environnement': {'main_port_id': 29398436, 'sub_port_id': 29398464, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028870, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}, 'autre_refus': {'main_port_id': 29398436, 'sub_port_id': 29398465, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028871, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}, 'mal_croppe': {'main_port_id': 29398436, 'sub_port_id': 29398466, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028872, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}, 'flou': {'main_port_id': 29398436, 'sub_port_id': 29398467, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028873, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}, 'Carton_gris': {'main_port_id': 29398436, 'sub_port_id': 29398468, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028874, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}, 'cartonnette': {'main_port_id': 29398436, 'sub_port_id': 29398469, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028875, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}, 'Carton_brun': {'main_port_id': 29398436, 'sub_port_id': 29398470, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028876, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}, 'papier': {'main_port_id': 29398436, 'sub_port_id': 29398471, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028877, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}, 'plastique': {'main_port_id': 29398436, 'sub_port_id': 29398472, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028878, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}, 'kraft': {'main_port_id': 29398436, 'sub_port_id': 29398473, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028879, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29398462 , 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=29398436 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 (29398462) result : ((1399169708,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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 29398463 , 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=29398436 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 (29398463) result : ((1399169643,), (1399169647,), (1399169648,), (1399169649,), (1399169650,), (1399169695,), (1399169696,), (1399169697,), (1399169698,), (1399169699,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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 29398464 , 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=29398436 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 (29398464) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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 29398465 , 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=29398436 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 (29398465) result : ((1399169629,), (1399169651,), (1399169700,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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 29398466 , 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=29398436 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 (29398466) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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 29398467 , 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=29398436 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 (29398467) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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 29398468 , 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=29398436 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 (29398468) result : ((1399169630,), (1399169652,), (1399169701,), (1399169702,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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 29398469 , 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=29398436 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 (29398469) result : ((1399169653,), (1399169654,), (1399169655,), (1399169704,), (1399169705,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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 29398470 , 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=29398436 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 (29398470) result : ((1399169706,), (1399169707,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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 29398471 , 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=29398436 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 (29398471) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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 29398472 , 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=29398436 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 (29398472) result : ((1399169657,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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 29398473 , 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=29398436 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 (29398473) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29398436) result : ((1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) 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 (1399169500) 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`=29398436 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','environnement','autre_refus','cartonnette','flou','Carton_brun','papier','plastique','mal_croppe','metal','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`=29398436 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','environnement','autre_refus','cartonnette','flou','Carton_brun','papier','plastique','mal_croppe','metal','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29398436, 'sub_port_id': 29398474, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028880, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29398436, 'sub_port_id': 29398475, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028881, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}, 'environnement': {'main_port_id': 29398436, 'sub_port_id': 29398476, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028882, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}, 'autre_refus': {'main_port_id': 29398436, 'sub_port_id': 29398477, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028883, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}, 'mal_croppe': {'main_port_id': 29398436, 'sub_port_id': 29398478, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028884, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}, 'flou': {'main_port_id': 29398436, 'sub_port_id': 29398479, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028885, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}, 'Carton_gris': {'main_port_id': 29398436, 'sub_port_id': 29398480, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028886, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}, 'cartonnette': {'main_port_id': 29398436, 'sub_port_id': 29398481, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028887, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}, 'Carton_brun': {'main_port_id': 29398436, 'sub_port_id': 29398482, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028888, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}, 'papier': {'main_port_id': 29398436, 'sub_port_id': 29398483, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028889, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}, 'plastique': {'main_port_id': 29398436, 'sub_port_id': 29398484, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028890, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}, 'kraft': {'main_port_id': 29398436, 'sub_port_id': 29398485, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20028891, 'last_updated_at': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_desc': datetime.datetime(2025, 12, 13, 2, 24, 30), 'last_updated_at_asc': datetime.datetime(2025, 12, 13, 2, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398468 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398481,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398469 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398482,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398470 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398483,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398471 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398484,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398472 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29398485,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29398473 lien utilise dans velours : https://marlene.fotonower.com/velours/29398474,29398475,29398476,29398477,29398478,29398479,29398480,29398481,29398482,29398483,29398484,29398485?tags=metal,Teint_Dans_La_Masse,environnement,autre_refus,mal_croppe,flou,Carton_gris,cartonnette,Carton_brun,papier,plastique,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29398436]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656] map_info['map_portfolio_photo'] : {29398436: [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656, 1399169638, 1399169637, 1399169636, 1399169635, 1399169619, 1399169618, 1399169617, 1399169616, 1399169586, 1399169585, 1399169584, 1399169583, 1399169577, 1399169576, 1399169575, 1399169574, 1399169566, 1399169562, 1399169558, 1399169554, 1399169552, 1399169550, 1399169531, 1399169530, 1399169504, 1399169501, 1399169500, 1399169499, 1399169498, 1399169490, 1399169487, 1399169486, 1399169485, 1399169484]} final : False mtd_id 4302 list_pids : [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656] Looping around the photos to save general results len do output : 1 /29398436. 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, '4217956') ('4302', '29398436', '1399169716', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169715', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169714', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169713', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169691', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169688', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169686', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169683', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169681', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169663', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169660', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169659', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169658', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169656', None, None, None, None, None, '4217956') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29398436', "{'metal': 29398462, 'Teint_Dans_La_Masse': 29398463, 'environnement': 29398464, 'autre_refus': 29398465, 'mal_croppe': 29398466, 'flou': 29398467, 'Carton_gris': 29398468, 'cartonnette': 29398469, 'Carton_brun': 29398470, 'papier': 29398471, 'plastique': 29398472, 'kraft': 29398473}", None, None, None, None, '4217956'), ('4302', '29398436', '1399169716', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169715', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169714', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169713', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169691', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169688', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169686', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169683', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169681', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169663', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169660', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169659', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169658', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169656', None, None, None, None, None, '4217956')] time used for this insertion : 0.01867508888244629 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5714945793151855 time spend to save output : 0.01899886131286621 total time spend for step 1 : 0.5904934406280518 step2:final Sat Dec 13 02:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29398436) 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 29398436 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399169490,1399169487,1399169486,1399169485,1399169484,1399169504,1399169501,1399169500,1399169499,1399169498,1399169531,1399169530,1399169566,1399169562,1399169558,1399169554,1399169552,1399169550,1399169577,1399169576,1399169575,1399169574,1399169586,1399169585,1399169584,1399169583,1399169619,1399169618,1399169617,1399169616,1399169638,1399169637,1399169636,1399169635,1399169663,1399169660,1399169659,1399169658,1399169656,1399169691,1399169688,1399169686,1399169683,1399169681,1399169716,1399169715,1399169714,1399169713); 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([29398436]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} new output for save of step final : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656] map_info['map_portfolio_photo'] : {29398436: [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656, 1399169638, 1399169637, 1399169636, 1399169635, 1399169619, 1399169618, 1399169617, 1399169616, 1399169586, 1399169585, 1399169584, 1399169583, 1399169577, 1399169576, 1399169575, 1399169574, 1399169566, 1399169562, 1399169558, 1399169554, 1399169552, 1399169550, 1399169531, 1399169530, 1399169504, 1399169501, 1399169500, 1399169499, 1399169498, 1399169490, 1399169487, 1399169486, 1399169485, 1399169484]} final : False mtd_id 4302 list_pids : [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656] Looping around the photos to save general results len do output : 14 /1399169716.Didn't retrieve data . /1399169715.Didn't retrieve data . /1399169714.Didn't retrieve data . /1399169713.Didn't retrieve data . /1399169691.Didn't retrieve data . /1399169688.Didn't retrieve data . /1399169686.Didn't retrieve data . /1399169683.Didn't retrieve data . /1399169681.Didn't retrieve data . /1399169663.Didn't retrieve data . /1399169660.Didn't retrieve data . /1399169659.Didn't retrieve data . /1399169658.Didn't retrieve data . /1399169656.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, '4217956') ('4302', '29398436', '1399169716', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169715', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169714', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169713', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169691', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169688', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169686', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169683', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169681', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169663', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169660', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169659', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169658', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169656', None, None, None, None, None, '4217956') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29398436', '1399169716', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169715', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169714', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169713', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169691', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169688', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169686', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169683', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169681', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169663', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169660', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169659', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169658', '0.08010387450404229', None, None, None, None, '4217956'), ('4302', '29398436', '1399169656', '0.08010387450404229', None, None, None, None, '4217956')] time used for this insertion : 0.01629018783569336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08102607727050781 time spend to save output : 0.01697087287902832 total time spend for step 2 : 0.09799695014953613 step3:velours_tree Sat Dec 13 02:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29398436: [{'metal': 29398462, 'Teint_Dans_La_Masse': 29398463, 'environnement': 29398464, 'autre_refus': 29398465, 'mal_croppe': 29398466, 'flou': 29398467, 'Carton_gris': 29398468, 'cartonnette': 29398469, 'Carton_brun': 29398470, 'papier': 29398471, 'plastique': 29398472, 'kraft': 29398473}]} input_args_next_step : {29398436: ()} output_args : {29398436: [{'metal': 29398462, 'Teint_Dans_La_Masse': 29398463, 'environnement': 29398464, 'autre_refus': 29398465, 'mal_croppe': 29398466, 'flou': 29398467, 'Carton_gris': 29398468, 'cartonnette': 29398469, 'Carton_brun': 29398470, 'papier': 29398471, 'plastique': 29398472, 'kraft': 29398473}]} args : 29398436 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': 29398462, 'Teint_Dans_La_Masse': 29398463, 'environnement': 29398464, 'autre_refus': 29398465, 'mal_croppe': 29398466, 'flou': 29398467, 'Carton_gris': 29398468, 'cartonnette': 29398469, 'Carton_brun': 29398470, 'papier': 29398471, 'plastique': 29398472, 'kraft': 29398473},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29398436) 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([29398436]) 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.24834394454956055 time spend to save output : 4.1961669921875e-05 total time spend for step 3 : 0.24838590621948242 step4:send_mail_cod Sat Dec 13 02:26:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} input_args_next_step : {1399169716: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169716 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169715 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169714 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169713 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169691 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169688 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169686 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169683 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169681 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169663 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169660 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169659 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169658 depend.output_id : 0 input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ()} output_args : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',)} args : 1399169656 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 : {29398436: [{'metal': 29398462, 'Teint_Dans_La_Masse': 29398463, 'environnement': 29398464, 'autre_refus': 29398465, 'mal_croppe': 29398466, 'flou': 29398467, 'Carton_gris': 29398468, 'cartonnette': 29398469, 'Carton_brun': 29398470, 'papier': 29398471, 'plastique': 29398472, 'kraft': 29398473}]} input_args_next_step : {1399169716: ('0.08010387450404229',), 1399169715: ('0.08010387450404229',), 1399169714: ('0.08010387450404229',), 1399169713: ('0.08010387450404229',), 1399169691: ('0.08010387450404229',), 1399169688: ('0.08010387450404229',), 1399169686: ('0.08010387450404229',), 1399169683: ('0.08010387450404229',), 1399169681: ('0.08010387450404229',), 1399169663: ('0.08010387450404229',), 1399169660: ('0.08010387450404229',), 1399169659: ('0.08010387450404229',), 1399169658: ('0.08010387450404229',), 1399169656: ('0.08010387450404229',), 29398436: ()} output_args : {29398436: [{'metal': 29398462, 'Teint_Dans_La_Masse': 29398463, 'environnement': 29398464, 'autre_refus': 29398465, 'mal_croppe': 29398466, 'flou': 29398467, 'Carton_gris': 29398468, 'cartonnette': 29398469, 'Carton_brun': 29398470, 'papier': 29398471, 'plastique': 29398472, 'kraft': 29398473}]} args : 29398436 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.08010387450404229',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29398436) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1399169716,1399169715,1399169714,1399169713,1399169691,1399169688,1399169686,1399169683,1399169681,1399169663,1399169660,1399169659,1399169658,1399169656) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399169656 begin to download photo : 1399169660 begin to download photo : 1399169683 begin to download photo : 1399169691 begin to download photo : 1399169715 download finish for photo 1399169656 begin to download photo : 1399169658 download finish for photo 1399169660 begin to download photo : 1399169663 download finish for photo 1399169683 begin to download photo : 1399169686 download finish for photo 1399169715 begin to download photo : 1399169716 download finish for photo 1399169691 begin to download photo : 1399169713 download finish for photo 1399169658 begin to download photo : 1399169659 download finish for photo 1399169686 begin to download photo : 1399169688 download finish for photo 1399169713 begin to download photo : 1399169714 download finish for photo 1399169663 begin to download photo : 1399169681 download finish for photo 1399169716 download finish for photo 1399169659 download finish for photo 1399169688 download finish for photo 1399169714 download finish for photo 1399169681 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P29398436_13-12-2025_02_26_59.pdf 29398462 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169708: '1765589107_386752_1399169501_a824d6008971f67f70d5ba98f3aa2cb4_rle_crop_4068615341_0.png'} change filename to text .imagette293984621765589219/ imagette293984621765589219/1765589107_386752_1399169501_a824d6008971f67f70d5ba98f3aa2cb4_rle_crop_4068615341_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/cccc6baea7d7c02410cb67714fc3ecca_34279376.png imagette293984621765589219 29398465 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169629: '1765588945_377354_1399169576_7e3e38da60db819026a9d1ad8e4be145_rle_crop_4068614893_0.png', 1399169651: '1765589007_381632_1399169552_5285f42e08eac6da52e3f152eee19dfe_rle_crop_4068615132_0.png', 1399169700: '1765589107_386752_1399169501_a824d6008971f67f70d5ba98f3aa2cb4_rle_crop_4068615343_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/4aa57d879bdcc5c06687181ddc2e180c_89538614.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/94acf0f675a22f03dec19d3730eac554_70539788.png change filename to text .imagette293984651765589219/ imagette293984651765589219/1765589007_381632_1399169552_5285f42e08eac6da52e3f152eee19dfe_rle_crop_4068615132_0.png.png imagette293984651765589219/1765589107_386752_1399169501_a824d6008971f67f70d5ba98f3aa2cb4_rle_crop_4068615343_0.png.png imagette293984651765589219/1765588945_377354_1399169576_7e3e38da60db819026a9d1ad8e4be145_rle_crop_4068614893_0.png.png imagette293984661765589219/ imagette293984671765589219/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/e0f4eab4a25fe5480b6422ca444abb95_16468875.png imagette293984651765589219 29398466 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398466 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293984661765589219 29398467 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398467 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293984671765589219 29398469 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398469 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169653: '1765589007_381632_1399169554_6a94fb50965196f90264e78ac6133506_rle_crop_4068615121_0.png', 1399169654: '1765589007_381632_1399169550_ffe30e43014156c3f466237bbc3196de_rle_crop_4068615148_0.png', 1399169655: '1765589007_381632_1399169550_ffe30e43014156c3f466237bbc3196de_rle_crop_4068615150_0.png', 1399169704: '1765589107_386752_1399169501_a824d6008971f67f70d5ba98f3aa2cb4_rle_crop_4068615338_0.png', 1399169705: '1765589107_386752_1399169498_3175582d5ac6113e9999925748beca10_rle_crop_4068615415_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/0dbab6a44c858a8d23cac0071337a359_78297272.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/7caccd1937de89fd0ac8a98edd6de062_34913447.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/e1b1112bebd7db535427c8fb81a8fb6b_15786009.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/9370eb8151c87af877d7aab4fc6f6322_10339964.png change filename to text .imagette293984691765589219/ imagette293984691765589219/1765589107_386752_1399169498_3175582d5ac6113e9999925748beca10_rle_crop_4068615415_0.png.png imagette293984691765589219/1765589107_386752_1399169501_a824d6008971f67f70d5ba98f3aa2cb4_rle_crop_4068615338_0.png.png imagette293984691765589219/1765589007_381632_1399169550_ffe30e43014156c3f466237bbc3196de_rle_crop_4068615150_0.png.png imagette293984691765589219/1765589007_381632_1399169554_6a94fb50965196f90264e78ac6133506_rle_crop_4068615121_0.png.png imagette293984691765589219/1765589007_381632_1399169550_ffe30e43014156c3f466237bbc3196de_rle_crop_4068615148_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/8a7415b6bf52841ca0ecf5927e8a001d_14599532.png imagette293984691765589219 29398472 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398472 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169657: '1765589007_381632_1399169562_e8e1eda3a45cba81eb2aa13d853ea622_rle_crop_4068615100_0.png'} change filename to text .imagette293984721765589219/ imagette293984721765589219/1765589007_381632_1399169562_e8e1eda3a45cba81eb2aa13d853ea622_rle_crop_4068615100_0.png.png imagette293984731765589219/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/a2dd6d65e1fb35795a14dcc46514c72f_26415546.png imagette293984721765589219 29398473 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398473 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293984731765589219 29398463 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169643: '1765588988_379337_1399169566_b1e7c5885ae6034f713a8a8266d72e24_rle_crop_4068614934_0.png', 1399169647: '1765589007_381632_1399169577_8937b822db7d613fe9404b8061bfcc8e_rle_crop_4068615094_0.png', 1399169648: '1765589007_381632_1399169558_938fc266c964777b3806f8ec6432c538_rle_crop_4068615114_0.png', 1399169649: '1765589007_381632_1399169552_5285f42e08eac6da52e3f152eee19dfe_rle_crop_4068615138_0.png', 1399169650: '1765589007_381632_1399169550_ffe30e43014156c3f466237bbc3196de_rle_crop_4068615151_0.png', 1399169695: '1765589107_386752_1399169501_a824d6008971f67f70d5ba98f3aa2cb4_rle_crop_4068615347_0.png', 1399169696: '1765589107_386752_1399169500_1165396d1c50335091b732f3610b9370_rle_crop_4068615366_0.png', 1399169697: '1765589107_386752_1399169500_1165396d1c50335091b732f3610b9370_rle_crop_4068615367_0.png', 1399169698: '1765589107_386752_1399169499_3806c059f56ae82af0c509b5718d32d0_rle_crop_4068615401_0.png', 1399169699: '1765589107_386752_1399169498_3175582d5ac6113e9999925748beca10_rle_crop_4068615417_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/604fa0d9f27411d92880616190e72835_49901586.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/50449f0c19f0289d1518d44a89b121e4_21869462.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/7f8f6bd3a8856366a667a06a10e94771_50737639.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/c0a94c5cc76ff14d3ed7f838cdbd7327_36147683.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/8f7bc559cebb5b66db59e820136d79f4_38083614.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/fc88d97e2c3bdfd5b459e2c4a163d982_40969892.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/6645e71dcf557f0164e3135ac2e70a8e_49307043.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/6300199d8b416455a0c5b1cf3f68b799_84055983.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/736256e8cc8a2a0adfc7719f23d6898e_56275107.png change filename to text .imagette293984631765589219/ imagette293984631765589219/1765589107_386752_1399169500_1165396d1c50335091b732f3610b9370_rle_crop_4068615366_0.png.png imagette293984631765589219/1765589007_381632_1399169550_ffe30e43014156c3f466237bbc3196de_rle_crop_4068615151_0.png.png imagette293984631765589219/1765589007_381632_1399169552_5285f42e08eac6da52e3f152eee19dfe_rle_crop_4068615138_0.png.png imagette293984631765589219/1765588988_379337_1399169566_b1e7c5885ae6034f713a8a8266d72e24_rle_crop_4068614934_0.png.png imagette293984631765589219/1765589107_386752_1399169501_a824d6008971f67f70d5ba98f3aa2cb4_rle_crop_4068615347_0.png.png imagette293984631765589219/1765589107_386752_1399169500_1165396d1c50335091b732f3610b9370_rle_crop_4068615367_0.png.png imagette293984631765589219/1765589007_381632_1399169558_938fc266c964777b3806f8ec6432c538_rle_crop_4068615114_0.png.png imagette293984631765589219/1765589007_381632_1399169577_8937b822db7d613fe9404b8061bfcc8e_rle_crop_4068615094_0.png.png imagette293984631765589219/1765589107_386752_1399169498_3175582d5ac6113e9999925748beca10_rle_crop_4068615417_0.png.png imagette293984631765589219/1765589107_386752_1399169499_3806c059f56ae82af0c509b5718d32d0_rle_crop_4068615401_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/9a3c71f26349d126abcf36c733d0d6b5_78362939.png imagette293984631765589219 29398468 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398468 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169630: '1765588945_377354_1399169574_c406e4f7322eea24cf24bd5e72910aab_rle_crop_4068614910_0.png', 1399169652: '1765589007_381632_1399169554_6a94fb50965196f90264e78ac6133506_rle_crop_4068615119_0.png', 1399169701: '1765589107_386752_1399169501_a824d6008971f67f70d5ba98f3aa2cb4_rle_crop_4068615350_0.png', 1399169702: '1765589107_386752_1399169498_3175582d5ac6113e9999925748beca10_rle_crop_4068615414_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/3821e544ab82b56f89a7c85a5ac3d0d1_17574588.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/e879c6f280229ea4e215d41d25519399_10575019.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/08453636423a298c2b9be0df3d8a1453_63486532.png change filename to text .imagette293984681765589220/ imagette293984681765589220/1765589107_386752_1399169501_a824d6008971f67f70d5ba98f3aa2cb4_rle_crop_4068615350_0.png.png imagette293984681765589220/1765589107_386752_1399169498_3175582d5ac6113e9999925748beca10_rle_crop_4068615414_0.png.png imagette293984681765589220/1765588945_377354_1399169574_c406e4f7322eea24cf24bd5e72910aab_rle_crop_4068614910_0.png.png imagette293984681765589220/1765589007_381632_1399169554_6a94fb50965196f90264e78ac6133506_rle_crop_4068615119_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/0afb43a173cc606df02b5db3bea36be4_6283365.png imagette293984681765589220 29398470 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398470 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399169706: '1765589107_386752_1399169531_5d8705c07543a80864d28592f5b4de32_rle_crop_4068615327_0.png', 1399169707: '1765589107_386752_1399169498_3175582d5ac6113e9999925748beca10_rle_crop_4068615421_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/5432686345b701a108b545b454459fe1_88833599.png change filename to text .imagette293984701765589220/ imagette293984701765589220/1765589107_386752_1399169498_3175582d5ac6113e9999925748beca10_rle_crop_4068615421_0.png.png imagette293984701765589220/1765589107_386752_1399169531_5d8705c07543a80864d28592f5b4de32_rle_crop_4068615327_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/faf94042960c7d43a8f94860cdcbee30_69586888.png imagette293984701765589220 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29398436 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29398474,29398475,29398476,29398477,29398478,29398479,29398480,29398481,29398482,29398483,29398484,29398485?tags=metal,Teint_Dans_La_Masse,environnement,autre_refus,mal_croppe,flou,Carton_gris,cartonnette,Carton_brun,papier,plastique,kraft your option no_mail is active, we will not send the real mail to your client args[1399169716] : ('0.08010387450404229',) no score found for photo 1399169716 We are sending mail with results at report@fotonower.com args[1399169715] : ('0.08010387450404229',) no score found for photo 1399169715 We are sending mail with results at report@fotonower.com args[1399169714] : ('0.08010387450404229',) no score found for photo 1399169714 We are sending mail with results at report@fotonower.com args[1399169713] : ('0.08010387450404229',) no score found for photo 1399169713 We are sending mail with results at report@fotonower.com args[1399169691] : ('0.08010387450404229',) no score found for photo 1399169691 We are sending mail with results at report@fotonower.com args[1399169688] : ('0.08010387450404229',) no score found for photo 1399169688 We are sending mail with results at report@fotonower.com args[1399169686] : ('0.08010387450404229',) no score found for photo 1399169686 We are sending mail with results at report@fotonower.com args[1399169683] : ('0.08010387450404229',) no score found for photo 1399169683 We are sending mail with results at report@fotonower.com args[1399169681] : ('0.08010387450404229',) no score found for photo 1399169681 We are sending mail with results at report@fotonower.com args[1399169663] : ('0.08010387450404229',) no score found for photo 1399169663 We are sending mail with results at report@fotonower.com args[1399169660] : ('0.08010387450404229',) no score found for photo 1399169660 We are sending mail with results at report@fotonower.com args[1399169659] : ('0.08010387450404229',) no score found for photo 1399169659 We are sending mail with results at report@fotonower.com args[1399169658] : ('0.08010387450404229',) no score found for photo 1399169658 We are sending mail with results at report@fotonower.com args[1399169656] : ('0.08010387450404229',) no score found for photo 1399169656 We are sending mail with results at report@fotonower.com refus_total : 0.08010387450404229 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398436 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_P29398436_13-12-2025_02_26_59.pdf results_Auto_P29398436_13-12-2025_02_26_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29398436_13-12-2025_02_26_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','29398436','results_Auto_P29398436_13-12-2025_02_26_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29398436_13-12-2025_02_26_59.pdf','pdf','','0.2','0.08010387450404229') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29398436]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656] map_info['map_portfolio_photo'] : {29398436: [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656, 1399169638, 1399169637, 1399169636, 1399169635, 1399169619, 1399169618, 1399169617, 1399169616, 1399169586, 1399169585, 1399169584, 1399169583, 1399169577, 1399169576, 1399169575, 1399169574, 1399169566, 1399169562, 1399169558, 1399169554, 1399169552, 1399169550, 1399169531, 1399169530, 1399169504, 1399169501, 1399169500, 1399169499, 1399169498, 1399169490, 1399169487, 1399169486, 1399169485, 1399169484]} final : False mtd_id 4302 list_pids : [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656] 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, '4217956') ('4302', '29398436', '1399169716', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169715', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169714', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169713', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169691', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169688', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169686', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169683', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169681', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169663', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169660', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169659', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169658', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169656', None, None, None, None, None, '4217956') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29398436', '1399169716', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169715', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169714', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169713', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169691', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169688', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169686', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169683', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169681', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169663', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169660', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169659', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169658', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169656', None, None, None, None, None, '4217956')] time used for this insertion : 0.016750812530517578 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.549741506576538 time spend to save output : 0.016983509063720703 total time spend for step 4 : 3.566725015640259 step5:split_time_score Sat Dec 13 02:27: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 : ['29398436'] 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 : [('29398436',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29398436) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399169715: {'path': 'temp/1765589218_1143737_1399169715_e30ed0fb6a683ca2fd3acd1662696924.jpg', 'extension': 'jpg'}, 1399169716: {'path': 'temp/1765589218_1143737_1399169716_85f9739ca14fd292431b42b0e4d2052a.jpg', 'extension': 'jpg'}, 1399169656: {'path': 'temp/1765589218_1143737_1399169656_143a2fbdd11e91cce99d57456e461805.jpg', 'extension': 'jpg'}, 1399169658: {'path': 'temp/1765589218_1143737_1399169658_1943ebe0db5f5e5f02dd8b16b4ddc33e.jpg', 'extension': 'jpg'}, 1399169659: {'path': 'temp/1765589218_1143737_1399169659_808297a6db41b735c8e7f4a049664152.jpg', 'extension': 'jpg'}, 1399169683: {'path': 'temp/1765589218_1143737_1399169683_ddfaf82936d1869440f5574df6b88445.jpg', 'extension': 'jpg'}, 1399169686: {'path': 'temp/1765589218_1143737_1399169686_a8c2135388269c400b4e986a0fadd26f.jpg', 'extension': 'jpg'}, 1399169688: {'path': 'temp/1765589218_1143737_1399169688_27fe5143614e0f92a38953723ad9b5ec.jpg', 'extension': 'jpg'}, 1399169691: {'path': 'temp/1765589218_1143737_1399169691_8798b7ada1c403501baf08cbd05b5810.jpg', 'extension': 'jpg'}, 1399169713: {'path': 'temp/1765589218_1143737_1399169713_eb511ef58a4b60c018c9aa40f8d92486.jpg', 'extension': 'jpg'}, 1399169714: {'path': 'temp/1765589218_1143737_1399169714_98fa27d34fa4b047053fa7b8aba41406.jpg', 'extension': 'jpg'}, 1399169660: {'path': 'temp/1765589218_1143737_1399169660_b5837f4d06270817473d4d827e25ef93.jpg', 'extension': 'jpg'}, 1399169663: {'path': 'temp/1765589218_1143737_1399169663_f6d6237d4e47583db618faf25532f662.jpg', 'extension': 'jpg'}, 1399169681: {'path': 'temp/1765589218_1143737_1399169681_ff752e43c17ede0db9c0fef8261f30e2.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 = 29398436; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29398436 group by h (('02', 48),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29398436 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 (29398436) 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 (29398436) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13122025 29398436 Nombre de photos uploadées : 48 / 23040 (0%) 13122025 29398436 Nombre de photos taguées (types de déchets): 0 / 48 (0%) 13122025 29398436 Nombre de photos taguées (volume) : 0 / 48 (0%) [{'photo_id': 1399169490, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/2ccdb0b8f8fec0a453b5535b5032df0a.jpg', 'username': None, 'uploaded_at': 1765588567, 'text': 'image_13122025_02_15_04_10167.jpg'}, {'photo_id': 1399169487, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/0ee1cfcab453f13a57d0308f3b545729.jpg', 'username': None, 'uploaded_at': 1765588567, 'text': 'image_13122025_02_15_14_10137.jpg'}, {'photo_id': 1399169486, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/a9ffb6ea34918d3ea9e389d79a32730e.jpg', 'username': None, 'uploaded_at': 1765588567, 'text': 'image_13122025_02_15_24_10139.jpg'}, {'photo_id': 1399169485, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/13/c067d9edf503e58c613fbd7eb6e22d58.jpg', 'username': None, 'uploaded_at': 1765588567, 'text': 'image_13122025_02_15_34_9133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002092123031616211 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29398436, '2025-12-13' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-13' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2732453,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24005889892578125 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= 2732453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739551, 'mtr_portfolio_id': 29395767, 'dashboard_result_id': 18342320, '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_P29395767_13-12-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29395770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29395771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29395772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29395773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29395774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29395775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29395776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29395777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29395778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29395779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29395780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29395781, 'pht': 3726}}"}, {'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739551, 'mtr_portfolio_id': 29396142, 'dashboard_result_id': 18342321, '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_P29396142_13-12-2025_00_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396156, 'pht': 3726}}"}, {'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739551, 'mtr_portfolio_id': 29396508, 'dashboard_result_id': 18342322, '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_P29396508_13-12-2025_01_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396525, 'pht': 3726}}"}, {'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739551, 'mtr_portfolio_id': 29397250, 'dashboard_result_id': 18342323, '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_P29397250_13-12-2025_01_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397263, 'pht': 3726}}"}, {'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739551, 'mtr_portfolio_id': 29397563, 'dashboard_result_id': 18342324, '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_P29397563_13-12-2025_02_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397580, 'pht': 3726}}"}, {'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739551, 'mtr_portfolio_id': 29397957, 'dashboard_result_id': 18342325, '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_P29397957_13-12-2025_02_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29397972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397984, 'pht': 3726}}"}, {'dashboat_entry_day': 2732453, 'dashboard_run_id': 2739551, 'mtr_portfolio_id': 29398436, 'dashboard_result_id': 18342326, '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_P29398436_13-12-2025_02_24_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29398462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29398463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29398464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29398465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29398466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29398467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29398468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29398469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29398470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29398471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29398472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29398473, '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 = 29395767 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': 4217545, 'mtr_portfolio_id': 29395767, 'created_at': datetime.datetime(2025, 12, 13, 0, 32, 59), 'result': '0.05909860523021329', 'result_long': None, 'result_double': None}] Qualite : 0.05909860523021329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29395767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29395767_13-12-2025_00_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29395767 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_P29395767_13-12-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29395770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29395771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29395772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29395773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29395774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29395775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29395776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29395777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29395778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29395779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29395780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29395781, 'pht': 3726}}" where mtr_portfolio_id = 29395767 and dashboard_run_id = 2739551 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`=29395767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342320, 0.05909860523021329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29395767_13-12-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29395770, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29395771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29395772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29395773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29395774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29395775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29395776, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29395777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29395778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29395779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29395780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29395781, '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 = 29396142 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': 4217582, 'mtr_portfolio_id': 29396142, 'created_at': datetime.datetime(2025, 12, 13, 0, 46, 57), 'result': '0.05462950009267587', 'result_long': None, 'result_double': None}] Qualite : 0.05462950009267587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29396142 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29396142_13-12-2025_00_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29396142 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_P29396142_13-12-2025_00_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396156, 'pht': 3726}}" where mtr_portfolio_id = 29396142 and dashboard_run_id = 2739551 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`=29396142 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342321, 0.05462950009267587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29396142_13-12-2025_00_46_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396154, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396156, '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 = 29396508 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': 4217626, 'mtr_portfolio_id': 29396508, 'created_at': datetime.datetime(2025, 12, 13, 1, 32, 59), 'result': '0.057125660119203954', 'result_long': None, 'result_double': None}] Qualite : 0.057125660119203954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29396508 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29396508_13-12-2025_01_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29396508 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_P29396508_13-12-2025_01_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396525, 'pht': 3726}}" where mtr_portfolio_id = 29396508 and dashboard_run_id = 2739551 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`=29396508 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342322, 0.057125660119203954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29396508_13-12-2025_01_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29396514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29396515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29396516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29396517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29396518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29396519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29396520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29396521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29396522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29396523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29396524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29396525, '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 = 29397250 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': 4217754, 'mtr_portfolio_id': 29397250, 'created_at': datetime.datetime(2025, 12, 13, 1, 46, 59), 'result': '0.05056901313580099', 'result_long': None, 'result_double': None}] Qualite : 0.05056901313580099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29397250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397250_13-12-2025_01_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29397250 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_P29397250_13-12-2025_01_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397263, 'pht': 3726}}" where mtr_portfolio_id = 29397250 and dashboard_run_id = 2739552 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`=29397250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342323, 0.05056901313580099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397250_13-12-2025_01_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397263, '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 = 29397563 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': 4217793, 'mtr_portfolio_id': 29397563, 'created_at': datetime.datetime(2025, 12, 13, 2, 2, 58), 'result': '0.048218870895430255', 'result_long': None, 'result_double': None}] Qualite : 0.048218870895430255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29397563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397563_13-12-2025_02_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29397563 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_P29397563_13-12-2025_02_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397580, 'pht': 3726}}" where mtr_portfolio_id = 29397563 and dashboard_run_id = 2739552 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`=29397563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342324, 0.048218870895430255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397563_13-12-2025_02_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397576, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29397578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397580, '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 = 29397957 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': 4217869, 'mtr_portfolio_id': 29397957, 'created_at': datetime.datetime(2025, 12, 13, 2, 18, 58), 'result': '0.05096435921704283', 'result_long': None, 'result_double': None}] Qualite : 0.05096435921704283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29397957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397957_13-12-2025_02_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29397957 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_P29397957_13-12-2025_02_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29397972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397984, 'pht': 3726}}" where mtr_portfolio_id = 29397957 and dashboard_run_id = 2739552 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`=29397957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342325, 0.05096435921704283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29397957_13-12-2025_02_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29397972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29397973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29397974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29397975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29397976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29397977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29397978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29397980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29397981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29397982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29397983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29397984, '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 = 29398436 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': 4217956, 'mtr_portfolio_id': 29398436, 'created_at': datetime.datetime(2025, 12, 13, 2, 26, 58), 'result': '0.08010387450404229', 'result_long': None, 'result_double': None}] Qualite : 0.08010387450404229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29398436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29398436_13-12-2025_02_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29398436 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_P29398436_13-12-2025_02_26_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29398462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29398463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29398464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29398465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29398466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29398467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29398468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29398469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29398470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29398471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29398472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29398473, 'pht': 3726}}" where mtr_portfolio_id = 29398436 and dashboard_run_id = 2739552 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`=29398436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18342326, 0.08010387450404229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29398436_13-12-2025_02_26_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29398462, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29398463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29398464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29398465, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29398466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29398467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29398468, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29398469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29398470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29398471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29398472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29398473, '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 (29395767,29396142,29396508,29397250,29397563,29397957,29398436) result : ((1399164481,), (1399164513,), (1399164914,), (1399164915,), (1399165057,), (1399165093,), (1399165125,), (1399165157,), (1399165298,), (1399165299,), (1399165300,), (1399165301,), (1399165304,), (1399165306,), (1399165330,), (1399165331,), (1399165332,), (1399165333,), (1399165347,), (1399165348,), (1399165349,), (1399165350,), (1399165352,), (1399165354,), (1399165385,), (1399165393,), (1399165394,), (1399165395,), (1399165398,), (1399165411,), (1399165412,), (1399165413,), (1399165414,), (1399165438,), (1399165439,), (1399165440,), (1399165441,), (1399165444,), (1399165446,), (1399165458,), (1399165459,), (1399165460,), (1399165461,), (1399165463,), (1399165466,), (1399165490,), (1399165491,), (1399165492,), (1399165493,), (1399165507,), (1399165508,), (1399165509,), (1399165510,), (1399165513,), (1399165514,), (1399165538,), (1399165542,), (1399165543,), (1399165544,), (1399165547,), (1399165558,), (1399165559,), (1399165560,), (1399165561,), (1399165589,), (1399165597,), (1399165598,), (1399165599,), (1399165603,), (1399165608,), (1399165626,), (1399165629,), (1399165632,), (1399165646,), (1399165648,), (1399165650,), (1399165651,), (1399165621,), (1399165622,), (1399165623,), (1399165654,), (1399165655,), (1399165657,), (1399165659,), (1399165661,), (1399165663,), (1399165672,), (1399165674,), (1399165677,), (1399165683,), (1399165689,), (1399165692,), (1399165695,), (1399165696,), (1399165697,), (1399165698,), (1399165699,), (1399165700,), (1399165735,), (1399165736,), (1399165737,), (1399165738,), (1399165740,), (1399165741,), (1399165744,), (1399165745,), (1399165746,), (1399165747,), (1399165749,), (1399165752,), (1399165775,), (1399165776,), (1399165777,), (1399165784,), (1399165790,), (1399165807,), (1399165830,), (1399165831,), (1399165832,), (1399165833,), (1399165856,), (1399165857,), (1399165858,), (1399165859,), (1399165862,), (1399165864,), (1399165875,), (1399165877,), (1399165879,), (1399165883,), (1399165901,), (1399165903,), (1399165905,), (1399165909,), (1399165913,), (1399165916,), (1399165926,), (1399165927,), (1399165928,), (1399165929,), (1399165959,), (1399165960,), (1399165961,), (1399165962,), (1399165965,), (1399165968,), (1399165978,), (1399165979,), (1399165980,), (1399165981,), (1399166001,), (1399166002,), (1399166003,), (1399166004,), (1399166006,), (1399166009,), (1399166015,), (1399166016,), (1399166018,), (1399166019,), (1399166021,), (1399166065,), (1399166063,), (1399166064,), (1399166069,), (1399166070,), (1399166071,), (1399166072,), (1399166075,), (1399166077,), (1399166093,), (1399166094,), (1399166095,), (1399166096,), (1399166109,), (1399166110,), (1399166111,), (1399166112,), (1399166114,), (1399166139,), (1399166140,), (1399166141,), (1399166142,), (1399166153,), (1399166155,), (1399166157,), (1399166183,), (1399166189,), (1399166190,), (1399166191,), (1399166194,), (1399166206,), (1399166208,), (1399166210,), (1399166214,), (1399166218,), (1399166222,), (1399166243,), (1399166252,), (1399166254,), (1399166258,), (1399166267,), (1399166268,), (1399166269,), (1399166270,), (1399166272,), (1399166275,), (1399166301,), (1399166302,), (1399166303,), (1399166304,), (1399166321,), (1399166322,), (1399166323,), (1399166324,), (1399166327,), (1399166330,), (1399166367,), (1399166368,), (1399166369,), (1399166372,), (1399166375,), (1399166377,), (1399166383,), (1399166384,), (1399166386,), (1399166392,), (1399166395,), (1399166396,), (1399166400,), (1399166403,), (1399166404,), (1399166417,), (1399166419,), (1399166421,), (1399166423,), (1399166425,), (1399166431,), (1399168468,), (1399168482,), (1399168483,), (1399168484,), (1399168485,), (1399168493,), (1399168494,), (1399168495,), (1399168496,), (1399168521,), (1399168522,), (1399168535,), (1399168537,), (1399168538,), (1399168539,), (1399168541,), (1399168575,), (1399168577,), (1399168597,), (1399168598,), (1399168599,), (1399168600,), (1399168623,), (1399168624,), (1399168625,), (1399168626,), (1399168629,), (1399168632,), (1399168638,), (1399168639,), (1399168656,), (1399168657,), (1399168658,), (1399168659,), (1399168668,), (1399168669,), (1399168670,), (1399168683,), (1399168684,), (1399168685,), (1399168686,), (1399168709,), (1399168710,), (1399168711,), (1399168712,), (1399168713,), (1399168714,), (1399168737,), (1399168739,), (1399168740,), (1399168741,), (1399168748,), (1399168750,), (1399168752,), (1399168754,), (1399168756,), (1399168758,), (1399168780,), (1399168777,), (1399168778,), (1399168779,), (1399168793,), (1399168794,), (1399168818,), (1399168819,), (1399168820,), (1399168821,), (1399168824,), (1399168836,), (1399168838,), (1399168839,), (1399168840,), (1399168860,), (1399168861,), (1399168862,), (1399168863,), (1399168866,), (1399168875,), (1399168876,), (1399168877,), (1399168880,), (1399168883,), (1399168886,), (1399168906,), (1399168907,), (1399168908,), (1399168909,), (1399168917,), (1399168918,), (1399168921,), (1399168924,), (1399168929,), (1399168930,), (1399168931,), (1399168932,), (1399168934,), (1399168937,), (1399168974,), (1399168975,), (1399168976,), (1399168977,), (1399169000,), (1399169003,), (1399169006,), (1399169024,), (1399169026,), (1399169028,), (1399169039,), (1399169050,), (1399169062,), (1399169063,), (1399169064,), (1399169065,), (1399169068,), (1399169070,), (1399169099,), (1399169103,), (1399169104,), (1399169105,), (1399169108,), (1399169123,), (1399169129,), (1399169132,), (1399169133,), (1399169144,), (1399169146,), (1399169148,), (1399169171,), (1399169162,), (1399169164,), (1399169166,), (1399169168,), (1399169189,), (1399169190,), (1399169191,), (1399169192,), (1399169194,), (1399169202,), (1399169203,), (1399169228,), (1399169229,), (1399169230,), (1399169240,), (1399169242,), (1399169244,), (1399169248,), (1399169252,), (1399169278,), (1399169279,), (1399169280,), (1399169281,), (1399169291,), (1399169292,), (1399169293,), (1399169294,), (1399169296,), (1399169331,), (1399169366,), (1399169372,), (1399169374,), (1399169376,), (1399169388,), (1399169390,), (1399169392,), (1399169396,), (1399169400,), (1399169415,), (1399169416,), (1399169417,), (1399169418,), (1399169420,), (1399169423,), (1399169439,), (1399169442,), (1399169443,), (1399169445,), (1399169459,), (1399169461,), (1399169462,), (1399169493,), (1399169484,), (1399169485,), (1399169486,), (1399169487,), (1399169490,), (1399169498,), (1399169499,), (1399169500,), (1399169501,), (1399169504,), (1399169530,), (1399169531,), (1399169550,), (1399169552,), (1399169554,), (1399169558,), (1399169562,), (1399169566,), (1399169574,), (1399169575,), (1399169576,), (1399169577,), (1399169583,), (1399169584,), (1399169585,), (1399169586,), (1399169616,), (1399169617,), (1399169618,), (1399169619,), (1399169635,), (1399169636,), (1399169637,), (1399169638,), (1399169656,), (1399169658,), (1399169659,), (1399169660,), (1399169663,), (1399169681,), (1399169683,), (1399169686,), (1399169688,), (1399169691,), (1399169713,), (1399169714,), (1399169715,), (1399169716,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13122025': {'nb_upload': 48, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29398436]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656] map_info['map_portfolio_photo'] : {29398436: [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656, 1399169638, 1399169637, 1399169636, 1399169635, 1399169619, 1399169618, 1399169617, 1399169616, 1399169586, 1399169585, 1399169584, 1399169583, 1399169577, 1399169576, 1399169575, 1399169574, 1399169566, 1399169562, 1399169558, 1399169554, 1399169552, 1399169550, 1399169531, 1399169530, 1399169504, 1399169501, 1399169500, 1399169499, 1399169498, 1399169490, 1399169487, 1399169486, 1399169485, 1399169484]} final : True mtd_id 4302 list_pids : [1399169716, 1399169715, 1399169714, 1399169713, 1399169691, 1399169688, 1399169686, 1399169683, 1399169681, 1399169663, 1399169660, 1399169659, 1399169658, 1399169656] Looping around the photos to save general results len do output : 1 /29398436Didn'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, '4217956') ('4302', '29398436', '1399169716', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169715', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169714', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169713', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169691', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169688', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169686', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169683', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169681', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169663', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169660', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169659', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169658', None, None, None, None, None, '4217956') ('4302', None, None, None, None, None, None, None, '4217956') ('4302', '29398436', '1399169656', None, None, None, None, None, '4217956') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29398436', 'None', None, None, None, None, '4217956'), ('4302', '29398436', '1399169716', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169715', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169714', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169713', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169691', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169688', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169686', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169683', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169681', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169663', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169660', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169659', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169658', None, None, None, None, None, '4217956'), ('4302', '29398436', '1399169656', None, None, None, None, None, '4217956')] time used for this insertion : 0.01944732666015625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8103282451629639 time spend to save output : 0.019683837890625 total time spend for step 5 : 0.8300120830535889 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 (4217956) 2.19user 2.41system 0:08.61elapsed 53%CPU (0avgtext+0avgdata 168404maxresident)k 376inputs+12456outputs (3major+67857minor)pagefaults 0swaps