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 : 1900290 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 (4319352) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4319352) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000381 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4319352'] with mtr_portfolio_ids : ['30000381'] and first list_photo_ids : [] new path : /proc/1900290/ Name: python3 Umask: 0002 State: R (running) Tgid: 1900290 Ngid: 0 Pid: 1900290 PPid: 1900289 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1900290 NSpid: 1900290 NSpgid: 1899423 NSsid: 1899423 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105836 kB VmRSS: 105836 kB RssAnon: 66300 kB RssFile: 39536 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1900290', 'Ngid': '0', 'Pid': '1900290', 'PPid': '1900289', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1900290', 'NSpid': '1900290', 'NSpgid': '1899423', 'NSsid': '1899423', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105836 kB', 'VmRSS': '105836 kB', 'RssAnon': '66300 kB', 'RssFile': '39536 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '1900290', '1113368', '0', '1113368', '872096', '105836', b'', 'marlene', '4319352') 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 (30000381) 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 (4319352 ) ) 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 (30000381) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402728498, 'portfolio_id': 30000381}, {'photo_id': 1402728497, 'portfolio_id': 30000381}, {'photo_id': 1402728496, 'portfolio_id': 30000381}, {'photo_id': 1402728484, 'portfolio_id': 30000381}, {'photo_id': 1402728482, 'portfolio_id': 30000381}, {'photo_id': 1402728478, 'portfolio_id': 30000381}, {'photo_id': 1402728475, 'portfolio_id': 30000381}, {'photo_id': 1402728473, 'portfolio_id': 30000381}, {'photo_id': 1402728470, 'portfolio_id': 30000381}, {'photo_id': 1402728456, 'portfolio_id': 30000381}, {'photo_id': 1402728454, 'portfolio_id': 30000381}, {'photo_id': 1402728453, 'portfolio_id': 30000381}, {'photo_id': 1402728452, 'portfolio_id': 30000381}, {'photo_id': 1402728433, 'portfolio_id': 30000381}, {'photo_id': 1402728431, 'portfolio_id': 30000381}, {'photo_id': 1402728428, 'portfolio_id': 30000381}, {'photo_id': 1402728427, 'portfolio_id': 30000381}, {'photo_id': 1402728426, 'portfolio_id': 30000381}, {'photo_id': 1402728425, 'portfolio_id': 30000381}, {'photo_id': 1402728415, 'portfolio_id': 30000381}, {'photo_id': 1402728413, 'portfolio_id': 30000381}, {'photo_id': 1402728412, 'portfolio_id': 30000381}, {'photo_id': 1402728398, 'portfolio_id': 30000381}, {'photo_id': 1402728394, 'portfolio_id': 30000381}, {'photo_id': 1402728393, 'portfolio_id': 30000381}, {'photo_id': 1402728392, 'portfolio_id': 30000381}, {'photo_id': 1402728391, 'portfolio_id': 30000381}, {'photo_id': 1402728363, 'portfolio_id': 30000381}, {'photo_id': 1402728340, 'portfolio_id': 30000381}, {'photo_id': 1402728338, 'portfolio_id': 30000381}, {'photo_id': 1402728320, 'portfolio_id': 30000381}, {'photo_id': 1402728287, 'portfolio_id': 30000381}, {'photo_id': 1402728144, 'portfolio_id': 30000381}, {'photo_id': 1402728140, 'portfolio_id': 30000381}, {'photo_id': 1402728127, 'portfolio_id': 30000381}, {'photo_id': 1402728094, 'portfolio_id': 30000381}, {'photo_id': 1402728061, 'portfolio_id': 30000381}, {'photo_id': 1402727716, 'portfolio_id': 30000381}, {'photo_id': 1402727713, 'portfolio_id': 30000381}, {'photo_id': 1402727712, 'portfolio_id': 30000381}, {'photo_id': 1402727696, 'portfolio_id': 30000381}, {'photo_id': 1402727693, 'portfolio_id': 30000381}, {'photo_id': 1402727690, 'portfolio_id': 30000381}, {'photo_id': 1402727688, 'portfolio_id': 30000381}, {'photo_id': 1402727687, 'portfolio_id': 30000381}, {'photo_id': 1402727674, 'portfolio_id': 30000381}, {'photo_id': 1402727673, 'portfolio_id': 30000381}, {'photo_id': 1402727671, 'portfolio_id': 30000381}, {'photo_id': 1402727670, 'portfolio_id': 30000381}] map_portfolio_id_photo_id: {30000381: [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470, 1402728456, 1402728454, 1402728453, 1402728452, 1402728433, 1402728431, 1402728428, 1402728427, 1402728426, 1402728425, 1402728415, 1402728413, 1402728412, 1402728398, 1402728394, 1402728393, 1402728392, 1402728391, 1402728363, 1402728340, 1402728338, 1402728320, 1402728287, 1402728144, 1402728140, 1402728127, 1402728094, 1402728061, 1402727716, 1402727713, 1402727712, 1402727696, 1402727693, 1402727690, 1402727688, 1402727687, 1402727674, 1402727673, 1402727671, 1402727670]} ##### 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.018277645111083984 #### 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 Wed Jan 7 00:57:00 2026 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30000381) 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 : 30000381 get user id for portfolio 30000381 get sub ptf for main ptf 30000381, type 3726 and hashtags ['environnement', 'flou', 'mal_croppe', 'kraft', 'metal', 'cartonnette', 'Carton_brun', 'plastique', 'Teint_Dans_La_Masse', 'Carton_gris', 'papier', 'autre_refus'] 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`=30000381 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','plastique','Teint_Dans_La_Masse','Carton_gris','papier','autre_refus')) 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`=30000381 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','plastique','Teint_Dans_La_Masse','Carton_gris','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 30000381, 'sub_port_id': 30000389, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531533, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'plastique': {'main_port_id': 30000381, 'sub_port_id': 30000390, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531534, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'Carton_brun': {'main_port_id': 30000381, 'sub_port_id': 30000391, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531535, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'flou': {'main_port_id': 30000381, 'sub_port_id': 30000392, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531536, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'kraft': {'main_port_id': 30000381, 'sub_port_id': 30000393, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531537, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'Carton_gris': {'main_port_id': 30000381, 'sub_port_id': 30000394, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531538, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'mal_croppe': {'main_port_id': 30000381, 'sub_port_id': 30000395, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531539, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'papier': {'main_port_id': 30000381, 'sub_port_id': 30000396, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531540, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 30000381, 'sub_port_id': 30000397, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531541, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'metal': {'main_port_id': 30000381, 'sub_port_id': 30000398, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531542, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'environnement': {'main_port_id': 30000381, 'sub_port_id': 30000399, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531543, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'autre_refus': {'main_port_id': 30000381, 'sub_port_id': 30000400, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531544, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000389 , 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=30000381 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 (30000389) result : ((1402728439,), (1402728440,), (1402728489,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000390 , 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=30000381 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 (30000390) result : ((1402728442,), (1402728443,), (1402728494,), (1402728495,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000391 , 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=30000381 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 (30000391) result : ((1402728405,), (1402728406,), (1402728407,), (1402728408,), (1402728441,), (1402728448,), (1402728449,), (1402728450,), (1402728451,), (1402728493,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000392 , 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=30000381 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 (30000392) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000393 , 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=30000381 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 (30000393) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000394 , 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=30000381 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 (30000394) result : ((1402728404,), (1402728447,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000395 , 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=30000381 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 (30000395) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000396 , 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=30000381 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 (30000396) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000397 , 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=30000381 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 (30000397) result : ((1402728402,), (1402728437,), (1402728446,), (1402728486,), (1402728487,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000398 , 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=30000381 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 (30000398) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000399 , 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=30000381 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 (30000399) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000400 , 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=30000381 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 (30000400) result : ((1402728488,), (1402728492,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=30000381 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','plastique','Teint_Dans_La_Masse','Carton_gris','papier','autre_refus')) 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`=30000381 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','plastique','Teint_Dans_La_Masse','Carton_gris','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 30000381, 'sub_port_id': 30000401, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531545, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'plastique': {'main_port_id': 30000381, 'sub_port_id': 30000402, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531546, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'Carton_brun': {'main_port_id': 30000381, 'sub_port_id': 30000403, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531547, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'flou': {'main_port_id': 30000381, 'sub_port_id': 30000404, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531548, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'kraft': {'main_port_id': 30000381, 'sub_port_id': 30000405, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531549, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'Carton_gris': {'main_port_id': 30000381, 'sub_port_id': 30000406, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531550, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'mal_croppe': {'main_port_id': 30000381, 'sub_port_id': 30000407, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531551, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'papier': {'main_port_id': 30000381, 'sub_port_id': 30000408, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531552, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 30000381, 'sub_port_id': 30000409, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531553, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'metal': {'main_port_id': 30000381, 'sub_port_id': 30000410, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531554, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'environnement': {'main_port_id': 30000381, 'sub_port_id': 30000411, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531555, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'autre_refus': {'main_port_id': 30000381, 'sub_port_id': 30000412, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531556, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 54, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000389 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000402,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000390 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000394 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000395 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000408,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000396 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000409,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000397 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000410,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000398 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000411,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000399 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000412,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000400 lien utilise dans velours : https://marlene.fotonower.com/velours/30000401,30000402,30000403,30000404,30000405,30000406,30000407,30000408,30000409,30000410,30000411,30000412?tags=cartonnette,plastique,Carton_brun,flou,kraft,Carton_gris,mal_croppe,papier,Teint_Dans_La_Masse,metal,environnement,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30000381]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470] map_info['map_portfolio_photo'] : {30000381: [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470, 1402728456, 1402728454, 1402728453, 1402728452, 1402728433, 1402728431, 1402728428, 1402728427, 1402728426, 1402728425, 1402728415, 1402728413, 1402728412, 1402728398, 1402728394, 1402728393, 1402728392, 1402728391, 1402728363, 1402728340, 1402728338, 1402728320, 1402728287, 1402728144, 1402728140, 1402728127, 1402728094, 1402728061, 1402727716, 1402727713, 1402727712, 1402727696, 1402727693, 1402727690, 1402727688, 1402727687, 1402727674, 1402727673, 1402727671, 1402727670]} final : False mtd_id 4302 list_pids : [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470] Looping around the photos to save general results len do output : 1 /30000381. 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, '4319352') ('4302', '30000381', '1402728498', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728497', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728496', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728484', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728482', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728478', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728475', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728473', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728470', None, None, None, None, None, '4319352') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '30000381', "{'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400}", None, None, None, None, '4319352'), ('4302', '30000381', '1402728498', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728497', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728496', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728484', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728482', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728478', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728475', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728473', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728470', None, None, None, None, None, '4319352')] time used for this insertion : 0.023773193359375 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.831200122833252 time spend to save output : 0.024033784866333008 total time spend for step 1 : 1.855233907699585 step2:final Wed Jan 7 00:57:01 2026 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30000381) 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 30000381 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402727674,1402727673,1402727671,1402727670,1402727696,1402727693,1402727690,1402727688,1402727687,1402727716,1402727713,1402727712,1402728144,1402728140,1402728127,1402728094,1402728061,1402728363,1402728340,1402728338,1402728320,1402728287,1402728398,1402728394,1402728393,1402728392,1402728391,1402728415,1402728413,1402728412,1402728433,1402728431,1402728428,1402728427,1402728426,1402728425,1402728456,1402728454,1402728453,1402728452,1402728484,1402728482,1402728478,1402728475,1402728473,1402728470,1402728498,1402728497,1402728496); 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([30000381]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} new output for save of step final : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470] map_info['map_portfolio_photo'] : {30000381: [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470, 1402728456, 1402728454, 1402728453, 1402728452, 1402728433, 1402728431, 1402728428, 1402728427, 1402728426, 1402728425, 1402728415, 1402728413, 1402728412, 1402728398, 1402728394, 1402728393, 1402728392, 1402728391, 1402728363, 1402728340, 1402728338, 1402728320, 1402728287, 1402728144, 1402728140, 1402728127, 1402728094, 1402728061, 1402727716, 1402727713, 1402727712, 1402727696, 1402727693, 1402727690, 1402727688, 1402727687, 1402727674, 1402727673, 1402727671, 1402727670]} final : False mtd_id 4302 list_pids : [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470] Looping around the photos to save general results len do output : 9 /1402728498.Didn't retrieve data . /1402728497.Didn't retrieve data . /1402728496.Didn't retrieve data . /1402728484.Didn't retrieve data . /1402728482.Didn't retrieve data . /1402728478.Didn't retrieve data . /1402728475.Didn't retrieve data . /1402728473.Didn't retrieve data . /1402728470.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, '4319352') ('4302', '30000381', '1402728498', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728497', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728496', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728484', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728482', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728478', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728475', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728473', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728470', None, None, None, None, None, '4319352') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '30000381', '1402728498', '0.03885524838725457', None, None, None, None, '4319352'), ('4302', '30000381', '1402728497', '0.03885524838725457', None, None, None, None, '4319352'), ('4302', '30000381', '1402728496', '0.03885524838725457', None, None, None, None, '4319352'), ('4302', '30000381', '1402728484', '0.03885524838725457', None, None, None, None, '4319352'), ('4302', '30000381', '1402728482', '0.03885524838725457', None, None, None, None, '4319352'), ('4302', '30000381', '1402728478', '0.03885524838725457', None, None, None, None, '4319352'), ('4302', '30000381', '1402728475', '0.03885524838725457', None, None, None, None, '4319352'), ('4302', '30000381', '1402728473', '0.03885524838725457', None, None, None, None, '4319352'), ('4302', '30000381', '1402728470', '0.03885524838725457', None, None, None, None, '4319352')] time used for this insertion : 0.017830610275268555 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08230781555175781 time spend to save output : 0.018317461013793945 total time spend for step 2 : 0.10062527656555176 step3:velours_tree Wed Jan 7 00:57:01 2026 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {30000381: [{'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400}]} input_args_next_step : {30000381: ()} output_args : {30000381: [{'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400}]} args : 30000381 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30000381) 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([30000381]) 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.2402961254119873 time spend to save output : 3.9577484130859375e-05 total time spend for step 3 : 0.24033570289611816 step4:send_mail_cod Wed Jan 7 00:57:02 2026 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} input_args_next_step : {1402728498: ()} output_args : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} args : 1402728498 depend.output_id : 0 input_args_next_step : {1402728498: ('0.03885524838725457',), 1402728497: ()} output_args : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} args : 1402728497 depend.output_id : 0 input_args_next_step : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ()} output_args : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} args : 1402728496 depend.output_id : 0 input_args_next_step : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ()} output_args : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} args : 1402728484 depend.output_id : 0 input_args_next_step : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ()} output_args : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} args : 1402728482 depend.output_id : 0 input_args_next_step : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ()} output_args : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} args : 1402728478 depend.output_id : 0 input_args_next_step : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ()} output_args : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} args : 1402728475 depend.output_id : 0 input_args_next_step : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ()} output_args : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} args : 1402728473 depend.output_id : 0 input_args_next_step : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ()} output_args : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',)} args : 1402728470 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 : {30000381: [{'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400}]} input_args_next_step : {1402728498: ('0.03885524838725457',), 1402728497: ('0.03885524838725457',), 1402728496: ('0.03885524838725457',), 1402728484: ('0.03885524838725457',), 1402728482: ('0.03885524838725457',), 1402728478: ('0.03885524838725457',), 1402728475: ('0.03885524838725457',), 1402728473: ('0.03885524838725457',), 1402728470: ('0.03885524838725457',), 30000381: ()} output_args : {30000381: [{'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400}]} args : 30000381 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 :10, first value : ('0.03885524838725457',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30000381) 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 (1402728498,1402728497,1402728496,1402728484,1402728482,1402728478,1402728475,1402728473,1402728470) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402728470 begin to download photo : 1402728475 begin to download photo : 1402728482 begin to download photo : 1402728498 begin to download photo : 1402728496 download finish for photo 1402728482 begin to download photo : 1402728484 download finish for photo 1402728496 begin to download photo : 1402728497 download finish for photo 1402728470 begin to download photo : 1402728473 download finish for photo 1402728498 download finish for photo 1402728475 begin to download photo : 1402728478 download finish for photo 1402728473 download finish for photo 1402728497 download finish for photo 1402728478 download finish for photo 1402728484 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P30000381_07-01-2026_00_57_02.pdf 30000389 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=30000389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728439: '1767743587_1556113_1402728127_1c99f1b76a0c54c24dc7b26a53724fde_rle_crop_4092230781_0.png', 1402728440: '1767743587_1556113_1402728094_ceb865738ea36fca52af485898db07d2_rle_crop_4092230788_0.png', 1402728489: '1767743707_1561618_1402728392_81d81dcdee07c26b567046a352d9ca6b_rle_crop_4092231065_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8afe92179b2dae4e5a43c2a8f3e33c3e_58584686.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/11a57628fab442afa9c77138dd01c056_11652995.png change filename to text .imagette300003891767743822/ imagette300003891767743822/1767743707_1561618_1402728392_81d81dcdee07c26b567046a352d9ca6b_rle_crop_4092231065_0.png.png imagette300003891767743822/1767743587_1556113_1402728127_1c99f1b76a0c54c24dc7b26a53724fde_rle_crop_4092230781_0.png.png imagette300003891767743822/1767743587_1556113_1402728094_ceb865738ea36fca52af485898db07d2_rle_crop_4092230788_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/0f9df9433280644852b0e04da8d83b41_55206459.png imagette300003891767743822 30000390 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=30000390 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728442: '1767743587_1556113_1402728127_1c99f1b76a0c54c24dc7b26a53724fde_rle_crop_4092230783_0.png', 1402728443: '1767743587_1556113_1402728094_ceb865738ea36fca52af485898db07d2_rle_crop_4092230793_0.png', 1402728494: '1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231126_0.png', 1402728495: '1767743727_1562024_1402728412_f01f99459e2bb3e0563a7311e8852140_rle_crop_4092231131_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/a866a0fa868dd146cc1d52931bee2c9d_48003749.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/236ce31e2b2326c6419c1e0b40358fa5_87874606.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/5ded00ed900b4480e72629b020ac86c7_51634700.png change filename to text .imagette300003901767743822/ imagette300003901767743822/1767743587_1556113_1402728127_1c99f1b76a0c54c24dc7b26a53724fde_rle_crop_4092230783_0.png.png imagette300003901767743822/1767743727_1562024_1402728412_f01f99459e2bb3e0563a7311e8852140_rle_crop_4092231131_0.png.png imagette300003901767743822/1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231126_0.png.png imagette300003901767743822/1767743587_1556113_1402728094_ceb865738ea36fca52af485898db07d2_rle_crop_4092230793_0.png.png imagette300003921767743823/ imagette300003931767743823/ imagette300003951767743823/ imagette300003981767743823/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c320bda86b7260efe7a5550297842186_40019407.png imagette300003901767743822 30000392 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=30000392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300003921767743823 30000393 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=30000393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300003931767743823 30000395 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=30000395 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300003951767743823 30000398 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=30000398 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300003981767743823 30000400 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=30000400 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728488: '1767743707_1561618_1402728393_974d7ca4f1f3101e0f2c387877b1726e_rle_crop_4092231055_0.png', 1402728492: '1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231120_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/6321932d434cd6ae3ea9575e58b86494_67574140.png change filename to text .imagette300004001767743823/ imagette300004001767743823/1767743707_1561618_1402728393_974d7ca4f1f3101e0f2c387877b1726e_rle_crop_4092231055_0.png.png imagette300004001767743823/1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231120_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f1a91a8f58b9da92a5694e6eda01c4eb_18390212.png imagette300004001767743823 30000391 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=30000391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728405: '1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230646_0.png', 1402728406: '1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230645_0.png', 1402728407: '1767743466_1551514_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230661_0.png', 1402728408: '1767743466_1551514_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230660_0.png', 1402728441: '1767743587_1556113_1402728061_935e0ad475162cd2d4c01ca697013cb1_rle_crop_4092230801_0.png', 1402728448: '1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230646_0.png', 1402728449: '1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230645_0.png', 1402728450: '1767743605_1556470_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230661_0.png', 1402728451: '1767743605_1556470_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230660_0.png', 1402728493: '1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231124_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/053f7d08f5839d48c6aedaa577cdbb6f_96456151.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/bad77884fe32801288f26ddf53f9842d_30236427.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/09d0101cf4669957dcf87b00da32350b_56818096.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/3f8292db9d84aed7ba94608e3c9beb6a_4122157.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/cc634ce1980a9bdcf82e7ceca47907e5_77152677.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/053f7d08f5839d48c6aedaa577cdbb6f_34608852.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/bad77884fe32801288f26ddf53f9842d_76741971.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/09d0101cf4669957dcf87b00da32350b_47307127.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/3f8292db9d84aed7ba94608e3c9beb6a_91971206.png change filename to text .imagette300003911767743823/ imagette300003911767743823/1767743466_1551514_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230660_0.png.png imagette300003911767743823/1767743587_1556113_1402728061_935e0ad475162cd2d4c01ca697013cb1_rle_crop_4092230801_0.png.png imagette300003911767743823/1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230645_0.png.png imagette300003911767743823/1767743605_1556470_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230660_0.png.png imagette300003911767743823/1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230645_0.png.png imagette300003911767743823/1767743605_1556470_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230661_0.png.png imagette300003911767743823/1767743466_1551514_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230661_0.png.png imagette300003911767743823/1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231124_0.png.png imagette300003911767743823/1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230646_0.png.png imagette300003911767743823/1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230646_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ad7c1ef03b73db437f3de476a85d40ee_12143467.png imagette300003911767743823 30000394 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=30000394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728404: '1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230650_0.png', 1402728447: '1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230650_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7ddebf4189bacec7689c68a80463b4bf_90466682.png change filename to text .imagette300003941767743824/ imagette300003941767743824/1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230650_0.png.png imagette300003941767743824/1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230650_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7ddebf4189bacec7689c68a80463b4bf_54287109.png imagette300003941767743824 30000397 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=30000397 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728402: '1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230643_0.png', 1402728437: '1767743587_1556113_1402728061_935e0ad475162cd2d4c01ca697013cb1_rle_crop_4092230800_0.png', 1402728446: '1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230643_0.png', 1402728486: '1767743707_1561618_1402728393_974d7ca4f1f3101e0f2c387877b1726e_rle_crop_4092231054_0.png', 1402728487: '1767743707_1561618_1402728391_86f45fac849ebe7d0dd06fb9f3a97c34_rle_crop_4092231075_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8e33b0a49ff1a10e786d2dad8b85e458_98945999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/895e91046c47c4a5d5908ebb9290efe8_259008.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8e33b0a49ff1a10e786d2dad8b85e458_44420443.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8b144694b6617b55c1d7e84761283f90_79840504.png change filename to text .imagette300003971767743824/ imagette300003971767743824/1767743707_1561618_1402728393_974d7ca4f1f3101e0f2c387877b1726e_rle_crop_4092231054_0.png.png imagette300003971767743824/1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230643_0.png.png imagette300003971767743824/1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230643_0.png.png imagette300003971767743824/1767743707_1561618_1402728391_86f45fac849ebe7d0dd06fb9f3a97c34_rle_crop_4092231075_0.png.png imagette300003971767743824/1767743587_1556113_1402728061_935e0ad475162cd2d4c01ca697013cb1_rle_crop_4092230800_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/aaf36e84ea00e201e2cab640eec9e3c6_63189171.png imagette300003971767743824 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=30000381 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/30000401,30000402,30000403,30000404,30000405,30000406,30000407,30000408,30000409,30000410,30000411,30000412?tags=cartonnette,plastique,Carton_brun,flou,kraft,Carton_gris,mal_croppe,papier,Teint_Dans_La_Masse,metal,environnement,autre_refus your option no_mail is active, we will not send the real mail to your client args[1402728498] : ('0.03885524838725457',) no score found for photo 1402728498 We are sending mail with results at report@fotonower.com args[1402728497] : ('0.03885524838725457',) no score found for photo 1402728497 We are sending mail with results at report@fotonower.com args[1402728496] : ('0.03885524838725457',) no score found for photo 1402728496 We are sending mail with results at report@fotonower.com args[1402728484] : ('0.03885524838725457',) no score found for photo 1402728484 We are sending mail with results at report@fotonower.com args[1402728482] : ('0.03885524838725457',) no score found for photo 1402728482 We are sending mail with results at report@fotonower.com args[1402728478] : ('0.03885524838725457',) no score found for photo 1402728478 We are sending mail with results at report@fotonower.com args[1402728475] : ('0.03885524838725457',) no score found for photo 1402728475 We are sending mail with results at report@fotonower.com args[1402728473] : ('0.03885524838725457',) no score found for photo 1402728473 We are sending mail with results at report@fotonower.com args[1402728470] : ('0.03885524838725457',) no score found for photo 1402728470 We are sending mail with results at report@fotonower.com refus_total : 0.03885524838725457 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=30000381 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_P30000381_07-01-2026_00_57_02.pdf results_Auto_P30000381_07-01-2026_00_57_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_00_57_02.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','30000381','results_Auto_P30000381_07-01-2026_00_57_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_00_57_02.pdf','pdf','','0.15','0.03885524838725457') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30000381]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470] map_info['map_portfolio_photo'] : {30000381: [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470, 1402728456, 1402728454, 1402728453, 1402728452, 1402728433, 1402728431, 1402728428, 1402728427, 1402728426, 1402728425, 1402728415, 1402728413, 1402728412, 1402728398, 1402728394, 1402728393, 1402728392, 1402728391, 1402728363, 1402728340, 1402728338, 1402728320, 1402728287, 1402728144, 1402728140, 1402728127, 1402728094, 1402728061, 1402727716, 1402727713, 1402727712, 1402727696, 1402727693, 1402727690, 1402727688, 1402727687, 1402727674, 1402727673, 1402727671, 1402727670]} final : False mtd_id 4302 list_pids : [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470] 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, '4319352') ('4302', '30000381', '1402728498', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728497', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728496', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728484', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728482', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728478', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728475', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728473', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728470', None, None, None, None, None, '4319352') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '30000381', '1402728498', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728497', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728496', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728484', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728482', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728478', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728475', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728473', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728470', None, None, None, None, None, '4319352')] time used for this insertion : 0.019182205200195312 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5152878761291504 time spend to save output : 0.019400358200073242 total time spend for step 4 : 3.5346882343292236 step5:split_time_score Wed Jan 7 00:57:05 2026 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['30000381'] 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 : [('30000381',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30000381) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402728498: {'path': 'temp/1767743822_1900290_1402728498_754b65158e90c6450f021ce35545b2e8.jpg', 'extension': 'jpg'}, 1402728470: {'path': 'temp/1767743822_1900290_1402728470_8229b99ae4924cc0c49ec26ad8a5ea53.jpg', 'extension': 'jpg'}, 1402728473: {'path': 'temp/1767743822_1900290_1402728473_4fa3f12e39634a82ce6dee926a004176.jpg', 'extension': 'jpg'}, 1402728496: {'path': 'temp/1767743822_1900290_1402728496_b515e46da9062e55c70c284e36fd6b2d.jpg', 'extension': 'jpg'}, 1402728497: {'path': 'temp/1767743822_1900290_1402728497_ef39f4707b59e07ddfee2a4dba107aea.jpg', 'extension': 'jpg'}, 1402728475: {'path': 'temp/1767743822_1900290_1402728475_e20e38243429d9e388de59485205e4ca.jpg', 'extension': 'jpg'}, 1402728478: {'path': 'temp/1767743822_1900290_1402728478_1a3c26205b485aec486acb8204d288c3.jpg', 'extension': 'jpg'}, 1402728482: {'path': 'temp/1767743822_1900290_1402728482_e09403eb9b490bbaac02c5811ea58bab.jpg', 'extension': 'jpg'}, 1402728484: {'path': 'temp/1767743822_1900290_1402728484_abefc049cb3ad275e13d674bc7158efc.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 = 30000381; (('arc_en_ciel_jrm_live',),) 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 = 30000381 group by h (('00', 49),) 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=30000381 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 (30000381) 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 (30000381) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07012026 30000381 Nombre de photos uploadées : 49 / 23040 (0%) 07012026 30000381 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 07012026 30000381 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1402727674, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/d7d4e0fd57ac9d910dd7fa030356a5ca.jpg', 'username': None, 'uploaded_at': 1767743167, 'text': 'image_07012026_00_45_04_10169.jpg'}, {'photo_id': 1402727673, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/80e9729a0e773d64bea6f663b9fbacff.jpg', 'username': None, 'uploaded_at': 1767743167, 'text': 'image_07012026_00_45_13_9127.jpg'}, {'photo_id': 1402727671, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9bbc2a3c6bf894ac7a60bcbbc972a687.jpg', 'username': None, 'uploaded_at': 1767743167, 'text': 'image_07012026_00_45_23_10138.jpg'}, {'photo_id': 1402727670, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7e82f7a65667c0a385aebfd80e115ea8.jpg', 'username': None, 'uploaded_at': 1767743167, 'text': 'image_07012026_00_45_34_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002128124237060547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 30000381, '2026-01-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2026-01-07' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2854523,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.244917631149292 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= 2854523 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2854523, 'dashboard_run_id': 2861024, 'mtr_portfolio_id': 29999365, 'dashboard_result_id': 19085388, '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_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, 'pht': 3726}}"}, {'dashboat_entry_day': 2854523, 'dashboard_run_id': 2861024, 'mtr_portfolio_id': 29999670, 'dashboard_result_id': 19085389, '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_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, 'pht': 3726}}"}, {'dashboat_entry_day': 2854523, 'dashboard_run_id': 2861024, 'mtr_portfolio_id': 30000240, 'dashboard_result_id': 19085390, '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_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, 'pht': 3726}}"}, {'dashboat_entry_day': 2854523, 'dashboard_run_id': 2861024, 'mtr_portfolio_id': 30000381, 'dashboard_result_id': 19085391, '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_P30000381_07-01-2026_00_54_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, '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 = 29999365 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': 4319217, 'mtr_portfolio_id': 29999365, 'created_at': datetime.datetime(2026, 1, 7, 0, 16, 58), 'result': '0.03556487967171043', 'result_long': None, 'result_double': None}] Qualite : 0.03556487967171043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29999365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999365_07-01-2026_00_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29999365 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_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, 'pht': 3726}}" where mtr_portfolio_id = 29999365 and dashboard_run_id = 2861024 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`=29999365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19085388, 0.03556487967171043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, '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 = 29999670 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': 4319241, 'mtr_portfolio_id': 29999670, 'created_at': datetime.datetime(2026, 1, 7, 0, 35), 'result': '0.07220360950194565', 'result_long': None, 'result_double': None}] Qualite : 0.07220360950194565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29999670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999670_07-01-2026_00_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29999670 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_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, 'pht': 3726}}" where mtr_portfolio_id = 29999670 and dashboard_run_id = 2861024 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`=29999670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19085389, 0.07220360950194565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, '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 = 30000240 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': 4319321, 'mtr_portfolio_id': 30000240, 'created_at': datetime.datetime(2026, 1, 7, 0, 48, 59), 'result': '0.08740129110559802', 'result_long': None, 'result_double': None}] Qualite : 0.08740129110559802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30000240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000240_07-01-2026_00_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30000240 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_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, 'pht': 3726}}" where mtr_portfolio_id = 30000240 and dashboard_run_id = 2861024 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`=30000240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19085390, 0.08740129110559802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, '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 = 30000381 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': 4319352, 'mtr_portfolio_id': 30000381, 'created_at': datetime.datetime(2026, 1, 7, 0, 57, 1), 'result': '0.03885524838725457', 'result_long': None, 'result_double': None}] Qualite : 0.03885524838725457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30000381 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_00_57_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30000381 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_P30000381_07-01-2026_00_57_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, 'pht': 3726}}" where mtr_portfolio_id = 30000381 and dashboard_run_id = 2861024 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`=30000381 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19085391, 0.03885524838725457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_00_57_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, '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 (29999365,29999670,30000240,30000381) result : ((1402725806,), (1402725885,), (1402725888,), (1402725954,), (1402725956,), (1402725957,), (1402725959,), (1402726002,), (1402726004,), (1402726006,), (1402726033,), (1402726034,), (1402726036,), (1402726038,), (1402726054,), (1402726055,), (1402726058,), (1402726060,), (1402726064,), (1402726067,), (1402726080,), (1402726081,), (1402726086,), (1402726091,), (1402726189,), (1402726205,), (1402726236,), (1402726249,), (1402726250,), (1402726251,), (1402726261,), (1402726451,), (1402726452,), (1402726482,), (1402726520,), (1402726557,), (1402726579,), (1402726590,), (1402726591,), (1402726592,), (1402726656,), (1402726658,), (1402726661,), (1402726663,), (1402726666,), (1402726670,), (1402726677,), (1402726679,), (1402726680,), (1402726682,), (1402726683,), (1402726684,), (1402726686,), (1402726688,), (1402726692,), (1402726695,), (1402726734,), (1402726726,), (1402726727,), (1402726728,), (1402726730,), (1402726746,), (1402726747,), (1402726748,), (1402726790,), (1402726791,), (1402726793,), (1402726794,), (1402726837,), (1402726838,), (1402726839,), (1402726841,), (1402726844,), (1402726927,), (1402726931,), (1402726933,), (1402726935,), (1402726948,), (1402726949,), (1402726950,), (1402727047,), (1402727048,), (1402727049,), (1402727052,), (1402727055,), (1402727058,), (1402727061,), (1402727062,), (1402727063,), (1402727084,), (1402727085,), (1402727087,), (1402727104,), (1402727105,), (1402727129,), (1402727140,), (1402727149,), (1402727152,), (1402727156,), (1402727227,), (1402727229,), (1402727363,), (1402727462,), (1402727384,), (1402727476,), (1402727537,), (1402727538,), (1402727555,), (1402727556,), (1402727558,), (1402727562,), (1402727565,), (1402727568,), (1402727571,), (1402727572,), (1402727574,), (1402727575,), (1402727583,), (1402727584,), (1402727585,), (1402727601,), (1402727602,), (1402727603,), (1402727604,), (1402727607,), (1402727620,), (1402727621,), (1402727623,), (1402727624,), (1402727625,), (1402727626,), (1402727639,), (1402727640,), (1402727641,), (1402727677,), (1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07012026': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30000381]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470] map_info['map_portfolio_photo'] : {30000381: [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470, 1402728456, 1402728454, 1402728453, 1402728452, 1402728433, 1402728431, 1402728428, 1402728427, 1402728426, 1402728425, 1402728415, 1402728413, 1402728412, 1402728398, 1402728394, 1402728393, 1402728392, 1402728391, 1402728363, 1402728340, 1402728338, 1402728320, 1402728287, 1402728144, 1402728140, 1402728127, 1402728094, 1402728061, 1402727716, 1402727713, 1402727712, 1402727696, 1402727693, 1402727690, 1402727688, 1402727687, 1402727674, 1402727673, 1402727671, 1402727670]} final : True mtd_id 4302 list_pids : [1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470] Looping around the photos to save general results len do output : 1 /30000381Didn'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, '4319352') ('4302', '30000381', '1402728498', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728497', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728496', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728484', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728482', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728478', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728475', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728473', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728470', None, None, None, None, None, '4319352') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '30000381', 'None', None, None, None, None, '4319352'), ('4302', '30000381', '1402728498', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728497', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728496', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728484', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728482', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728478', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728475', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728473', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728470', None, None, None, None, None, '4319352')] time used for this insertion : 0.01793527603149414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6149628162384033 time spend to save output : 0.018131256103515625 total time spend for step 5 : 0.633094072341919 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 (4319352) 1.98user 2.46system 0:10.27elapsed 43%CPU (0avgtext+0avgdata 167740maxresident)k 216inputs+9312outputs (7major+67505minor)pagefaults 0swaps