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 : 3039666 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 (3306749) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3306749) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065654 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3306749'] with mtr_portfolio_ids : ['25065654'] and first list_photo_ids : [] new path : /proc/3039666/ Name: python3 Umask: 0002 State: R (running) Tgid: 3039666 Ngid: 0 Pid: 3039666 PPid: 3039665 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3039666 NSpid: 3039666 NSpgid: 3037191 NSsid: 3037191 VmPeak: 1106880 kB VmSize: 1106880 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98316 kB VmRSS: 98316 kB RssAnon: 59788 kB RssFile: 38528 kB RssShmem: 0 kB VmData: 865632 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 47 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3039666', 'Ngid': '0', 'Pid': '3039666', 'PPid': '3039665', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3039666', 'NSpid': '3039666', 'NSpgid': '3037191', 'NSsid': '3037191', 'VmPeak': '1106880 kB', 'VmSize': '1106880 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98316 kB', 'VmRSS': '98316 kB', 'RssAnon': '59788 kB', 'RssFile': '38528 kB', 'RssShmem': '0 kB', 'VmData': '865632 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '47', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '3039666', '1106880', '0', '1106880', '865632', '98316', b'', 'marlene', '3306749') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25065654) 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 (3306749 ) ) 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 (25065654) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1372608666, 'portfolio_id': 25065654}, {'photo_id': 1372608664, 'portfolio_id': 25065654}, {'photo_id': 1372608659, 'portfolio_id': 25065654}, {'photo_id': 1372608653, 'portfolio_id': 25065654}, {'photo_id': 1372608627, 'portfolio_id': 25065654}, {'photo_id': 1372608598, 'portfolio_id': 25065654}, {'photo_id': 1372608314, 'portfolio_id': 25065654}, {'photo_id': 1372608269, 'portfolio_id': 25065654}, {'photo_id': 1372608245, 'portfolio_id': 25065654}, {'photo_id': 1372608196, 'portfolio_id': 25065654}, {'photo_id': 1372608157, 'portfolio_id': 25065654}, {'photo_id': 1372608110, 'portfolio_id': 25065654}, {'photo_id': 1372607561, 'portfolio_id': 25065654}, {'photo_id': 1372607503, 'portfolio_id': 25065654}, {'photo_id': 1372607452, 'portfolio_id': 25065654}, {'photo_id': 1372607401, 'portfolio_id': 25065654}, {'photo_id': 1372607356, 'portfolio_id': 25065654}, {'photo_id': 1372607313, 'portfolio_id': 25065654}, {'photo_id': 1372606966, 'portfolio_id': 25065654}] map_portfolio_id_photo_id: {25065654: [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966]} ##### 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.014656305313110352 #### 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 Fri Jul 18 08:04:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25065654) 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 : 25065654 get user id for portfolio 25065654 get sub ptf for main ptf 25065654, type 3726 and hashtags ['plastique', 'Carton_gris', 'autre_refus', 'Teint_Dans_La_Masse', 'environnement', 'flou', 'mal_croppe', 'kraft', 'metal', 'cartonnette', 'Carton_brun', 'papier'] 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`=25065654 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','papier')) 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`=25065654 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[25065654, 25065658, 3726, 0.5, 492725882, 979], [25065654, 25065659, 3726, 0.5, 2107753020, 979], [25065654, 25065660, 3726, 0.5, 2107752406, 979], [25065654, 25065661, 3726, 0.5, 2107752385, 979], [25065654, 25065662, 3726, 0.5, 493012381, 979], [25065654, 25065663, 3726, 0.5, 492777938, 979], [25065654, 25065664, 3726, 0.5, 2107755527, 979], [25065654, 25065665, 3726, 0.5, 493202403, 979], [25065654, 25065666, 3726, 0.5, 492628673, 979], [25065654, 25065667, 3726, 0.5, 702398920, 979], [25065654, 25065668, 3726, 0.5, 2107753024, 979], [25065654, 25065669, 3726, 0.5, 492668766, 979]] 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`=25065654 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','papier')) 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`=25065654 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 25065654, 'sub_port_id': 25065658, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896482, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}, 'Carton_gris': {'main_port_id': 25065654, 'sub_port_id': 25065659, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896483, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}, 'autre_refus': {'main_port_id': 25065654, 'sub_port_id': 25065660, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896484, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 25065654, 'sub_port_id': 25065661, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896485, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}, 'environnement': {'main_port_id': 25065654, 'sub_port_id': 25065662, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896486, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}, 'flou': {'main_port_id': 25065654, 'sub_port_id': 25065663, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896487, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}, 'mal_croppe': {'main_port_id': 25065654, 'sub_port_id': 25065664, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896488, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}, 'kraft': {'main_port_id': 25065654, 'sub_port_id': 25065665, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896489, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}, 'metal': {'main_port_id': 25065654, 'sub_port_id': 25065666, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896490, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}, 'cartonnette': {'main_port_id': 25065654, 'sub_port_id': 25065667, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896491, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}, 'Carton_brun': {'main_port_id': 25065654, 'sub_port_id': 25065668, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896492, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}, 'papier': {'main_port_id': 25065654, 'sub_port_id': 25065669, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896493, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25065658 , 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=25065654 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 (25065658) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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 25065659 , 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=25065654 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 (25065659) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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 25065660 , 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=25065654 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 (25065660) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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 25065661 , 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=25065654 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 (25065661) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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 25065662 , 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=25065654 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 (25065662) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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 25065663 , 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=25065654 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 (25065663) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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 25065664 , 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=25065654 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 (25065664) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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 25065665 , 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=25065654 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 (25065665) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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 25065666 , 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=25065654 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 (25065666) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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 25065667 , 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=25065654 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 (25065667) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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 25065668 , 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=25065654 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 (25065668) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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 25065669 , 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=25065654 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 (25065669) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25065654) result : ((1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) 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`=25065654 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','papier')) 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`=25065654 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18072025_08_00_54_010140_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[25065654, 25065670, 4417, 0.5, 492725882, 979], [25065654, 25065671, 4417, 0.5, 2107753020, 979], [25065654, 25065672, 4417, 0.5, 2107752406, 979], [25065654, 25065673, 4417, 0.5, 2107752385, 979], [25065654, 25065674, 4417, 0.5, 493012381, 979], [25065654, 25065675, 4417, 0.5, 492777938, 979], [25065654, 25065676, 4417, 0.5, 2107755527, 979], [25065654, 25065677, 4417, 0.5, 493202403, 979], [25065654, 25065678, 4417, 0.5, 492628673, 979], [25065654, 25065679, 4417, 0.5, 702398920, 979], [25065654, 25065680, 4417, 0.5, 2107753024, 979], [25065654, 25065681, 4417, 0.5, 492668766, 979]] 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`=25065654 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','papier')) 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`=25065654 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','Teint_Dans_La_Masse','environnement','flou','mal_croppe','kraft','metal','cartonnette','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 25065654, 'sub_port_id': 25065670, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896494, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}, 'Carton_gris': {'main_port_id': 25065654, 'sub_port_id': 25065671, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896495, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}, 'autre_refus': {'main_port_id': 25065654, 'sub_port_id': 25065672, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896496, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 25065654, 'sub_port_id': 25065673, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896497, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}, 'environnement': {'main_port_id': 25065654, 'sub_port_id': 25065674, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896498, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}, 'flou': {'main_port_id': 25065654, 'sub_port_id': 25065675, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896499, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}, 'mal_croppe': {'main_port_id': 25065654, 'sub_port_id': 25065676, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896500, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}, 'kraft': {'main_port_id': 25065654, 'sub_port_id': 25065677, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896501, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}, 'metal': {'main_port_id': 25065654, 'sub_port_id': 25065678, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896502, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}, 'cartonnette': {'main_port_id': 25065654, 'sub_port_id': 25065679, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896503, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}, 'Carton_brun': {'main_port_id': 25065654, 'sub_port_id': 25065680, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896504, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}, 'papier': {'main_port_id': 25065654, 'sub_port_id': 25065681, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16896505, 'last_updated_at': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_desc': datetime.datetime(2025, 7, 18, 8, 5), 'last_updated_at_asc': datetime.datetime(2025, 7, 18, 8, 5)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065670,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065658 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065671,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065659 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065672,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065660 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065673,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065661 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065674,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065662 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065663 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25065681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25065669 lien utilise dans velours : https://www.fotonower.com/velours/25065670,25065671,25065672,25065673,25065674,25065675,25065676,25065677,25065678,25065679,25065680,25065681?tags=plastique,Carton_gris,autre_refus,Teint_Dans_La_Masse,environnement,flou,mal_croppe,kraft,metal,cartonnette,Carton_brun,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25065654]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966] map_info['map_portfolio_photo'] : {25065654: [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966]} final : False mtd_id 4302 list_pids : [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966] Looping around the photos to save general results len do output : 1 /25065654. 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, '3306749') ('4302', '25065654', '1372608666', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608664', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608659', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608653', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608627', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608598', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608314', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608269', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608245', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608196', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608157', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608110', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607561', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607503', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607452', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607401', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607356', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607313', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372606966', None, None, None, None, None, '3306749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '25065654', "{'plastique': 25065658, 'Carton_gris': 25065659, 'autre_refus': 25065660, 'Teint_Dans_La_Masse': 25065661, 'environnement': 25065662, 'flou': 25065663, 'mal_croppe': 25065664, 'kraft': 25065665, 'metal': 25065666, 'cartonnette': 25065667, 'Carton_brun': 25065668, 'papier': 25065669}", None, None, None, None, '3306749'), ('4302', '25065654', '1372608666', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608664', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608659', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608653', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608627', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608598', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608314', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608269', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608245', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608196', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608157', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608110', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607561', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607503', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607452', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607401', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607356', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607313', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372606966', None, None, None, None, None, '3306749')] time used for this insertion : 0.07076692581176758 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0065834522247314 time spend to save output : 0.0711054801940918 total time spend for step 1 : 2.0776889324188232 step2:final Fri Jul 18 08:05: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 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 (25065654) 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 25065654 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1372606966,1372607561,1372607503,1372607452,1372607401,1372607356,1372607313,1372608314,1372608269,1372608245,1372608196,1372608157,1372608110,1372608666,1372608664,1372608659,1372608653,1372608627,1372608598); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25065654]) Inside saveOutput : final : False verbose : True original output for save of step final : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} new output for save of step final : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966] map_info['map_portfolio_photo'] : {25065654: [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966]} final : False mtd_id 4302 list_pids : [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966] Looping around the photos to save general results len do output : 19 /1372608666.Didn't retrieve data . /1372608664.Didn't retrieve data . /1372608659.Didn't retrieve data . /1372608653.Didn't retrieve data . /1372608627.Didn't retrieve data . /1372608598.Didn't retrieve data . /1372608314.Didn't retrieve data . /1372608269.Didn't retrieve data . /1372608245.Didn't retrieve data . /1372608196.Didn't retrieve data . /1372608157.Didn't retrieve data . /1372608110.Didn't retrieve data . /1372607561.Didn't retrieve data . /1372607503.Didn't retrieve data . /1372607452.Didn't retrieve data . /1372607401.Didn't retrieve data . /1372607356.Didn't retrieve data . /1372607313.Didn't retrieve data . /1372606966.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, '3306749') ('4302', '25065654', '1372608666', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608664', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608659', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608653', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608627', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608598', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608314', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608269', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608245', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608196', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608157', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608110', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607561', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607503', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607452', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607401', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607356', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607313', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372606966', None, None, None, None, None, '3306749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 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', '25065654', '1372608666', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372608664', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372608659', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372608653', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372608627', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372608598', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372608314', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372608269', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372608245', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372608196', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372608157', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372608110', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372607561', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372607503', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372607452', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372607401', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372607356', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372607313', '0.0', None, None, None, None, '3306749'), ('4302', '25065654', '1372606966', '0.0', None, None, None, None, '3306749')] time used for this insertion : 0.08677506446838379 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.013458728790283203 time spend to save output : 0.08760237693786621 total time spend for step 2 : 0.10106110572814941 step3:velours_tree Fri Jul 18 08:05: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 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 : {25065654: [{'plastique': 25065658, 'Carton_gris': 25065659, 'autre_refus': 25065660, 'Teint_Dans_La_Masse': 25065661, 'environnement': 25065662, 'flou': 25065663, 'mal_croppe': 25065664, 'kraft': 25065665, 'metal': 25065666, 'cartonnette': 25065667, 'Carton_brun': 25065668, 'papier': 25065669}]} input_args_next_step : {25065654: ()} output_args : {25065654: [{'plastique': 25065658, 'Carton_gris': 25065659, 'autre_refus': 25065660, 'Teint_Dans_La_Masse': 25065661, 'environnement': 25065662, 'flou': 25065663, 'mal_croppe': 25065664, 'kraft': 25065665, 'metal': 25065666, 'cartonnette': 25065667, 'Carton_brun': 25065668, 'papier': 25065669}]} args : 25065654 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 : ({'plastique': 25065658, 'Carton_gris': 25065659, 'autre_refus': 25065660, 'Teint_Dans_La_Masse': 25065661, 'environnement': 25065662, 'flou': 25065663, 'mal_croppe': 25065664, 'kraft': 25065665, 'metal': 25065666, 'cartonnette': 25065667, 'Carton_brun': 25065668, 'papier': 25065669},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25065654) 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([25065654]) 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.30408787727355957 time spend to save output : 5.3882598876953125e-05 total time spend for step 3 : 0.3041417598724365 step4:send_mail_cod Fri Jul 18 08:05: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 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 : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} input_args_next_step : {1372608666: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608666 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608664 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608659 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608653 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608627 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608598 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608314 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608269 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608245 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608196 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608157 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372608110 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372607561 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372607503 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372607452 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372607401 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372607356 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372607313 depend.output_id : 0 input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ()} output_args : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',)} args : 1372606966 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 : {25065654: [{'plastique': 25065658, 'Carton_gris': 25065659, 'autre_refus': 25065660, 'Teint_Dans_La_Masse': 25065661, 'environnement': 25065662, 'flou': 25065663, 'mal_croppe': 25065664, 'kraft': 25065665, 'metal': 25065666, 'cartonnette': 25065667, 'Carton_brun': 25065668, 'papier': 25065669}]} input_args_next_step : {1372608666: ('0.0',), 1372608664: ('0.0',), 1372608659: ('0.0',), 1372608653: ('0.0',), 1372608627: ('0.0',), 1372608598: ('0.0',), 1372608314: ('0.0',), 1372608269: ('0.0',), 1372608245: ('0.0',), 1372608196: ('0.0',), 1372608157: ('0.0',), 1372608110: ('0.0',), 1372607561: ('0.0',), 1372607503: ('0.0',), 1372607452: ('0.0',), 1372607401: ('0.0',), 1372607356: ('0.0',), 1372607313: ('0.0',), 1372606966: ('0.0',), 25065654: ()} output_args : {25065654: [{'plastique': 25065658, 'Carton_gris': 25065659, 'autre_refus': 25065660, 'Teint_Dans_La_Masse': 25065661, 'environnement': 25065662, 'flou': 25065663, 'mal_croppe': 25065664, 'kraft': 25065665, 'metal': 25065666, 'cartonnette': 25065667, 'Carton_brun': 25065668, 'papier': 25065669}]} args : 25065654 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 :20, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25065654) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1372608666,1372608664,1372608659,1372608653,1372608627,1372608598,1372608314,1372608269,1372608245,1372608196,1372608157,1372608110,1372607561,1372607503,1372607452,1372607401,1372607356,1372607313,1372606966) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1372606966 begin to download photo : 1372607452 begin to download photo : 1372608157 begin to download photo : 1372608314 begin to download photo : 1372608659 download finish for photo 1372606966 begin to download photo : 1372607313 download finish for photo 1372608157 begin to download photo : 1372608196 download finish for photo 1372608659 begin to download photo : 1372608664 download finish for photo 1372608314 begin to download photo : 1372608598 download finish for photo 1372607452 begin to download photo : 1372607503 download finish for photo 1372608196 begin to download photo : 1372608245 download finish for photo 1372607313 begin to download photo : 1372607356 download finish for photo 1372608598 begin to download photo : 1372608627 download finish for photo 1372608664 begin to download photo : 1372608666 download finish for photo 1372607503 begin to download photo : 1372607561 download finish for photo 1372608245 begin to download photo : 1372608269 download finish for photo 1372608627 begin to download photo : 1372608653 download finish for photo 1372607356 begin to download photo : 1372607401 download finish for photo 1372608666 download finish for photo 1372607561 begin to download photo : 1372608110 download finish for photo 1372608269 download finish for photo 1372607401 download finish for photo 1372608653 download finish for photo 1372608110 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette250656581752818701/ imagette250656601752818701/ imagette250656631752818701/ imagette250656641752818701/ imagette250656651752818701/ imagette250656661752818701/ imagette250656671752818701/ imagette250656591752818701/ imagette250656611752818701/ imagette250656681752818701/ length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P25065654_18-07-2025_08_05_01.pdf 25065658 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065658 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250656581752818701 25065660 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065660 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250656601752818701 25065663 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065663 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250656631752818701 25065664 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065664 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250656641752818701 25065665 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065665 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250656651752818701 25065666 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250656661752818701 25065667 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250656671752818701 25065659 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065659 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250656591752818701 25065661 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065661 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250656611752818701 25065668 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250656681752818701 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25065654 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25065670,25065671,25065672,25065673,25065674,25065675,25065676,25065677,25065678,25065679,25065680,25065681?tags=plastique,Carton_gris,autre_refus,Teint_Dans_La_Masse,environnement,flou,mal_croppe,kraft,metal,cartonnette,Carton_brun,papier your option no_mail is active, we will not send the real mail to your client args[1372608666] : ('0.0',) no score found for photo 1372608666 We are sending mail with results at report@fotonower.com args[1372608664] : ('0.0',) no score found for photo 1372608664 We are sending mail with results at report@fotonower.com args[1372608659] : ('0.0',) no score found for photo 1372608659 We are sending mail with results at report@fotonower.com args[1372608653] : ('0.0',) no score found for photo 1372608653 We are sending mail with results at report@fotonower.com args[1372608627] : ('0.0',) no score found for photo 1372608627 We are sending mail with results at report@fotonower.com args[1372608598] : ('0.0',) no score found for photo 1372608598 We are sending mail with results at report@fotonower.com args[1372608314] : ('0.0',) no score found for photo 1372608314 We are sending mail with results at report@fotonower.com args[1372608269] : ('0.0',) no score found for photo 1372608269 We are sending mail with results at report@fotonower.com args[1372608245] : ('0.0',) no score found for photo 1372608245 We are sending mail with results at report@fotonower.com args[1372608196] : ('0.0',) no score found for photo 1372608196 We are sending mail with results at report@fotonower.com args[1372608157] : ('0.0',) no score found for photo 1372608157 We are sending mail with results at report@fotonower.com args[1372608110] : ('0.0',) no score found for photo 1372608110 We are sending mail with results at report@fotonower.com args[1372607561] : ('0.0',) no score found for photo 1372607561 We are sending mail with results at report@fotonower.com args[1372607503] : ('0.0',) no score found for photo 1372607503 We are sending mail with results at report@fotonower.com args[1372607452] : ('0.0',) no score found for photo 1372607452 We are sending mail with results at report@fotonower.com args[1372607401] : ('0.0',) no score found for photo 1372607401 We are sending mail with results at report@fotonower.com args[1372607356] : ('0.0',) no score found for photo 1372607356 We are sending mail with results at report@fotonower.com args[1372607313] : ('0.0',) no score found for photo 1372607313 We are sending mail with results at report@fotonower.com args[1372606966] : ('0.0',) no score found for photo 1372606966 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065654 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_P25065654_18-07-2025_08_05_01.pdf results_Auto_P25065654_18-07-2025_08_05_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065654_18-07-2025_08_05_01.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','25065654','results_Auto_P25065654_18-07-2025_08_05_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065654_18-07-2025_08_05_01.pdf','pdf','','0.14','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25065654]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966] map_info['map_portfolio_photo'] : {25065654: [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966]} final : False mtd_id 4302 list_pids : [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966] 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, '3306749') ('4302', '25065654', '1372608666', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608664', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608659', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608653', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608627', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608598', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608314', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608269', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608245', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608196', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608157', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608110', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607561', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607503', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607452', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607401', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607356', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607313', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372606966', None, None, None, None, None, '3306749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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', '25065654', '1372608666', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608664', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608659', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608653', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608627', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608598', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608314', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608269', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608245', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608196', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608157', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608110', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607561', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607503', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607452', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607401', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607356', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607313', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372606966', None, None, None, None, None, '3306749')] time used for this insertion : 0.08348679542541504 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9347963333129883 time spend to save output : 0.08381795883178711 total time spend for step 4 : 2.0186142921447754 step5:split_time_score Fri Jul 18 08:05:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25065654'] 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 : [('25065654',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25065654) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1372608659: {'path': 'temp/1752818700_3039666_1372608659_b895a4ff1ed96d22d8057511d8b053bf.jpg', 'extension': 'jpg'}, 1372608664: {'path': 'temp/1752818700_3039666_1372608664_3a41fbc3450bb73d103cf4d3a25a2760.jpg', 'extension': 'jpg'}, 1372608666: {'path': 'temp/1752818700_3039666_1372608666_517ea477149c6d67203fae120bedf322.jpg', 'extension': 'jpg'}, 1372608157: {'path': 'temp/1752818700_3039666_1372608157_1316ac336683a1127d20c0f4a86e2fce.jpg', 'extension': 'jpg'}, 1372608196: {'path': 'temp/1752818700_3039666_1372608196_f80b098f81058efa33b6c70db7d719d2.jpg', 'extension': 'jpg'}, 1372608245: {'path': 'temp/1752818700_3039666_1372608245_fd416477e82a197227eed8dec6384716.jpg', 'extension': 'jpg'}, 1372608269: {'path': 'temp/1752818700_3039666_1372608269_4309e5059743e9b25a69bb2ed72d7e13.jpg', 'extension': 'jpg'}, 1372606966: {'path': 'temp/1752818700_3039666_1372606966_4b82e9fb13d52df214671854a2fb635a.jpg', 'extension': 'jpg'}, 1372607313: {'path': 'temp/1752818700_3039666_1372607313_df46a02624cad0e49156b4992c8b7bf1.jpg', 'extension': 'jpg'}, 1372607356: {'path': 'temp/1752818700_3039666_1372607356_3f3aed0dcd2c09b5754f1859b9375559.jpg', 'extension': 'jpg'}, 1372607401: {'path': 'temp/1752818700_3039666_1372607401_f08de85db5f7a1a452a9f830ef5ae580.jpg', 'extension': 'jpg'}, 1372608314: {'path': 'temp/1752818700_3039666_1372608314_d730f22e6bedba131ca456398bb03c2d.jpg', 'extension': 'jpg'}, 1372608598: {'path': 'temp/1752818700_3039666_1372608598_18938a9aa8d436433ea1ebd13b4e6d06.jpg', 'extension': 'jpg'}, 1372608627: {'path': 'temp/1752818700_3039666_1372608627_b23184a66d3b31804ce22409e28f28b1.jpg', 'extension': 'jpg'}, 1372608653: {'path': 'temp/1752818700_3039666_1372608653_e24f1b5a8a553dfb16f6f460f1ac7234.jpg', 'extension': 'jpg'}, 1372607452: {'path': 'temp/1752818700_3039666_1372607452_5432cbd1cf61faab6e002a836b30af05.jpg', 'extension': 'jpg'}, 1372607503: {'path': 'temp/1752818700_3039666_1372607503_101e7b14d44e8384ea553b0dda778cc3.jpg', 'extension': 'jpg'}, 1372607561: {'path': 'temp/1752818700_3039666_1372607561_d51488c21d651755170591b94810df81.jpg', 'extension': 'jpg'}, 1372608110: {'path': 'temp/1752818700_3039666_1372608110_76267476bbf27eb333fc5eefd466db7c.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 = 25065654; (('arc_en_ciel_jrm_live',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25065654 group by h (('08', 19),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25065654 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 (25065654) 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 (25065654) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18072025 25065654 Nombre de photos uploadées : 19 / 23040 (0%) 18072025 25065654 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 18072025 25065654 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1372606966, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/4b82e9fb13d52df214671854a2fb635a.jpg', 'username': None, 'uploaded_at': 1752818467, 'text': 'image_18072025_08_00_54_10140.jpg'}, {'photo_id': 1372607561, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/d51488c21d651755170591b94810df81.jpg', 'username': None, 'uploaded_at': 1752818523, 'text': 'image_18072025_08_01_04_10140.jpg'}, {'photo_id': 1372607503, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/101e7b14d44e8384ea553b0dda778cc3.jpg', 'username': None, 'uploaded_at': 1752818523, 'text': 'image_18072025_08_01_14_10137.jpg'}, {'photo_id': 1372607452, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/18/5432cbd1cf61faab6e002a836b30af05.jpg', 'username': None, 'uploaded_at': 1752818523, 'text': 'image_18072025_08_01_24_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 1.3828277587890625e-05 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002263784408569336 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 25065654, '2025-07-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1986915,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02269768714904785 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= 1986915 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1986915, 'dashboard_run_id': 1995528, 'mtr_portfolio_id': 25063914, 'dashboard_result_id': 12715024, '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_P25063914_18-07-2025_07_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25063943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25063944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25063946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25063947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25063948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25063949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25063950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25063951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25063952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25063953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25063954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25063955, 'pht': 3726}}"}, {'dashboat_entry_day': 1986915, 'dashboard_run_id': 1995528, 'mtr_portfolio_id': 25064457, 'dashboard_result_id': 12715025, '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_P25064457_18-07-2025_07_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25064490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25064491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25064492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25064493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25064494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25064495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25064496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25064497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25064498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25064499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25064500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25064501, 'pht': 3726}}"}, {'dashboat_entry_day': 1986915, 'dashboard_run_id': 1995528, 'mtr_portfolio_id': 25065089, 'dashboard_result_id': 12715026, '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_P25065089_18-07-2025_08_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25065115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25065116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25065117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25065118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25065119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25065120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25065121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25065122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25065123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25065124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25065125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25065126, 'pht': 3726}}"}, {'dashboat_entry_day': 1986915, 'dashboard_run_id': 1995528, 'mtr_portfolio_id': 25065654, 'dashboard_result_id': 12715027, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 25063914 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': 3306584, 'mtr_portfolio_id': 25063914, 'created_at': datetime.datetime(2025, 7, 18, 7, 30, 59), 'result': '0.035167171488852', 'result_long': None, 'result_double': None}] Qualite : 0.035167171488852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25063914 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25063914_18-07-2025_07_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25063914 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_P25063914_18-07-2025_07_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25063943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25063944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25063946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25063947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25063948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25063949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25063950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25063951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25063952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25063953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25063954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25063955, 'pht': 3726}}" where mtr_portfolio_id = 25063914 and dashboard_run_id = 1995528 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`=25063914 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12715024, 0.035167171488852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25063914_18-07-2025_07_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25063943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25063944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25063946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25063947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25063948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25063949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25063950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25063951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25063952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25063953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25063954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25063955, '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 = 25064457 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': 3306633, 'mtr_portfolio_id': 25064457, 'created_at': datetime.datetime(2025, 7, 18, 7, 46, 57), 'result': '0.0437671227574494', 'result_long': None, 'result_double': None}] Qualite : 0.0437671227574494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25064457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25064457_18-07-2025_07_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25064457 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_P25064457_18-07-2025_07_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25064490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25064491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25064492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25064493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25064494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25064495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25064496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25064497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25064498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25064499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25064500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25064501, 'pht': 3726}}" where mtr_portfolio_id = 25064457 and dashboard_run_id = 1995528 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`=25064457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12715025, 0.0437671227574494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25064457_18-07-2025_07_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25064490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25064491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25064492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25064493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25064494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25064495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25064496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25064497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25064498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25064499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25064500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25064501, '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 = 25065089 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': 3306684, 'mtr_portfolio_id': 25065089, 'created_at': datetime.datetime(2025, 7, 18, 8, 2, 58), 'result': '0.06227499100977755', 'result_long': None, 'result_double': None}] Qualite : 0.06227499100977755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25065089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065089_18-07-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25065089 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_P25065089_18-07-2025_08_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25065115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25065116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25065117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25065118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25065119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25065120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25065121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25065122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25065123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25065124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25065125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25065126, 'pht': 3726}}" where mtr_portfolio_id = 25065089 and dashboard_run_id = 1995528 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`=25065089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12715026, 0.06227499100977755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065089_18-07-2025_08_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25065115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25065116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25065117, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25065118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25065119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25065120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25065121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25065122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25065123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25065124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25065125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25065126, '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 = 25065654 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 25065654 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25065654 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25065654 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25065654 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25065654 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25065654_18-07-2025_08_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25065654 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_P25065654_18-07-2025_08_05_01.pdf'}" where mtr_portfolio_id = 25065654 and dashboard_run_id = 1995528 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25063914,25064457,25065089,25065654) result : ((1372602585,), (1372602617,), (1372602644,), (1372602662,), (1372602672,), (1372602674,), (1372602851,), (1372602853,), (1372602854,), (1372602856,), (1372602858,), (1372602874,), (1372602940,), (1372602944,), (1372602947,), (1372602951,), (1372602954,), (1372602957,), (1372602976,), (1372602981,), (1372602984,), (1372602987,), (1372602990,), (1372602992,), (1372603022,), (1372603031,), (1372603032,), (1372603034,), (1372603036,), (1372603038,), (1372603100,), (1372603103,), (1372603106,), (1372603107,), (1372603110,), (1372603115,), (1372603250,), (1372603278,), (1372603304,), (1372603331,), (1372603365,), (1372603399,), (1372603573,), (1372603583,), (1372603597,), (1372603613,), (1372603622,), (1372603641,), (1372603750,), (1372603774,), (1372603780,), (1372603782,), (1372603785,), (1372603802,), (1372603847,), (1372603876,), (1372603906,), (1372603933,), (1372603949,), (1372603952,), (1372603973,), (1372603980,), (1372603990,), (1372603993,), (1372603994,), (1372603996,), (1372604032,), (1372604034,), (1372604036,), (1372604037,), (1372604040,), (1372604044,), (1372604074,), (1372604084,), (1372604089,), (1372604093,), (1372604096,), (1372604099,), (1372604130,), (1372604133,), (1372604136,), (1372604139,), (1372604141,), (1372604142,), (1372604199,), (1372604200,), (1372604207,), (1372604213,), (1372604215,), (1372604217,), (1372604339,), (1372604343,), (1372604346,), (1372604350,), (1372604386,), (1372604396,), (1372604444,), (1372604493,), (1372604569,), (1372604596,), (1372604632,), (1372604651,), (1372604791,), (1372604793,), (1372604796,), (1372604798,), (1372604800,), (1372604802,), (1372604818,), (1372604822,), (1372604829,), (1372604842,), (1372604848,), (1372604853,), (1372604900,), (1372604905,), (1372604908,), (1372604911,), (1372604916,), (1372604918,), (1372604927,), (1372604930,), (1372604933,), (1372604941,), (1372604943,), (1372604948,), (1372604968,), (1372604978,), (1372604989,), (1372604993,), (1372604997,), (1372605002,), (1372605029,), (1372605035,), (1372605053,), (1372605061,), (1372605068,), (1372605074,), (1372605101,), (1372605146,), (1372605149,), (1372605165,), (1372605170,), (1372605173,), (1372605176,), (1372605262,), (1372605264,), (1372605265,), (1372605266,), (1372605268,), (1372605271,), (1372605302,), (1372605303,), (1372605305,), (1372605308,), (1372605311,), (1372605313,), (1372605342,), (1372605345,), (1372605347,), (1372605350,), (1372605352,), (1372605354,), (1372605374,), (1372605377,), (1372605382,), (1372605385,), (1372605389,), (1372605391,), (1372605409,), (1372605412,), (1372605414,), (1372605417,), (1372605418,), (1372605421,), (1372605454,), (1372605456,), (1372605459,), (1372605466,), (1372605476,), (1372605478,), (1372605508,), (1372605510,), (1372605511,), (1372605513,), (1372605515,), (1372605517,), (1372605568,), (1372605580,), (1372605584,), (1372605587,), (1372605591,), (1372605595,), (1372605622,), (1372605624,), (1372605627,), (1372605629,), (1372605632,), (1372605635,), (1372605663,), (1372605667,), (1372605668,), (1372605672,), (1372605675,), (1372605679,), (1372605710,), (1372605714,), (1372605715,), (1372605719,), (1372605721,), (1372605723,), (1372605745,), (1372605748,), (1372605752,), (1372605754,), (1372605758,), (1372605761,), (1372605802,), (1372605805,), (1372605808,), (1372605809,), (1372605811,), (1372605814,), (1372605836,), (1372605838,), (1372605840,), (1372605843,), (1372605846,), (1372605850,), (1372605877,), (1372605879,), (1372605880,), (1372605882,), (1372605885,), (1372605888,), (1372605917,), (1372605929,), (1372605934,), (1372605936,), (1372605939,), (1372605943,), (1372605967,), (1372605972,), (1372605974,), (1372605978,), (1372605982,), (1372605986,), (1372606026,), (1372606030,), (1372606032,), (1372606034,), (1372606037,), (1372606039,), (1372606301,), (1372606576,), (1372606643,), (1372606703,), (1372606756,), (1372606806,), (1372606966,), (1372607313,), (1372607356,), (1372607401,), (1372607452,), (1372607503,), (1372607561,), (1372608110,), (1372608157,), (1372608196,), (1372608245,), (1372608269,), (1372608314,), (1372608598,), (1372608627,), (1372608653,), (1372608659,), (1372608664,), (1372608666,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18072025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25065654]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966] map_info['map_portfolio_photo'] : {25065654: [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966]} final : True mtd_id 4302 list_pids : [1372608666, 1372608664, 1372608659, 1372608653, 1372608627, 1372608598, 1372608314, 1372608269, 1372608245, 1372608196, 1372608157, 1372608110, 1372607561, 1372607503, 1372607452, 1372607401, 1372607356, 1372607313, 1372606966] Looping around the photos to save general results len do output : 1 /25065654Didn'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, '3306749') ('4302', '25065654', '1372608666', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608664', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608659', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608653', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608627', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608598', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608314', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608269', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608245', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608196', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608157', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372608110', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607561', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607503', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607452', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607401', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607356', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372607313', None, None, None, None, None, '3306749') ('4302', None, None, None, None, None, None, None, '3306749') ('4302', '25065654', '1372606966', None, None, None, None, None, '3306749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '25065654', 'None', None, None, None, None, '3306749'), ('4302', '25065654', '1372608666', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608664', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608659', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608653', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608627', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608598', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608314', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608269', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608245', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608196', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608157', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372608110', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607561', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607503', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607452', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607401', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607356', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372607313', None, None, None, None, None, '3306749'), ('4302', '25065654', '1372606966', None, None, None, None, None, '3306749')] time used for this insertion : 0.016972780227661133 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3038485050201416 time spend to save output : 0.01730513572692871 total time spend for step 5 : 0.3211536407470703 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 (3306749) 2.32user 2.33system 0:07.74elapsed 60%CPU (0avgtext+0avgdata 158692maxresident)k 0inputs+7600outputs (13major+71895minor)pagefaults 0swaps