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 : 3002922 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 (3949317) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3949317) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853105 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3949317'] with mtr_portfolio_ids : ['27853105'] and first list_photo_ids : [] new path : /proc/3002922/ Name: python3 Umask: 0002 State: R (running) Tgid: 3002922 Ngid: 0 Pid: 3002922 PPid: 3002921 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3002922 NSpid: 3002922 NSpgid: 3001314 NSsid: 3001314 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99320 kB VmRSS: 99320 kB RssAnon: 59840 kB RssFile: 39480 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 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: 54 nonvoluntary_ctxt_switches: 98 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3002922', 'Ngid': '0', 'Pid': '3002922', 'PPid': '3002921', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3002922', 'NSpid': '3002922', 'NSpgid': '3001314', 'NSsid': '3001314', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99320 kB', 'VmRSS': '99320 kB', 'RssAnon': '59840 kB', 'RssFile': '39480 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 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': '54', 'nonvoluntary_ctxt_switches': '98'} ('datou_batch_current', '3002922', '1106856', '0', '1106856', '865608', '99320', b'', 'marlene', '3949317') 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 (27853105) 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 (3949317 ) ) 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 (27853105) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1389693927, 'portfolio_id': 27853105}, {'photo_id': 1389693926, 'portfolio_id': 27853105}, {'photo_id': 1389693925, 'portfolio_id': 27853105}, {'photo_id': 1389693861, 'portfolio_id': 27853105}, {'photo_id': 1389693859, 'portfolio_id': 27853105}, {'photo_id': 1389693858, 'portfolio_id': 27853105}, {'photo_id': 1389693857, 'portfolio_id': 27853105}, {'photo_id': 1389693856, 'portfolio_id': 27853105}, {'photo_id': 1389693827, 'portfolio_id': 27853105}, {'photo_id': 1389693806, 'portfolio_id': 27853105}, {'photo_id': 1389693619, 'portfolio_id': 27853105}, {'photo_id': 1389693618, 'portfolio_id': 27853105}, {'photo_id': 1389693617, 'portfolio_id': 27853105}, {'photo_id': 1389693606, 'portfolio_id': 27853105}, {'photo_id': 1389693173, 'portfolio_id': 27853105}, {'photo_id': 1389692851, 'portfolio_id': 27853105}, {'photo_id': 1389692847, 'portfolio_id': 27853105}, {'photo_id': 1389692845, 'portfolio_id': 27853105}, {'photo_id': 1389692844, 'portfolio_id': 27853105}, {'photo_id': 1389692831, 'portfolio_id': 27853105}, {'photo_id': 1389692823, 'portfolio_id': 27853105}, {'photo_id': 1389692821, 'portfolio_id': 27853105}, {'photo_id': 1389692812, 'portfolio_id': 27853105}, {'photo_id': 1389692810, 'portfolio_id': 27853105}, {'photo_id': 1389692808, 'portfolio_id': 27853105}, {'photo_id': 1389692807, 'portfolio_id': 27853105}, {'photo_id': 1389692806, 'portfolio_id': 27853105}, {'photo_id': 1389692805, 'portfolio_id': 27853105}, {'photo_id': 1389692792, 'portfolio_id': 27853105}, {'photo_id': 1389692787, 'portfolio_id': 27853105}, {'photo_id': 1389692785, 'portfolio_id': 27853105}, {'photo_id': 1389692783, 'portfolio_id': 27853105}, {'photo_id': 1389692781, 'portfolio_id': 27853105}, {'photo_id': 1389692780, 'portfolio_id': 27853105}, {'photo_id': 1389692530, 'portfolio_id': 27853105}, {'photo_id': 1389692529, 'portfolio_id': 27853105}, {'photo_id': 1389692526, 'portfolio_id': 27853105}, {'photo_id': 1389692524, 'portfolio_id': 27853105}, {'photo_id': 1389692523, 'portfolio_id': 27853105}, {'photo_id': 1389691970, 'portfolio_id': 27853105}, {'photo_id': 1389691968, 'portfolio_id': 27853105}, {'photo_id': 1389691966, 'portfolio_id': 27853105}, {'photo_id': 1389691965, 'portfolio_id': 27853105}, {'photo_id': 1389691964, 'portfolio_id': 27853105}, {'photo_id': 1389691921, 'portfolio_id': 27853105}, {'photo_id': 1389691884, 'portfolio_id': 27853105}, {'photo_id': 1389691882, 'portfolio_id': 27853105}, {'photo_id': 1389691727, 'portfolio_id': 27853105}, {'photo_id': 1389691725, 'portfolio_id': 27853105}, {'photo_id': 1389690888, 'portfolio_id': 27853105}, {'photo_id': 1389690886, 'portfolio_id': 27853105}, {'photo_id': 1389690885, 'portfolio_id': 27853105}, {'photo_id': 1389690883, 'portfolio_id': 27853105}] map_portfolio_id_photo_id: {27853105: [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617, 1389693606, 1389693173, 1389692851, 1389692847, 1389692845, 1389692844, 1389692831, 1389692823, 1389692821, 1389692812, 1389692810, 1389692808, 1389692807, 1389692806, 1389692805, 1389692792, 1389692787, 1389692785, 1389692783, 1389692781, 1389692780, 1389692530, 1389692529, 1389692526, 1389692524, 1389692523, 1389691970, 1389691968, 1389691966, 1389691965, 1389691964, 1389691921, 1389691884, 1389691882, 1389691727, 1389691725, 1389690888, 1389690886, 1389690885, 1389690883]} ##### 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.06891727447509766 #### 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 Thu Oct 16 02:11:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27853105) 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 : 27853105 get user id for portfolio 27853105 get sub ptf for main ptf 27853105, type 3726 and hashtags ['flou', 'plastique', 'environnement', 'papier', 'Teint_Dans_La_Masse', 'metal', 'kraft', 'autre_refus', 'Carton_brun', 'mal_croppe', 'cartonnette', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27853105 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','environnement','papier','Teint_Dans_La_Masse','metal','kraft','autre_refus','Carton_brun','mal_croppe','cartonnette','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27853105 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','environnement','papier','Teint_Dans_La_Masse','metal','kraft','autre_refus','Carton_brun','mal_croppe','cartonnette','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 27853105, 'sub_port_id': 27853111, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798699, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}, 'mal_croppe': {'main_port_id': 27853105, 'sub_port_id': 27853112, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798700, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 27853105, 'sub_port_id': 27853113, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798701, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}, 'flou': {'main_port_id': 27853105, 'sub_port_id': 27853114, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798702, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}, 'papier': {'main_port_id': 27853105, 'sub_port_id': 27853115, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798703, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}, 'Carton_gris': {'main_port_id': 27853105, 'sub_port_id': 27853116, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798704, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}, 'environnement': {'main_port_id': 27853105, 'sub_port_id': 27853117, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798705, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}, 'plastique': {'main_port_id': 27853105, 'sub_port_id': 27853118, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798706, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}, 'autre_refus': {'main_port_id': 27853105, 'sub_port_id': 27853119, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798707, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}, 'Carton_brun': {'main_port_id': 27853105, 'sub_port_id': 27853120, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798708, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}, 'metal': {'main_port_id': 27853105, 'sub_port_id': 27853121, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798709, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}, 'cartonnette': {'main_port_id': 27853105, 'sub_port_id': 27853122, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798710, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27853111 , 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=27853105 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 (27853111) result : ((1389692803,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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 27853112 , 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=27853105 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 (27853112) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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 27853113 , 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=27853105 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 (27853113) result : ((1389692796,), (1389692797,), (1389692798,), (1389692799,), (1389692849,), (1389692850,), (1389693863,), (1389693864,), (1389693865,), (1389693866,), (1389693867,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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 27853114 , 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=27853105 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 (27853114) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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 27853115 , 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=27853105 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 (27853115) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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 27853116 , 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=27853105 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 (27853116) result : ((1389692801,), (1389692953,), (1389692955,), (1389692957,), (1389693872,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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 27853117 , 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=27853105 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 (27853117) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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 27853118 , 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=27853105 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 (27853118) result : ((1389693874,), (1389693875,), (1389693876,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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 27853119 , 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=27853105 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 (27853119) result : ((1389692800,), (1389692852,), (1389692853,), (1389692854,), (1389693868,), (1389693869,), (1389693871,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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 27853120 , 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=27853105 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 (27853120) result : ((1389691974,), (1389692802,), (1389693160,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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 27853121 , 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=27853105 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 (27853121) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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 27853122 , 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=27853105 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 (27853122) result : ((1389691973,), (1389693068,), (1389693070,), (1389693873,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27853105) result : ((1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) 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`=27853105 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','environnement','papier','Teint_Dans_La_Masse','metal','kraft','autre_refus','Carton_brun','mal_croppe','cartonnette','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27853105 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','plastique','environnement','papier','Teint_Dans_La_Masse','metal','kraft','autre_refus','Carton_brun','mal_croppe','cartonnette','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 27853105, 'sub_port_id': 27853159, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798747, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}, 'mal_croppe': {'main_port_id': 27853105, 'sub_port_id': 27853160, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798748, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}, 'Teint_Dans_La_Masse': {'main_port_id': 27853105, 'sub_port_id': 27853161, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798749, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}, 'flou': {'main_port_id': 27853105, 'sub_port_id': 27853162, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798750, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}, 'papier': {'main_port_id': 27853105, 'sub_port_id': 27853163, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798751, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}, 'Carton_gris': {'main_port_id': 27853105, 'sub_port_id': 27853164, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798752, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}, 'environnement': {'main_port_id': 27853105, 'sub_port_id': 27853165, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798753, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}, 'plastique': {'main_port_id': 27853105, 'sub_port_id': 27853166, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798754, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}, 'autre_refus': {'main_port_id': 27853105, 'sub_port_id': 27853167, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798755, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}, 'Carton_brun': {'main_port_id': 27853105, 'sub_port_id': 27853168, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798756, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}, 'metal': {'main_port_id': 27853105, 'sub_port_id': 27853169, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798757, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 3, 6), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}, 'cartonnette': {'main_port_id': 27853105, 'sub_port_id': 27853170, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18798758, 'last_updated_at': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 16, 2, 8, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 16, 2, 3, 6)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853159,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853111 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853160,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853112 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853161,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853113 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853162,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853114 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853115 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853164,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853116 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853165,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853117 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853166,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853118 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853167,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853119 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853168,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853120 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853169,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853121 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27853170,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27853122 lien utilise dans velours : https://marlene.fotonower.com/velours/27853159,27853160,27853161,27853162,27853163,27853164,27853165,27853166,27853167,27853168,27853169,27853170?tags=kraft,mal_croppe,Teint_Dans_La_Masse,flou,papier,Carton_gris,environnement,plastique,autre_refus,Carton_brun,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27853105]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617] map_info['map_portfolio_photo'] : {27853105: [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617, 1389693606, 1389693173, 1389692851, 1389692847, 1389692845, 1389692844, 1389692831, 1389692823, 1389692821, 1389692812, 1389692810, 1389692808, 1389692807, 1389692806, 1389692805, 1389692792, 1389692787, 1389692785, 1389692783, 1389692781, 1389692780, 1389692530, 1389692529, 1389692526, 1389692524, 1389692523, 1389691970, 1389691968, 1389691966, 1389691965, 1389691964, 1389691921, 1389691884, 1389691882, 1389691727, 1389691725, 1389690888, 1389690886, 1389690885, 1389690883]} final : False mtd_id 4302 list_pids : [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617] Looping around the photos to save general results len do output : 1 /27853105. 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, '3949317') ('4302', '27853105', '1389693927', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693926', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693925', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693861', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693859', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693858', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693857', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693856', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693827', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693806', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693619', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693618', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693617', None, None, None, None, None, '3949317') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27853105', "{'kraft': 27853111, 'mal_croppe': 27853112, 'Teint_Dans_La_Masse': 27853113, 'flou': 27853114, 'papier': 27853115, 'Carton_gris': 27853116, 'environnement': 27853117, 'plastique': 27853118, 'autre_refus': 27853119, 'Carton_brun': 27853120, 'metal': 27853121, 'cartonnette': 27853122}", None, None, None, None, '3949317'), ('4302', '27853105', '1389693927', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693926', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693925', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693861', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693859', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693858', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693857', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693856', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693827', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693806', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693619', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693618', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693617', None, None, None, None, None, '3949317')] time used for this insertion : 0.04815244674682617 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.6435441970825195 time spend to save output : 0.048482656478881836 total time spend for step 1 : 6.692026853561401 step2:final Thu Oct 16 02:11:07 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27853105) 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 27853105 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1389690888,1389690886,1389690885,1389690883,1389691921,1389691884,1389691882,1389691727,1389691725,1389691970,1389691968,1389691966,1389691965,1389691964,1389692530,1389692529,1389692526,1389692524,1389692523,1389692792,1389692831,1389692787,1389692823,1389692785,1389692821,1389692783,1389692812,1389692781,1389692810,1389692780,1389692808,1389692807,1389692806,1389692805,1389693606,1389693173,1389692851,1389692847,1389692845,1389692844,1389693827,1389693806,1389693619,1389693618,1389693617,1389693861,1389693859,1389693858,1389693857,1389693856,1389693927,1389693926,1389693925); 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([27853105]) Inside saveOutput : final : False verbose : True original output for save of step final : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} new output for save of step final : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617] map_info['map_portfolio_photo'] : {27853105: [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617, 1389693606, 1389693173, 1389692851, 1389692847, 1389692845, 1389692844, 1389692831, 1389692823, 1389692821, 1389692812, 1389692810, 1389692808, 1389692807, 1389692806, 1389692805, 1389692792, 1389692787, 1389692785, 1389692783, 1389692781, 1389692780, 1389692530, 1389692529, 1389692526, 1389692524, 1389692523, 1389691970, 1389691968, 1389691966, 1389691965, 1389691964, 1389691921, 1389691884, 1389691882, 1389691727, 1389691725, 1389690888, 1389690886, 1389690885, 1389690883]} final : False mtd_id 4302 list_pids : [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617] Looping around the photos to save general results len do output : 13 /1389693927.Didn't retrieve data . /1389693926.Didn't retrieve data . /1389693925.Didn't retrieve data . /1389693861.Didn't retrieve data . /1389693859.Didn't retrieve data . /1389693858.Didn't retrieve data . /1389693857.Didn't retrieve data . /1389693856.Didn't retrieve data . /1389693827.Didn't retrieve data . /1389693806.Didn't retrieve data . /1389693619.Didn't retrieve data . /1389693618.Didn't retrieve data . /1389693617.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, '3949317') ('4302', '27853105', '1389693927', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693926', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693925', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693861', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693859', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693858', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693857', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693856', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693827', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693806', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693619', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693618', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693617', None, None, None, None, None, '3949317') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27853105', '1389693927', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693926', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693925', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693861', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693859', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693858', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693857', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693856', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693827', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693806', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693619', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693618', '0.05932292497200395', None, None, None, None, '3949317'), ('4302', '27853105', '1389693617', '0.05932292497200395', None, None, None, None, '3949317')] time used for this insertion : 0.04699444770812988 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.31960105895996094 time spend to save output : 0.04766130447387695 total time spend for step 2 : 0.3672623634338379 step3:velours_tree Thu Oct 16 02:11:07 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27853105: [{'kraft': 27853111, 'mal_croppe': 27853112, 'Teint_Dans_La_Masse': 27853113, 'flou': 27853114, 'papier': 27853115, 'Carton_gris': 27853116, 'environnement': 27853117, 'plastique': 27853118, 'autre_refus': 27853119, 'Carton_brun': 27853120, 'metal': 27853121, 'cartonnette': 27853122}]} input_args_next_step : {27853105: ()} output_args : {27853105: [{'kraft': 27853111, 'mal_croppe': 27853112, 'Teint_Dans_La_Masse': 27853113, 'flou': 27853114, 'papier': 27853115, 'Carton_gris': 27853116, 'environnement': 27853117, 'plastique': 27853118, 'autre_refus': 27853119, 'Carton_brun': 27853120, 'metal': 27853121, 'cartonnette': 27853122}]} args : 27853105 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 27853111, 'mal_croppe': 27853112, 'Teint_Dans_La_Masse': 27853113, 'flou': 27853114, 'papier': 27853115, 'Carton_gris': 27853116, 'environnement': 27853117, 'plastique': 27853118, 'autre_refus': 27853119, 'Carton_brun': 27853120, 'metal': 27853121, 'cartonnette': 27853122},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27853105) 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([27853105]) 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.3287663459777832 time spend to save output : 5.9604644775390625e-05 total time spend for step 3 : 0.3288259506225586 step4:send_mail_cod Thu Oct 16 02:11:08 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} input_args_next_step : {1389693927: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693927 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693926 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693925 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693861 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693859 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693858 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693857 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693856 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693827 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693806 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693619 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693618 depend.output_id : 0 input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ()} output_args : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',)} args : 1389693617 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 : {27853105: [{'kraft': 27853111, 'mal_croppe': 27853112, 'Teint_Dans_La_Masse': 27853113, 'flou': 27853114, 'papier': 27853115, 'Carton_gris': 27853116, 'environnement': 27853117, 'plastique': 27853118, 'autre_refus': 27853119, 'Carton_brun': 27853120, 'metal': 27853121, 'cartonnette': 27853122}]} input_args_next_step : {1389693927: ('0.05932292497200395',), 1389693926: ('0.05932292497200395',), 1389693925: ('0.05932292497200395',), 1389693861: ('0.05932292497200395',), 1389693859: ('0.05932292497200395',), 1389693858: ('0.05932292497200395',), 1389693857: ('0.05932292497200395',), 1389693856: ('0.05932292497200395',), 1389693827: ('0.05932292497200395',), 1389693806: ('0.05932292497200395',), 1389693619: ('0.05932292497200395',), 1389693618: ('0.05932292497200395',), 1389693617: ('0.05932292497200395',), 27853105: ()} output_args : {27853105: [{'kraft': 27853111, 'mal_croppe': 27853112, 'Teint_Dans_La_Masse': 27853113, 'flou': 27853114, 'papier': 27853115, 'Carton_gris': 27853116, 'environnement': 27853117, 'plastique': 27853118, 'autre_refus': 27853119, 'Carton_brun': 27853120, 'metal': 27853121, 'cartonnette': 27853122}]} args : 27853105 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :14, first value : ('0.05932292497200395',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27853105) 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 (1389693927,1389693926,1389693925,1389693861,1389693859,1389693858,1389693857,1389693856,1389693827,1389693806,1389693619,1389693618,1389693617) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1389693617 begin to download photo : 1389693806 begin to download photo : 1389693857 begin to download photo : 1389693861 begin to download photo : 1389693927 download finish for photo 1389693927 download finish for photo 1389693861 begin to download photo : 1389693925 download finish for photo 1389693857 begin to download photo : 1389693858 download finish for photo 1389693806 begin to download photo : 1389693827 download finish for photo 1389693617 begin to download photo : 1389693618 download finish for photo 1389693925 begin to download photo : 1389693926 download finish for photo 1389693827 begin to download photo : 1389693856 download finish for photo 1389693858 begin to download photo : 1389693859 download finish for photo 1389693618 begin to download photo : 1389693619 download finish for photo 1389693926 download finish for photo 1389693856 download finish for photo 1389693859 download finish for photo 1389693619 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P27853105_16-10-2025_02_11_08.pdf 27853111 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=27853111 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389692803: '1760573126_3893008_1389691965_1679477bc84af384aa26d6ab99babc44_rle_crop_3999639420_0.png'} change filename to text .imagette278531111760573468/ imagette278531111760573468/1760573126_3893008_1389691965_1679477bc84af384aa26d6ab99babc44_rle_crop_3999639420_0.png.png imagette278531121760573468/ imagette278531141760573469/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/c65a637cebcd80c669e8e12f57b0dc3e_69302311.png imagette278531111760573468 27853112 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=27853112 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278531121760573468 27853114 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=27853114 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278531141760573469 27853118 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=27853118 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389693874: '1760573346_3903960_1389692787_524a03f5b7c1f4fd04311d8bc0281bcf_rle_crop_3999649656_0.png', 1389693875: '1760573346_3903960_1389692783_022577f2b1f197be16f6eec1cb746b21_rle_crop_3999649682_0.png', 1389693876: '1760573346_3903960_1389692781_043715a8a06a04715b0e73c869aeac8e_rle_crop_3999649690_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/eb33b983c723d0c63bb715ecad6b797d_7558972.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/9edba9e926b7fda2e15c3aafbef52544_71609943.png change filename to text .imagette278531181760573469/ imagette278531181760573469/1760573346_3903960_1389692783_022577f2b1f197be16f6eec1cb746b21_rle_crop_3999649682_0.png.png imagette278531181760573469/1760573346_3903960_1389692781_043715a8a06a04715b0e73c869aeac8e_rle_crop_3999649690_0.png.png imagette278531181760573469/1760573346_3903960_1389692787_524a03f5b7c1f4fd04311d8bc0281bcf_rle_crop_3999649656_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/2da60826d7a2a505c9021bec98ebee12_82358713.png imagette278531181760573469 27853119 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=27853119 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389692800: '1760573126_3893008_1389691966_fa4cd40d4786c51d8f682223f7922e38_rle_crop_3999639402_0.png', 1389692852: '1760573226_3898198_1389691882_3ab44b64a27fd53f95cd9ace8e9d4727_rle_crop_3999639783_0.png', 1389692853: '1760573226_3898198_1389691727_ffa2f4d91bda13e6ae303b68a75e4b04_rle_crop_3999639798_0.png', 1389692854: '1760573226_3898198_1389691725_94ac10875dfd825ac694f10ae8363bbd_rle_crop_3999639807_0.png', 1389693868: '1760573346_3903960_1389692787_524a03f5b7c1f4fd04311d8bc0281bcf_rle_crop_3999649648_0.png', 1389693869: '1760573346_3903960_1389692785_c3dc0287b8e375d4aecd057044b6d54b_rle_crop_3999649670_0.png', 1389693871: '1760573346_3903960_1389692783_022577f2b1f197be16f6eec1cb746b21_rle_crop_3999649679_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/791492f29acf2be8b010321a2635503b_81432842.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/5a72b1747fab64183a99f4f545eb7726_47253171.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/5d487e8898d16cb7c494cadb31dba059_77905799.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/7bf45848e239573c0fa8b4af14c151a2_47227779.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/1280cdffea0f3e358ab43c14c661caed_8068009.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/0edfd10c78624d15f54978f081bf16e1_11473938.png change filename to text .imagette278531191760573469/ imagette278531191760573469/1760573226_3898198_1389691727_ffa2f4d91bda13e6ae303b68a75e4b04_rle_crop_3999639798_0.png.png imagette278531191760573469/1760573346_3903960_1389692787_524a03f5b7c1f4fd04311d8bc0281bcf_rle_crop_3999649648_0.png.png imagette278531191760573469/1760573346_3903960_1389692783_022577f2b1f197be16f6eec1cb746b21_rle_crop_3999649679_0.png.png imagette278531191760573469/1760573346_3903960_1389692785_c3dc0287b8e375d4aecd057044b6d54b_rle_crop_3999649670_0.png.png imagette278531191760573469/1760573226_3898198_1389691882_3ab44b64a27fd53f95cd9ace8e9d4727_rle_crop_3999639783_0.png.png imagette278531191760573469/1760573126_3893008_1389691966_fa4cd40d4786c51d8f682223f7922e38_rle_crop_3999639402_0.png.png imagette278531191760573469/1760573226_3898198_1389691725_94ac10875dfd825ac694f10ae8363bbd_rle_crop_3999639807_0.png.png imagette278531211760573469/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/ccd816cc0f902b38ffe1f01c44759848_71704457.png imagette278531191760573469 27853121 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=27853121 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette278531211760573469 27853122 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=27853122 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389691973: '1760572987_3886728_1389690885_a7287d9b6fccb65ff58d5a146d1d5bfd_rle_crop_3999632093_0.png', 1389693068: '1760573226_3898198_1389691727_ffa2f4d91bda13e6ae303b68a75e4b04_rle_crop_3999639796_0.png', 1389693070: '1760573226_3898198_1389691725_94ac10875dfd825ac694f10ae8363bbd_rle_crop_3999639805_0.png', 1389693873: '1760573346_3903960_1389692780_f982cc6d14ca8d1fbf2bd9d076e76fd6_rle_crop_3999649698_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/6aa7c22ca14356f770fd138f4a893a41_51061620.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/21bdb5270bcf3706e5da19309b853018_82843438.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/4e84b46ab69ccdb398f015fcc1ec9fa4_89722999.png change filename to text .imagette278531221760573469/ imagette278531221760573469/1760573346_3903960_1389692780_f982cc6d14ca8d1fbf2bd9d076e76fd6_rle_crop_3999649698_0.png.png imagette278531221760573469/1760573226_3898198_1389691727_ffa2f4d91bda13e6ae303b68a75e4b04_rle_crop_3999639796_0.png.png imagette278531221760573469/1760572987_3886728_1389690885_a7287d9b6fccb65ff58d5a146d1d5bfd_rle_crop_3999632093_0.png.png imagette278531221760573469/1760573226_3898198_1389691725_94ac10875dfd825ac694f10ae8363bbd_rle_crop_3999639805_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/60e2c2657c4ba4ff79cf1f1125843d55_98011317.png imagette278531221760573469 27853113 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=27853113 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389692796: '1760573126_3893008_1389691968_4f3c7c5d7c49a5654553e9a5d056d8c7_rle_crop_3999639392_0.png', 1389692797: '1760573126_3893008_1389691968_4f3c7c5d7c49a5654553e9a5d056d8c7_rle_crop_3999639394_0.png', 1389692798: '1760573126_3893008_1389691968_4f3c7c5d7c49a5654553e9a5d056d8c7_rle_crop_3999639395_0.png', 1389692799: '1760573126_3893008_1389691964_97352d616e4a0fef4ed82b9a2f245901_rle_crop_3999639434_0.png', 1389692849: '1760573226_3898198_1389691884_a493def2f2241caa5f2b52ff2a32c305_rle_crop_3999639768_0.png', 1389692850: '1760573226_3898198_1389691725_94ac10875dfd825ac694f10ae8363bbd_rle_crop_3999639809_0.png', 1389693863: '1760573346_3903960_1389692787_524a03f5b7c1f4fd04311d8bc0281bcf_rle_crop_3999649659_0.png', 1389693864: '1760573346_3903960_1389692787_524a03f5b7c1f4fd04311d8bc0281bcf_rle_crop_3999649654_0.png', 1389693865: '1760573346_3903960_1389692785_c3dc0287b8e375d4aecd057044b6d54b_rle_crop_3999649669_0.png', 1389693866: '1760573346_3903960_1389692785_c3dc0287b8e375d4aecd057044b6d54b_rle_crop_3999649668_0.png', 1389693867: '1760573346_3903960_1389692783_022577f2b1f197be16f6eec1cb746b21_rle_crop_3999649680_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/24b6b98b913bb3280d6e0e1beaf3e30c_32773958.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/c5311851e99cd84eca57fc5b22d123c1_15859588.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/b49bab65eba6201cc418919b57ee2fda_42286138.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/3609f2897b9db8766cb6be25e1e59808_59203987.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/a61b8dbc3c0dbd2e01a1f1fe6d3aa2e2_46523902.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/8e89987c35b0b589a20e4e428979b608_80953517.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/fe4ca64e4b93219be2354e5676d6c134_71259074.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/01c70fbb37c30ed9c16286cd9b0c6a39_7789010.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/806402b03fe1466d113ef79cecb13e12_17429649.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/2fa9e6da6c459ca7d51d6bd68769583a_41653115.png change filename to text .imagette278531131760573470/ imagette278531131760573470/1760573126_3893008_1389691968_4f3c7c5d7c49a5654553e9a5d056d8c7_rle_crop_3999639392_0.png.png imagette278531131760573470/1760573126_3893008_1389691968_4f3c7c5d7c49a5654553e9a5d056d8c7_rle_crop_3999639395_0.png.png imagette278531131760573470/1760573126_3893008_1389691968_4f3c7c5d7c49a5654553e9a5d056d8c7_rle_crop_3999639394_0.png.png imagette278531131760573470/1760573346_3903960_1389692785_c3dc0287b8e375d4aecd057044b6d54b_rle_crop_3999649668_0.png.png imagette278531131760573470/1760573346_3903960_1389692787_524a03f5b7c1f4fd04311d8bc0281bcf_rle_crop_3999649659_0.png.png imagette278531131760573470/1760573226_3898198_1389691884_a493def2f2241caa5f2b52ff2a32c305_rle_crop_3999639768_0.png.png imagette278531131760573470/1760573346_3903960_1389692787_524a03f5b7c1f4fd04311d8bc0281bcf_rle_crop_3999649654_0.png.png imagette278531131760573470/1760573126_3893008_1389691964_97352d616e4a0fef4ed82b9a2f245901_rle_crop_3999639434_0.png.png imagette278531131760573470/1760573226_3898198_1389691725_94ac10875dfd825ac694f10ae8363bbd_rle_crop_3999639809_0.png.png imagette278531131760573470/1760573346_3903960_1389692785_c3dc0287b8e375d4aecd057044b6d54b_rle_crop_3999649669_0.png.png imagette278531131760573470/1760573346_3903960_1389692783_022577f2b1f197be16f6eec1cb746b21_rle_crop_3999649680_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/62a4023fa3bc816465706b2252acf46c_27690693.png imagette278531131760573470 27853116 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=27853116 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389692801: '1760573126_3893008_1389691965_1679477bc84af384aa26d6ab99babc44_rle_crop_3999639417_0.png', 1389692953: '1760573226_3898198_1389691884_a493def2f2241caa5f2b52ff2a32c305_rle_crop_3999639769_0.png', 1389692955: '1760573226_3898198_1389691882_3ab44b64a27fd53f95cd9ace8e9d4727_rle_crop_3999639780_0.png', 1389692957: '1760573226_3898198_1389691882_3ab44b64a27fd53f95cd9ace8e9d4727_rle_crop_3999639788_0.png', 1389693872: '1760573346_3903960_1389692785_c3dc0287b8e375d4aecd057044b6d54b_rle_crop_3999649667_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/2c9603d59b0a5a2f1dc8f87c816d8e41_22616618.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/b8c97754dd202b3cff5519d7e2bef010_91144286.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/2af1fddc85f17aaa302ce3bfca870685_35673652.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/55a2f418f93758003bd35cffb74f2a92_72566757.png change filename to text .imagette278531161760573471/ imagette278531161760573471/1760573126_3893008_1389691965_1679477bc84af384aa26d6ab99babc44_rle_crop_3999639417_0.png.png imagette278531161760573471/1760573346_3903960_1389692785_c3dc0287b8e375d4aecd057044b6d54b_rle_crop_3999649667_0.png.png imagette278531161760573471/1760573226_3898198_1389691882_3ab44b64a27fd53f95cd9ace8e9d4727_rle_crop_3999639788_0.png.png imagette278531161760573471/1760573226_3898198_1389691884_a493def2f2241caa5f2b52ff2a32c305_rle_crop_3999639769_0.png.png imagette278531161760573471/1760573226_3898198_1389691882_3ab44b64a27fd53f95cd9ace8e9d4727_rle_crop_3999639780_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/4f09fa6bb764dab1031aa8a87a67b12b_54722532.png imagette278531161760573471 27853120 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=27853120 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389691974: '1760572987_3886728_1389690886_c82c374a05ac0bcf59ae54321ddb6c72_rle_crop_3999632084_0.png', 1389692802: '1760573126_3893008_1389691968_4f3c7c5d7c49a5654553e9a5d056d8c7_rle_crop_3999639396_0.png', 1389693160: '1760573226_3898198_1389691970_1fb2d99d62d56befb45da2a500d69174_rle_crop_3999639757_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/834c228bb3cd8966745e1c9d915a336e_78384868.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/5ef5922cb957564716bb5b0e87186c1c_74286001.png change filename to text .imagette278531201760573471/ imagette278531201760573471/1760572987_3886728_1389690886_c82c374a05ac0bcf59ae54321ddb6c72_rle_crop_3999632084_0.png.png imagette278531201760573471/1760573126_3893008_1389691968_4f3c7c5d7c49a5654553e9a5d056d8c7_rle_crop_3999639396_0.png.png imagette278531201760573471/1760573226_3898198_1389691970_1fb2d99d62d56befb45da2a500d69174_rle_crop_3999639757_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/8ed6a0828668c68cdb39a9a03be27583_85149740.png imagette278531201760573471 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27853105 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27853159,27853160,27853161,27853162,27853163,27853164,27853165,27853166,27853167,27853168,27853169,27853170?tags=kraft,mal_croppe,Teint_Dans_La_Masse,flou,papier,Carton_gris,environnement,plastique,autre_refus,Carton_brun,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1389693927] : ('0.05932292497200395',) no score found for photo 1389693927 We are sending mail with results at report@fotonower.com args[1389693926] : ('0.05932292497200395',) no score found for photo 1389693926 We are sending mail with results at report@fotonower.com args[1389693925] : ('0.05932292497200395',) no score found for photo 1389693925 We are sending mail with results at report@fotonower.com args[1389693861] : ('0.05932292497200395',) no score found for photo 1389693861 We are sending mail with results at report@fotonower.com args[1389693859] : ('0.05932292497200395',) no score found for photo 1389693859 We are sending mail with results at report@fotonower.com args[1389693858] : ('0.05932292497200395',) no score found for photo 1389693858 We are sending mail with results at report@fotonower.com args[1389693857] : ('0.05932292497200395',) no score found for photo 1389693857 We are sending mail with results at report@fotonower.com args[1389693856] : ('0.05932292497200395',) no score found for photo 1389693856 We are sending mail with results at report@fotonower.com args[1389693827] : ('0.05932292497200395',) no score found for photo 1389693827 We are sending mail with results at report@fotonower.com args[1389693806] : ('0.05932292497200395',) no score found for photo 1389693806 We are sending mail with results at report@fotonower.com args[1389693619] : ('0.05932292497200395',) no score found for photo 1389693619 We are sending mail with results at report@fotonower.com args[1389693618] : ('0.05932292497200395',) no score found for photo 1389693618 We are sending mail with results at report@fotonower.com args[1389693617] : ('0.05932292497200395',) no score found for photo 1389693617 We are sending mail with results at report@fotonower.com refus_total : 0.05932292497200395 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=27853105 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_P27853105_16-10-2025_02_11_08.pdf results_Auto_P27853105_16-10-2025_02_11_08.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27853105_16-10-2025_02_11_08.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','27853105','results_Auto_P27853105_16-10-2025_02_11_08.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27853105_16-10-2025_02_11_08.pdf','pdf','','0.22','0.05932292497200395') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27853105]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617] map_info['map_portfolio_photo'] : {27853105: [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617, 1389693606, 1389693173, 1389692851, 1389692847, 1389692845, 1389692844, 1389692831, 1389692823, 1389692821, 1389692812, 1389692810, 1389692808, 1389692807, 1389692806, 1389692805, 1389692792, 1389692787, 1389692785, 1389692783, 1389692781, 1389692780, 1389692530, 1389692529, 1389692526, 1389692524, 1389692523, 1389691970, 1389691968, 1389691966, 1389691965, 1389691964, 1389691921, 1389691884, 1389691882, 1389691727, 1389691725, 1389690888, 1389690886, 1389690885, 1389690883]} final : False mtd_id 4302 list_pids : [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617] 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, '3949317') ('4302', '27853105', '1389693927', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693926', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693925', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693861', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693859', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693858', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693857', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693856', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693827', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693806', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693619', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693618', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693617', None, None, None, None, None, '3949317') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27853105', '1389693927', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693926', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693925', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693861', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693859', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693858', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693857', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693856', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693827', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693806', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693619', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693618', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693617', None, None, None, None, None, '3949317')] time used for this insertion : 0.04624581336975098 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.32082200050354 time spend to save output : 0.04653120040893555 total time spend for step 4 : 5.367353200912476 step5:split_time_score Thu Oct 16 02:11:13 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27853105'] 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 : [('27853105',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27853105) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1389693927: {'path': 'temp/1760573468_3002922_1389693927_4a9a35f17a8a455d7f07c709bc9d19c4.jpg', 'extension': 'jpg'}, 1389693861: {'path': 'temp/1760573468_3002922_1389693861_fc33639f6b0fa33bf192dbc0de6c89d6.jpg', 'extension': 'jpg'}, 1389693925: {'path': 'temp/1760573468_3002922_1389693925_e3859dbdc7d0e2fbde3f69f5ff03c472.jpg', 'extension': 'jpg'}, 1389693926: {'path': 'temp/1760573468_3002922_1389693926_c77f74d71d87a2e7aba2dc977e333fb8.jpg', 'extension': 'jpg'}, 1389693806: {'path': 'temp/1760573468_3002922_1389693806_deda09eb2714e5d883d592e6d280469b.jpg', 'extension': 'jpg'}, 1389693827: {'path': 'temp/1760573468_3002922_1389693827_e1b985ea609f70c67a423b944a8495f3.jpg', 'extension': 'jpg'}, 1389693856: {'path': 'temp/1760573468_3002922_1389693856_d6d7477cd8c82288e26df9a373b291d8.jpg', 'extension': 'jpg'}, 1389693857: {'path': 'temp/1760573468_3002922_1389693857_873ef318a1549341a9bc6305ee68a2ea.jpg', 'extension': 'jpg'}, 1389693858: {'path': 'temp/1760573468_3002922_1389693858_ad31864d954b1222dd5099db83bb3ab7.jpg', 'extension': 'jpg'}, 1389693859: {'path': 'temp/1760573468_3002922_1389693859_43e93b537f1a95aa3010da98d3c5dc7b.jpg', 'extension': 'jpg'}, 1389693617: {'path': 'temp/1760573468_3002922_1389693617_d0aefc12995f0de469d266933e328f09.jpg', 'extension': 'jpg'}, 1389693618: {'path': 'temp/1760573468_3002922_1389693618_b903584a29438cf0a0affea979b074a7.jpg', 'extension': 'jpg'}, 1389693619: {'path': 'temp/1760573468_3002922_1389693619_7d876567f4985a6cc530ca3ef3fb3be2.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 = 27853105; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27853105 group by h (('02', 53),) 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=27853105 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 (27853105) 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 (27853105) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16102025 27853105 Nombre de photos uploadées : 53 / 23040 (0%) 16102025 27853105 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 16102025 27853105 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1389690888, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/fe36190a550e14a782baac476822e18d.jpg', 'username': None, 'uploaded_at': 1760572867, 'text': 'image_16102025_02_00_15_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389690886, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/c82c374a05ac0bcf59ae54321ddb6c72.jpg', 'username': None, 'uploaded_at': 1760572867, 'text': 'image_16102025_02_00_25_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1389690885, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/a7287d9b6fccb65ff58d5a146d1d5bfd.jpg', 'username': None, 'uploaded_at': 1760572867, 'text': 'image_16102025_02_00_34_009126m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1389690883, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/16/a85c5fc37f592dd9c0190292a741ff7e.jpg', 'username': None, 'uploaded_at': 1760572867, 'text': 'image_16102025_02_00_44_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023148059844970703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27853105, '2025-10-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-10-16' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2458333,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.8476579189300537 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= 2458333 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466085, 'mtr_portfolio_id': 27849662, 'dashboard_result_id': 16440572, '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_P27849662_16-10-2025_00_20_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27849671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27849672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27849673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27849674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27849675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27849676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27849677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27849678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27849679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27849680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27849681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27849682, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466085, 'mtr_portfolio_id': 27850314, 'dashboard_result_id': 16440573, '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_P27850314_16-10-2025_00_34_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27850317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850328, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466085, 'mtr_portfolio_id': 27850796, 'dashboard_result_id': 16440574, '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_P27850796_16-10-2025_00_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27850832, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466085, 'mtr_portfolio_id': 27851368, 'dashboard_result_id': 16440575, '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_P27851368_16-10-2025_01_03_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27851374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27851375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27851376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27851377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27851378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27851379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27851380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27851381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27851382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27851383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27851384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27851385, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466085, 'mtr_portfolio_id': 27852357, 'dashboard_result_id': 16440576, '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_P27852357_16-10-2025_01_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852433, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466085, 'mtr_portfolio_id': 27852802, 'dashboard_result_id': 16440577, '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_P27852802_16-10-2025_02_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852816, 'pht': 3726}}"}, {'dashboat_entry_day': 2458333, 'dashboard_run_id': 2466085, 'mtr_portfolio_id': 27853105, 'dashboard_result_id': 16440578, '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_P27853105_16-10-2025_02_07_07.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27853111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27853112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27853113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27853114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27853115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27853116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27853117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27853118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27853119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27853120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27853121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27853122, '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 = 27849662 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': 3948919, 'mtr_portfolio_id': 27849662, 'created_at': datetime.datetime(2025, 10, 16, 0, 20, 29), 'result': '0.05962900866521991', 'result_long': None, 'result_double': None}] Qualite : 0.05962900866521991 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27849662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27849662_16-10-2025_00_20_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27849662 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_P27849662_16-10-2025_00_20_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27849671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27849672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27849673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27849674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27849675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27849676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27849677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27849678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27849679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27849680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27849681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27849682, 'pht': 3726}}" where mtr_portfolio_id = 27849662 and dashboard_run_id = 2466085 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`=27849662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440572, 0.05962900866521991, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27849662_16-10-2025_00_20_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27849671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27849672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27849673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27849674, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27849675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27849676, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27849677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27849678, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27849679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27849680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27849681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27849682, '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 = 27850314 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': 3948976, 'mtr_portfolio_id': 27850314, 'created_at': datetime.datetime(2025, 10, 16, 0, 34, 1), 'result': '0.051392392926112695', 'result_long': None, 'result_double': None}] Qualite : 0.051392392926112695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27850314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850314_16-10-2025_00_34_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27850314 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_P27850314_16-10-2025_00_34_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27850317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850328, 'pht': 3726}}" where mtr_portfolio_id = 27850314 and dashboard_run_id = 2466085 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`=27850314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440573, 0.051392392926112695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850314_16-10-2025_00_34_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27850317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850318, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850328, '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 = 27850796 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': 3949013, 'mtr_portfolio_id': 27850796, 'created_at': datetime.datetime(2025, 10, 16, 0, 49, 36), 'result': '0.054089594746434155', 'result_long': None, 'result_double': None}] Qualite : 0.054089594746434155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27850796 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850796_16-10-2025_00_49_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27850796 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_P27850796_16-10-2025_00_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27850832, 'pht': 3726}}" where mtr_portfolio_id = 27850796 and dashboard_run_id = 2466085 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`=27850796 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440574, 0.054089594746434155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27850796_16-10-2025_00_49_37.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27850821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27850822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27850823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27850824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27850825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27850826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27850827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27850829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27850830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27850831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27850832, '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 = 27851368 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': 3949070, 'mtr_portfolio_id': 27851368, 'created_at': datetime.datetime(2025, 10, 16, 1, 3, 5), 'result': '0.0461043911335413', 'result_long': None, 'result_double': None}] Qualite : 0.0461043911335413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27851368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27851368_16-10-2025_01_03_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27851368 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_P27851368_16-10-2025_01_03_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27851374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27851375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27851376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27851377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27851378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27851379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27851380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27851381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27851382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27851383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27851384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27851385, 'pht': 3726}}" where mtr_portfolio_id = 27851368 and dashboard_run_id = 2466085 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`=27851368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440575, 0.0461043911335413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27851368_16-10-2025_01_03_06.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27851374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27851375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27851376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27851377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27851378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27851379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27851380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27851381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27851382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27851383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27851384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27851385, '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 = 27852357 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': 3949216, 'mtr_portfolio_id': 27852357, 'created_at': datetime.datetime(2025, 10, 16, 1, 48, 59), 'result': '0.068391160702413', 'result_long': None, 'result_double': None}] Qualite : 0.068391160702413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27852357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852357_16-10-2025_01_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27852357 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_P27852357_16-10-2025_01_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852433, 'pht': 3726}}" where mtr_portfolio_id = 27852357 and dashboard_run_id = 2466087 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`=27852357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440576, 0.068391160702413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852357_16-10-2025_01_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852426, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852431, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852433, '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 = 27852802 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': 3949256, 'mtr_portfolio_id': 27852802, 'created_at': datetime.datetime(2025, 10, 16, 2, 3, 32), 'result': '0.08685790384533715', 'result_long': None, 'result_double': None}] Qualite : 0.08685790384533715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27852802 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852802_16-10-2025_02_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27852802 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_P27852802_16-10-2025_02_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852816, 'pht': 3726}}" where mtr_portfolio_id = 27852802 and dashboard_run_id = 2466087 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`=27852802 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440577, 0.08685790384533715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27852802_16-10-2025_02_03_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27852805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27852806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27852807, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27852808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27852809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27852810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27852811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27852812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27852813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27852814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27852815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27852816, '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 = 27853105 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': 3949317, 'mtr_portfolio_id': 27853105, 'created_at': datetime.datetime(2025, 10, 16, 2, 11, 7), 'result': '0.05932292497200395', 'result_long': None, 'result_double': None}] Qualite : 0.05932292497200395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27853105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27853105_16-10-2025_02_11_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27853105 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_P27853105_16-10-2025_02_11_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27853111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27853112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27853113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27853114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27853115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27853116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27853117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27853118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27853119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27853120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27853121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27853122, 'pht': 3726}}" where mtr_portfolio_id = 27853105 and dashboard_run_id = 2466087 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`=27853105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16440578, 0.05932292497200395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27853105_16-10-2025_02_11_08.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27853111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27853112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27853113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27853114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27853115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27853116, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27853117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27853118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27853119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27853120, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27853121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27853122, '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 (27849662,27850314,27850796,27851368,27852357,27852802,27853105) result : ((1389674570,), (1389674571,), (1389674572,), (1389674582,), (1389674583,), (1389674584,), (1389674782,), (1389674784,), (1389674786,), (1389675930,), (1389675932,), (1389675935,), (1389675940,), (1389675947,), (1389675950,), (1389676259,), (1389676298,), (1389676300,), (1389676304,), (1389676319,), (1389676321,), (1389676322,), (1389676323,), (1389676327,), (1389676343,), (1389676344,), (1389676345,), (1389676347,), (1389676349,), (1389676351,), (1389676377,), (1389676378,), (1389676389,), (1389676390,), (1389676391,), (1389676457,), (1389676642,), (1389676644,), (1389676646,), (1389676648,), (1389676740,), (1389676781,), (1389676783,), (1389676786,), (1389676790,), (1389676792,), (1389676832,), (1389676833,), (1389676834,), (1389676842,), (1389676843,), (1389676844,), (1389676846,), (1389677213,), (1389677215,), (1389677216,), (1389677217,), (1389677219,), (1389677251,), (1389677252,), (1389677253,), (1389677255,), (1389677260,), (1389677274,), (1389677276,), (1389678296,), (1389678607,), (1389678608,), (1389678612,), (1389678655,), (1389678872,), (1389678873,), (1389678874,), (1389678915,), (1389678916,), (1389678917,), (1389678926,), (1389678927,), (1389678928,), (1389678930,), (1389678934,), (1389678948,), (1389678949,), (1389678950,), (1389678953,), (1389678983,), (1389678984,), (1389678985,), (1389678987,), (1389678992,), (1389679001,), (1389679022,), (1389679025,), (1389679027,), (1389679029,), (1389679031,), (1389679033,), (1389679035,), (1389679037,), (1389679044,), (1389679054,), (1389679056,), (1389679077,), (1389679079,), (1389679080,), (1389679081,), (1389679082,), (1389679083,), (1389679084,), (1389679088,), (1389679090,), (1389679114,), (1389679159,), (1389679197,), (1389679245,), (1389679357,), (1389679400,), (1389679443,), (1389679487,), (1389679534,), (1389679579,), (1389679589,), (1389679599,), (1389679879,), (1389679882,), (1389679885,), (1389679894,), (1389679898,), (1389679903,), (1389679906,), (1389679909,), (1389679911,), (1389679871,), (1389679873,), (1389679876,), (1389679887,), (1389679888,), (1389679891,), (1389679892,), (1389679912,), (1389679915,), (1389680202,), (1389680242,), (1389680281,), (1389680323,), (1389680368,), (1389680408,), (1389680485,), (1389680530,), (1389680569,), (1389680578,), (1389680581,), (1389680614,), (1389680658,), (1389680660,), (1389681111,), (1389681119,), (1389681121,), (1389681123,), (1389681308,), (1389681351,), (1389681384,), (1389681493,), (1389681504,), (1389681515,), (1389681517,), (1389681538,), (1389681540,), (1389681542,), (1389681954,), (1389681955,), (1389681965,), (1389681966,), (1389681968,), (1389681969,), (1389682362,), (1389682363,), (1389682856,), (1389682857,), (1389682858,), (1389682859,), (1389683013,), (1389683014,), (1389683015,), (1389683017,), (1389683020,), (1389683027,), (1389683030,), (1389683032,), (1389683035,), (1389683037,), (1389683057,), (1389683820,), (1389683866,), (1389683891,), (1389683896,), (1389683897,), (1389683898,), (1389683787,), (1389683817,), (1389683901,), (1389683904,), (1389683905,), (1389683907,), (1389683909,), (1389683910,), (1389683922,), (1389683923,), (1389683924,), (1389683925,), (1389683941,), (1389683942,), (1389683943,), (1389683944,), (1389683989,), (1389684397,), (1389684440,), (1389684485,), (1389684530,), (1389684561,), (1389684688,), (1389684731,), (1389684749,), (1389684757,), (1389684767,), (1389684881,), (1389684882,), (1389684883,), (1389684885,), (1389684888,), (1389684893,), (1389684894,), (1389684895,), (1389684897,), (1389684908,), (1389685388,), (1389685438,), (1389685481,), (1389685524,), (1389686013,), (1389686015,), (1389686017,), (1389686019,), (1389686215,), (1389686221,), (1389686248,), (1389686253,), (1389686255,), (1389686256,), (1389686259,), (1389686260,), (1389686262,), (1389686265,), (1389686268,), (1389686270,), (1389686275,), (1389686285,), (1389686286,), (1389686288,), (1389686290,), (1389686293,), (1389687129,), (1389687131,), (1389687361,), (1389689277,), (1389689291,), (1389689292,), (1389689293,), (1389689339,), (1389689340,), (1389689343,), (1389689402,), (1389689403,), (1389689404,), (1389689406,), (1389689407,), (1389689409,), (1389689414,), (1389689416,), (1389689418,), (1389689422,), (1389689425,), (1389689427,), (1389689433,), (1389689435,), (1389689437,), (1389689439,), (1389689440,), (1389689442,), (1389689452,), (1389689455,), (1389689456,), (1389689457,), (1389689459,), (1389689465,), (1389689475,), (1389689482,), (1389689546,), (1389689551,), (1389689575,), (1389689577,), (1389689579,), (1389689581,), (1389689600,), (1389689602,), (1389689603,), (1389689605,), (1389689607,), (1389689612,), (1389689613,), (1389689614,), (1389689615,), (1389689617,), (1389689622,), (1389689629,), (1389689630,), (1389689631,), (1389689633,), (1389689636,), (1389689638,), (1389689654,), (1389689656,), (1389689657,), (1389689679,), (1389689680,), (1389689681,), (1389689682,), (1389689690,), (1389689691,), (1389689692,), (1389689693,), (1389689697,), (1389689698,), (1389689745,), (1389689747,), (1389689749,), (1389689753,), (1389689754,), (1389689755,), (1389689756,), (1389689741,), (1389689742,), (1389689743,), (1389689758,), (1389689759,), (1389689761,), (1389689773,), (1389689777,), (1389689785,), (1389689786,), (1389689787,), (1389689788,), (1389689790,), (1389689792,), (1389689812,), (1389689813,), (1389689814,), (1389689816,), (1389689844,), (1389689845,), (1389689846,), (1389689848,), (1389689851,), (1389689853,), (1389689859,), (1389689861,), (1389689864,), (1389689867,), (1389689895,), (1389689897,), (1389689900,), (1389689903,), (1389689909,), (1389689910,), (1389689911,), (1389689913,), (1389689916,), (1389689945,), (1389689946,), (1389689947,), (1389689949,), (1389689966,), (1389689969,), (1389689971,), (1389689974,), (1389689977,), (1389689985,), (1389689986,), (1389689987,), (1389689989,), (1389689991,), (1389689993,), (1389690004,), (1389690017,), (1389690019,), (1389690020,), (1389690022,), (1389690034,), (1389690039,), (1389690041,), (1389690055,), (1389690057,), (1389690849,), (1389690855,), (1389690857,), (1389690862,), (1389690864,), (1389690865,), (1389690891,), (1389690883,), (1389690885,), (1389690886,), (1389690888,), (1389691725,), (1389691727,), (1389691882,), (1389691884,), (1389691921,), (1389691964,), (1389691965,), (1389691966,), (1389691968,), (1389691970,), (1389692523,), (1389692524,), (1389692526,), (1389692529,), (1389692530,), (1389692780,), (1389692781,), (1389692783,), (1389692785,), (1389692787,), (1389692792,), (1389692805,), (1389692806,), (1389692807,), (1389692808,), (1389692810,), (1389692812,), (1389692821,), (1389692823,), (1389692831,), (1389692844,), (1389692845,), (1389692847,), (1389692851,), (1389693173,), (1389693606,), (1389693617,), (1389693618,), (1389693619,), (1389693806,), (1389693827,), (1389693856,), (1389693857,), (1389693858,), (1389693859,), (1389693861,), (1389693925,), (1389693926,), (1389693927,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16102025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27853105]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617] map_info['map_portfolio_photo'] : {27853105: [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617, 1389693606, 1389693173, 1389692851, 1389692847, 1389692845, 1389692844, 1389692831, 1389692823, 1389692821, 1389692812, 1389692810, 1389692808, 1389692807, 1389692806, 1389692805, 1389692792, 1389692787, 1389692785, 1389692783, 1389692781, 1389692780, 1389692530, 1389692529, 1389692526, 1389692524, 1389692523, 1389691970, 1389691968, 1389691966, 1389691965, 1389691964, 1389691921, 1389691884, 1389691882, 1389691727, 1389691725, 1389690888, 1389690886, 1389690885, 1389690883]} final : True mtd_id 4302 list_pids : [1389693927, 1389693926, 1389693925, 1389693861, 1389693859, 1389693858, 1389693857, 1389693856, 1389693827, 1389693806, 1389693619, 1389693618, 1389693617] Looping around the photos to save general results len do output : 1 /27853105Didn'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, '3949317') ('4302', '27853105', '1389693927', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693926', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693925', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693861', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693859', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693858', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693857', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693856', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693827', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693806', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693619', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693618', None, None, None, None, None, '3949317') ('4302', None, None, None, None, None, None, None, '3949317') ('4302', '27853105', '1389693617', None, None, None, None, None, '3949317') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27853105', 'None', None, None, None, None, '3949317'), ('4302', '27853105', '1389693927', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693926', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693925', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693861', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693859', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693858', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693857', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693856', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693827', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693806', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693619', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693618', None, None, None, None, None, '3949317'), ('4302', '27853105', '1389693617', None, None, None, None, None, '3949317')] time used for this insertion : 0.04954195022583008 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.138038396835327 time spend to save output : 0.049820661544799805 total time spend for step 5 : 3.187859058380127 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 (3949317) 2.29user 2.77system 0:20.83elapsed 24%CPU (0avgtext+0avgdata 162388maxresident)k 8inputs+13120outputs (15major+71383minor)pagefaults 0swaps