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 : 1013231 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 (3248233) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3248233) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703713 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3248233'] with mtr_portfolio_ids : ['24703713'] and first list_photo_ids : [] new path : /proc/1013231/ Name: python3 Umask: 0002 State: R (running) Tgid: 1013231 Ngid: 0 Pid: 1013231 PPid: 1013230 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1013231 NSpid: 1013231 NSpgid: 1011485 NSsid: 1011485 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100384 kB VmRSS: 100384 kB RssAnon: 59828 kB RssFile: 40556 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/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: 43 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1013231', 'Ngid': '0', 'Pid': '1013231', 'PPid': '1013230', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1013231', 'NSpid': '1013231', 'NSpgid': '1011485', 'NSsid': '1011485', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100384 kB', 'VmRSS': '100384 kB', 'RssAnon': '59828 kB', 'RssFile': '40556 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/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': '43', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '1013231', '1106868', '0', '1106868', '865620', '100384', b'', 'marlene', '3248233') 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 (24703713) 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 (3248233 ) ) 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 (24703713) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371107694, 'portfolio_id': 24703713}, {'photo_id': 1371107689, 'portfolio_id': 24703713}, {'photo_id': 1371107686, 'portfolio_id': 24703713}, {'photo_id': 1371107682, 'portfolio_id': 24703713}, {'photo_id': 1371107674, 'portfolio_id': 24703713}, {'photo_id': 1371107670, 'portfolio_id': 24703713}, {'photo_id': 1371107656, 'portfolio_id': 24703713}, {'photo_id': 1371107654, 'portfolio_id': 24703713}, {'photo_id': 1371107649, 'portfolio_id': 24703713}, {'photo_id': 1371107638, 'portfolio_id': 24703713}, {'photo_id': 1371107627, 'portfolio_id': 24703713}, {'photo_id': 1371107616, 'portfolio_id': 24703713}, {'photo_id': 1371107613, 'portfolio_id': 24703713}, {'photo_id': 1371107611, 'portfolio_id': 24703713}, {'photo_id': 1371107608, 'portfolio_id': 24703713}, {'photo_id': 1371107604, 'portfolio_id': 24703713}, {'photo_id': 1371107601, 'portfolio_id': 24703713}, {'photo_id': 1371107598, 'portfolio_id': 24703713}, {'photo_id': 1371107567, 'portfolio_id': 24703713}, {'photo_id': 1371107565, 'portfolio_id': 24703713}, {'photo_id': 1371107561, 'portfolio_id': 24703713}, {'photo_id': 1371107557, 'portfolio_id': 24703713}, {'photo_id': 1371107546, 'portfolio_id': 24703713}, {'photo_id': 1371107542, 'portfolio_id': 24703713}, {'photo_id': 1371107533, 'portfolio_id': 24703713}, {'photo_id': 1371107531, 'portfolio_id': 24703713}, {'photo_id': 1371107527, 'portfolio_id': 24703713}, {'photo_id': 1371107523, 'portfolio_id': 24703713}, {'photo_id': 1371107518, 'portfolio_id': 24703713}, {'photo_id': 1371107513, 'portfolio_id': 24703713}, {'photo_id': 1371107502, 'portfolio_id': 24703713}, {'photo_id': 1371107500, 'portfolio_id': 24703713}, {'photo_id': 1371107496, 'portfolio_id': 24703713}, {'photo_id': 1371107491, 'portfolio_id': 24703713}, {'photo_id': 1371107486, 'portfolio_id': 24703713}, {'photo_id': 1371107481, 'portfolio_id': 24703713}, {'photo_id': 1371107471, 'portfolio_id': 24703713}, {'photo_id': 1371107468, 'portfolio_id': 24703713}, {'photo_id': 1371107464, 'portfolio_id': 24703713}, {'photo_id': 1371107459, 'portfolio_id': 24703713}, {'photo_id': 1371107455, 'portfolio_id': 24703713}, {'photo_id': 1371107450, 'portfolio_id': 24703713}, {'photo_id': 1371107434, 'portfolio_id': 24703713}, {'photo_id': 1371107431, 'portfolio_id': 24703713}, {'photo_id': 1371107428, 'portfolio_id': 24703713}, {'photo_id': 1371107425, 'portfolio_id': 24703713}, {'photo_id': 1371107421, 'portfolio_id': 24703713}, {'photo_id': 1371107417, 'portfolio_id': 24703713}, {'photo_id': 1371107400, 'portfolio_id': 24703713}, {'photo_id': 1371107399, 'portfolio_id': 24703713}, {'photo_id': 1371107395, 'portfolio_id': 24703713}, {'photo_id': 1371107391, 'portfolio_id': 24703713}, {'photo_id': 1371107386, 'portfolio_id': 24703713}, {'photo_id': 1371107381, 'portfolio_id': 24703713}, {'photo_id': 1371107360, 'portfolio_id': 24703713}, {'photo_id': 1371107359, 'portfolio_id': 24703713}, {'photo_id': 1371107356, 'portfolio_id': 24703713}, {'photo_id': 1371107352, 'portfolio_id': 24703713}, {'photo_id': 1371107341, 'portfolio_id': 24703713}, {'photo_id': 1371107333, 'portfolio_id': 24703713}, {'photo_id': 1371107311, 'portfolio_id': 24703713}, {'photo_id': 1371107309, 'portfolio_id': 24703713}, {'photo_id': 1371107307, 'portfolio_id': 24703713}, {'photo_id': 1371107304, 'portfolio_id': 24703713}, {'photo_id': 1371107302, 'portfolio_id': 24703713}, {'photo_id': 1371107293, 'portfolio_id': 24703713}, {'photo_id': 1371107276, 'portfolio_id': 24703713}, {'photo_id': 1371107275, 'portfolio_id': 24703713}, {'photo_id': 1371107273, 'portfolio_id': 24703713}, {'photo_id': 1371107271, 'portfolio_id': 24703713}, {'photo_id': 1371107264, 'portfolio_id': 24703713}, {'photo_id': 1371107259, 'portfolio_id': 24703713}] map_portfolio_id_photo_id: {24703713: [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616, 1371107613, 1371107611, 1371107608, 1371107604, 1371107601, 1371107598, 1371107567, 1371107565, 1371107561, 1371107557, 1371107546, 1371107542, 1371107533, 1371107531, 1371107527, 1371107523, 1371107518, 1371107513, 1371107502, 1371107500, 1371107496, 1371107491, 1371107486, 1371107481, 1371107471, 1371107468, 1371107464, 1371107459, 1371107455, 1371107450, 1371107434, 1371107431, 1371107428, 1371107425, 1371107421, 1371107417, 1371107400, 1371107399, 1371107395, 1371107391, 1371107386, 1371107381, 1371107360, 1371107359, 1371107356, 1371107352, 1371107341, 1371107333, 1371107311, 1371107309, 1371107307, 1371107304, 1371107302, 1371107293, 1371107276, 1371107275, 1371107273, 1371107271, 1371107264, 1371107259]} ##### 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.016312837600708008 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Jul 8 00:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24703713) 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 : 24703713 get user id for portfolio 24703713 get sub ptf for main ptf 24703713, type 3726 and hashtags ['plastique', 'kraft', 'Teint_Dans_La_Masse', 'Carton_brun', 'cartonnette', 'mal_croppe', 'papier', 'autre_refus', 'flou', 'metal', 'Carton_gris', 'environnement'] 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`=24703713 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','Teint_Dans_La_Masse','Carton_brun','cartonnette','mal_croppe','papier','autre_refus','flou','metal','Carton_gris','environnement')) 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`=24703713 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','Teint_Dans_La_Masse','Carton_brun','cartonnette','mal_croppe','papier','autre_refus','flou','metal','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 24703713, 'sub_port_id': 24703728, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610163, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}, 'mal_croppe': {'main_port_id': 24703713, 'sub_port_id': 24703729, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610164, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}, 'autre_refus': {'main_port_id': 24703713, 'sub_port_id': 24703730, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610165, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}, 'cartonnette': {'main_port_id': 24703713, 'sub_port_id': 24703731, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610166, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}, 'plastique': {'main_port_id': 24703713, 'sub_port_id': 24703732, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610167, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}, 'metal': {'main_port_id': 24703713, 'sub_port_id': 24703733, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610168, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}, 'environnement': {'main_port_id': 24703713, 'sub_port_id': 24703734, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610169, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}, 'papier': {'main_port_id': 24703713, 'sub_port_id': 24703735, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610170, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}, 'kraft': {'main_port_id': 24703713, 'sub_port_id': 24703736, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610171, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}, 'flou': {'main_port_id': 24703713, 'sub_port_id': 24703737, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610172, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}, 'Carton_gris': {'main_port_id': 24703713, 'sub_port_id': 24703738, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610173, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 24703713, 'sub_port_id': 24703739, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610174, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703728 , 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=24703713 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 (24703728) result : ((1371107540,), (1371107576,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703729 , 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=24703713 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 (24703729) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703730 , 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=24703713 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 (24703730) result : ((1371107506,), (1371108171,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703731 , 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=24703713 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 (24703731) result : ((1371107482,), (1371107630,), (1371107647,), (1371107661,), (1371107662,), (1371108173,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703732 , 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=24703713 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 (24703732) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703733 , 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=24703713 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 (24703733) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703734 , 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=24703713 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 (24703734) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703735 , 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=24703713 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 (24703735) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703736 , 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=24703713 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 (24703736) result : ((1371107632,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703737 , 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=24703713 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 (24703737) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703738 , 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=24703713 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 (24703738) result : ((1371107572,), (1371107573,), (1371107574,), (1371107575,), (1371107629,), (1371107644,), (1371107645,), (1371107937,), (1371107939,), (1371107941,), (1371107943,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24703739 , 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=24703713 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 (24703739) result : ((1371107409,), (1371107410,), (1371107411,), (1371107412,), (1371107413,), (1371107480,), (1371107537,), (1371107538,), (1371107539,), (1371107570,), (1371107619,), (1371107620,), (1371107621,), (1371107622,), (1371107623,), (1371107624,), (1371107625,), (1371107634,), (1371107635,), (1371107636,), (1371107637,), (1371107640,), (1371107641,), (1371107642,), (1371107643,), (1371107659,), (1371107660,), (1371107917,), (1371107920,), (1371107922,), (1371107924,), (1371108166,), (1371108167,), (1371108168,), (1371108169,), (1371108170,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24703713) result : ((1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) 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 (1371107500,1371107400) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24703713 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','Teint_Dans_La_Masse','Carton_brun','cartonnette','mal_croppe','papier','autre_refus','flou','metal','Carton_gris','environnement')) 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`=24703713 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','Teint_Dans_La_Masse','Carton_brun','cartonnette','mal_croppe','papier','autre_refus','flou','metal','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 24703713, 'sub_port_id': 24703740, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610175, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}, 'mal_croppe': {'main_port_id': 24703713, 'sub_port_id': 24703741, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610176, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}, 'autre_refus': {'main_port_id': 24703713, 'sub_port_id': 24703742, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610177, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}, 'cartonnette': {'main_port_id': 24703713, 'sub_port_id': 24703743, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610178, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}, 'plastique': {'main_port_id': 24703713, 'sub_port_id': 24703744, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610179, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}, 'metal': {'main_port_id': 24703713, 'sub_port_id': 24703745, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610180, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}, 'environnement': {'main_port_id': 24703713, 'sub_port_id': 24703746, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610181, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}, 'papier': {'main_port_id': 24703713, 'sub_port_id': 24703747, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610182, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}, 'kraft': {'main_port_id': 24703713, 'sub_port_id': 24703748, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610183, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}, 'flou': {'main_port_id': 24703713, 'sub_port_id': 24703749, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610184, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}, 'Carton_gris': {'main_port_id': 24703713, 'sub_port_id': 24703750, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610185, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 24703713, 'sub_port_id': 24703751, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610186, 'last_updated_at': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 0, 56, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 0, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703740,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703728 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703741,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703729 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703742,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703730 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703743,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703731 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703744,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703732 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703745,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703733 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703746,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703734 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703747,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703735 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703748,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703736 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703749,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703737 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703750,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703738 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24703751,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24703739 lien utilise dans velours : https://www.fotonower.com/velours/24703740,24703741,24703742,24703743,24703744,24703745,24703746,24703747,24703748,24703749,24703750,24703751?tags=Carton_brun,mal_croppe,autre_refus,cartonnette,plastique,metal,environnement,papier,kraft,flou,Carton_gris,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24703713]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616] map_info['map_portfolio_photo'] : {24703713: [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616, 1371107613, 1371107611, 1371107608, 1371107604, 1371107601, 1371107598, 1371107567, 1371107565, 1371107561, 1371107557, 1371107546, 1371107542, 1371107533, 1371107531, 1371107527, 1371107523, 1371107518, 1371107513, 1371107502, 1371107500, 1371107496, 1371107491, 1371107486, 1371107481, 1371107471, 1371107468, 1371107464, 1371107459, 1371107455, 1371107450, 1371107434, 1371107431, 1371107428, 1371107425, 1371107421, 1371107417, 1371107400, 1371107399, 1371107395, 1371107391, 1371107386, 1371107381, 1371107360, 1371107359, 1371107356, 1371107352, 1371107341, 1371107333, 1371107311, 1371107309, 1371107307, 1371107304, 1371107302, 1371107293, 1371107276, 1371107275, 1371107273, 1371107271, 1371107264, 1371107259]} final : False mtd_id 4302 list_pids : [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616] Looping around the photos to save general results len do output : 1 /24703713. 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, '3248233') ('4302', '24703713', '1371107694', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107689', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107686', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107682', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107674', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107670', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107656', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107654', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107649', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107638', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107627', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107616', None, None, None, None, None, '3248233') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24703713', "{'Carton_brun': 24703728, 'mal_croppe': 24703729, 'autre_refus': 24703730, 'cartonnette': 24703731, 'plastique': 24703732, 'metal': 24703733, 'environnement': 24703734, 'papier': 24703735, 'kraft': 24703736, 'flou': 24703737, 'Carton_gris': 24703738, 'Teint_Dans_La_Masse': 24703739}", None, None, None, None, '3248233'), ('4302', '24703713', '1371107694', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107689', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107686', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107682', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107674', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107670', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107656', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107654', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107649', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107638', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107627', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107616', None, None, None, None, None, '3248233')] time used for this insertion : 0.016790390014648438 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.572288990020752 time spend to save output : 0.0171356201171875 total time spend for step 1 : 0.5894246101379395 step2:final Tue Jul 8 00:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (24703713) 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 24703713 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371107276,1371107275,1371107273,1371107271,1371107264,1371107259,1371107311,1371107309,1371107307,1371107304,1371107302,1371107293,1371107360,1371107359,1371107356,1371107352,1371107341,1371107333,1371107400,1371107399,1371107395,1371107391,1371107386,1371107381,1371107434,1371107431,1371107428,1371107425,1371107421,1371107417,1371107471,1371107468,1371107464,1371107459,1371107455,1371107450,1371107502,1371107500,1371107496,1371107491,1371107486,1371107481,1371107533,1371107531,1371107527,1371107523,1371107518,1371107513,1371107567,1371107565,1371107561,1371107557,1371107546,1371107542,1371107613,1371107611,1371107608,1371107604,1371107601,1371107598,1371107656,1371107654,1371107649,1371107638,1371107627,1371107616,1371107694,1371107689,1371107686,1371107682,1371107674,1371107670); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24703713]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} new output for save of step final : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616] map_info['map_portfolio_photo'] : {24703713: [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616, 1371107613, 1371107611, 1371107608, 1371107604, 1371107601, 1371107598, 1371107567, 1371107565, 1371107561, 1371107557, 1371107546, 1371107542, 1371107533, 1371107531, 1371107527, 1371107523, 1371107518, 1371107513, 1371107502, 1371107500, 1371107496, 1371107491, 1371107486, 1371107481, 1371107471, 1371107468, 1371107464, 1371107459, 1371107455, 1371107450, 1371107434, 1371107431, 1371107428, 1371107425, 1371107421, 1371107417, 1371107400, 1371107399, 1371107395, 1371107391, 1371107386, 1371107381, 1371107360, 1371107359, 1371107356, 1371107352, 1371107341, 1371107333, 1371107311, 1371107309, 1371107307, 1371107304, 1371107302, 1371107293, 1371107276, 1371107275, 1371107273, 1371107271, 1371107264, 1371107259]} final : False mtd_id 4302 list_pids : [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616] Looping around the photos to save general results len do output : 12 /1371107694.Didn't retrieve data . /1371107689.Didn't retrieve data . /1371107686.Didn't retrieve data . /1371107682.Didn't retrieve data . /1371107674.Didn't retrieve data . /1371107670.Didn't retrieve data . /1371107656.Didn't retrieve data . /1371107654.Didn't retrieve data . /1371107649.Didn't retrieve data . /1371107638.Didn't retrieve data . /1371107627.Didn't retrieve data . /1371107616.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, '3248233') ('4302', '24703713', '1371107694', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107689', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107686', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107682', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107674', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107670', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107656', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107654', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107649', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107638', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107627', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107616', None, None, None, None, None, '3248233') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '24703713', '1371107694', '0.03116704179804264', None, None, None, None, '3248233'), ('4302', '24703713', '1371107689', '0.03116704179804264', None, None, None, None, '3248233'), ('4302', '24703713', '1371107686', '0.03116704179804264', None, None, None, None, '3248233'), ('4302', '24703713', '1371107682', '0.03116704179804264', None, None, None, None, '3248233'), ('4302', '24703713', '1371107674', '0.03116704179804264', None, None, None, None, '3248233'), ('4302', '24703713', '1371107670', '0.03116704179804264', None, None, None, None, '3248233'), ('4302', '24703713', '1371107656', '0.03116704179804264', None, None, None, None, '3248233'), ('4302', '24703713', '1371107654', '0.03116704179804264', None, None, None, None, '3248233'), ('4302', '24703713', '1371107649', '0.03116704179804264', None, None, None, None, '3248233'), ('4302', '24703713', '1371107638', '0.03116704179804264', None, None, None, None, '3248233'), ('4302', '24703713', '1371107627', '0.03116704179804264', None, None, None, None, '3248233'), ('4302', '24703713', '1371107616', '0.03116704179804264', None, None, None, None, '3248233')] time used for this insertion : 0.01653599739074707 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07568860054016113 time spend to save output : 0.017066478729248047 total time spend for step 2 : 0.09275507926940918 step3:velours_tree Tue Jul 8 00:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24703713: [{'Carton_brun': 24703728, 'mal_croppe': 24703729, 'autre_refus': 24703730, 'cartonnette': 24703731, 'plastique': 24703732, 'metal': 24703733, 'environnement': 24703734, 'papier': 24703735, 'kraft': 24703736, 'flou': 24703737, 'Carton_gris': 24703738, 'Teint_Dans_La_Masse': 24703739}]} input_args_next_step : {24703713: ()} output_args : {24703713: [{'Carton_brun': 24703728, 'mal_croppe': 24703729, 'autre_refus': 24703730, 'cartonnette': 24703731, 'plastique': 24703732, 'metal': 24703733, 'environnement': 24703734, 'papier': 24703735, 'kraft': 24703736, 'flou': 24703737, 'Carton_gris': 24703738, 'Teint_Dans_La_Masse': 24703739}]} args : 24703713 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 : ({'Carton_brun': 24703728, 'mal_croppe': 24703729, 'autre_refus': 24703730, 'cartonnette': 24703731, 'plastique': 24703732, 'metal': 24703733, 'environnement': 24703734, 'papier': 24703735, 'kraft': 24703736, 'flou': 24703737, 'Carton_gris': 24703738, 'Teint_Dans_La_Masse': 24703739},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24703713) 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([24703713]) 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.30569934844970703 time spend to save output : 5.078315734863281e-05 total time spend for step 3 : 0.30575013160705566 step4:send_mail_cod Tue Jul 8 00:59: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 : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} input_args_next_step : {1371107694: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107694 depend.output_id : 0 input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107689 depend.output_id : 0 input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107686 depend.output_id : 0 input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107682 depend.output_id : 0 input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107674 depend.output_id : 0 input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107670 depend.output_id : 0 input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107656 depend.output_id : 0 input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107654 depend.output_id : 0 input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107649 depend.output_id : 0 input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107638 depend.output_id : 0 input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107627 depend.output_id : 0 input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ()} output_args : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',)} args : 1371107616 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 : {24703713: [{'Carton_brun': 24703728, 'mal_croppe': 24703729, 'autre_refus': 24703730, 'cartonnette': 24703731, 'plastique': 24703732, 'metal': 24703733, 'environnement': 24703734, 'papier': 24703735, 'kraft': 24703736, 'flou': 24703737, 'Carton_gris': 24703738, 'Teint_Dans_La_Masse': 24703739}]} input_args_next_step : {1371107694: ('0.03116704179804264',), 1371107689: ('0.03116704179804264',), 1371107686: ('0.03116704179804264',), 1371107682: ('0.03116704179804264',), 1371107674: ('0.03116704179804264',), 1371107670: ('0.03116704179804264',), 1371107656: ('0.03116704179804264',), 1371107654: ('0.03116704179804264',), 1371107649: ('0.03116704179804264',), 1371107638: ('0.03116704179804264',), 1371107627: ('0.03116704179804264',), 1371107616: ('0.03116704179804264',), 24703713: ()} output_args : {24703713: [{'Carton_brun': 24703728, 'mal_croppe': 24703729, 'autre_refus': 24703730, 'cartonnette': 24703731, 'plastique': 24703732, 'metal': 24703733, 'environnement': 24703734, 'papier': 24703735, 'kraft': 24703736, 'flou': 24703737, 'Carton_gris': 24703738, 'Teint_Dans_La_Masse': 24703739}]} args : 24703713 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 :13, first value : ('0.03116704179804264',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24703713) 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 (1371107694,1371107689,1371107686,1371107682,1371107674,1371107670,1371107656,1371107654,1371107649,1371107638,1371107627,1371107616) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371107616 begin to download photo : 1371107649 begin to download photo : 1371107670 begin to download photo : 1371107686 download finish for photo 1371107670 begin to download photo : 1371107674 download finish for photo 1371107616 begin to download photo : 1371107627 download finish for photo 1371107686 begin to download photo : 1371107689 download finish for photo 1371107649 begin to download photo : 1371107654 download finish for photo 1371107674 begin to download photo : 1371107682 download finish for photo 1371107627 begin to download photo : 1371107638 download finish for photo 1371107689 begin to download photo : 1371107694 download finish for photo 1371107654 begin to download photo : 1371107656 download finish for photo 1371107682 download finish for photo 1371107638 download finish for photo 1371107694 download finish for photo 1371107656 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette247037291751929140/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24703713_08-07-2025_00_59_00.pdf 24703729 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=24703729 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247037291751929140 24703730 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=24703730 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371107506: '1751928726_1927380_1371107333_da1bf444c8b6b10c042b717b95edcf28_rle_crop_3875403048_0.png', 1371108171: '1751929086_1942819_1371107608_b7214a34c7993aa5ea3a5553ad3c4c29_rle_crop_3875413801_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/8e6b0b84500d74a58dfc1e98e0349f07_63767230.png change filename to text .imagette247037301751929140/ imagette247037301751929140/1751928726_1927380_1371107333_da1bf444c8b6b10c042b717b95edcf28_rle_crop_3875403048_0.png.png imagette247037301751929140/1751929086_1942819_1371107608_b7214a34c7993aa5ea3a5553ad3c4c29_rle_crop_3875413801_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/49c3df191d31f714f288c550b4e0121e_98249890.png imagette247037301751929140 24703731 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=24703731 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371107482: '1751928686_3076047_1371107399_4a53369baa150952ccfe23ae59052615_rle_crop_3875402806_0.png', 1371107630: '1751928926_1934509_1371107491_908eb58075a0985d406fbcb1117b7751_rle_crop_3875406432_0.png', 1371107647: '1751928926_3081902_1371107523_bde68382ab4c1b9e94fde8367a0ab0c4_rle_crop_3875406805_0.png', 1371107661: '1751928965_1935854_1371107276_e1180c0535c4d2fb2cc44fbf726b28fa_rle_crop_3875406946_0.png', 1371107662: '1751928965_1935854_1371107276_e1180c0535c4d2fb2cc44fbf726b28fa_rle_crop_3875406944_0.png', 1371108173: '1751929086_1942819_1371107598_173a4b5abdc1de8f0e8f8eaf6cee4f12_rle_crop_3875413831_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9e112c2858e6fe3e95d7a38de4a852de_29359987.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9e04924990b59f8031d583bdd1633dea_58368703.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/d8a908d9cd405c4a30e883290c6c09a7_22857009.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6c2436eb526752b3cc442fcd1646ebfc_61775327.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7cea85cd985a0282d3280d61b04eca5f_63405755.png change filename to text .imagette247037311751929140/ imagette247037311751929140/1751928965_1935854_1371107276_e1180c0535c4d2fb2cc44fbf726b28fa_rle_crop_3875406944_0.png.png imagette247037311751929140/1751928686_3076047_1371107399_4a53369baa150952ccfe23ae59052615_rle_crop_3875402806_0.png.png imagette247037311751929140/1751928926_3081902_1371107523_bde68382ab4c1b9e94fde8367a0ab0c4_rle_crop_3875406805_0.png.png imagette247037311751929140/1751928926_1934509_1371107491_908eb58075a0985d406fbcb1117b7751_rle_crop_3875406432_0.png.png imagette247037311751929140/1751929086_1942819_1371107598_173a4b5abdc1de8f0e8f8eaf6cee4f12_rle_crop_3875413831_0.png.png imagette247037311751929140/1751928965_1935854_1371107276_e1180c0535c4d2fb2cc44fbf726b28fa_rle_crop_3875406946_0.png.png imagette247037321751929141/ imagette247037331751929141/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/78d86037748d36c4cabc4eeb565513ac_72860482.png imagette247037311751929140 24703732 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=24703732 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247037321751929141 24703733 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=24703733 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247037331751929141 24703736 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=24703736 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371107632: '1751928926_1934509_1371107496_2d2d02fc5422ee773f48692dfd2f37ce_rle_crop_3875406111_0.png'} change filename to text .imagette247037361751929141/ imagette247037361751929141/1751928926_1934509_1371107496_2d2d02fc5422ee773f48692dfd2f37ce_rle_crop_3875406111_0.png.png imagette247037371751929141/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/35d95f625d61b773019c5be9b6dbe9a7_4880571.png imagette247037361751929141 24703737 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=24703737 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247037371751929141 24703728 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=24703728 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371107540: '1751928805_3078851_1371107471_5b5361ba82e73b3a8dee061fa7cb8d9a_rle_crop_3875403182_0.png', 1371107576: '1751928847_1930313_1371107421_5e06f1fd19f1d26bcff07881b0d04d7e_rle_crop_3875403398_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/696815b007f1fcf360f17d57fe778ffc_6501088.png change filename to text .imagette247037281751929141/ imagette247037281751929141/1751928805_3078851_1371107471_5b5361ba82e73b3a8dee061fa7cb8d9a_rle_crop_3875403182_0.png.png imagette247037281751929141/1751928847_1930313_1371107421_5e06f1fd19f1d26bcff07881b0d04d7e_rle_crop_3875403398_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e2093ee6332732d25bd812dfec2730ba_54978050.png imagette247037281751929141 24703738 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=24703738 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371107572: '1751928847_1930313_1371107428_b8367b7b647e065b4df642e4a7cdb409_rle_crop_3875403368_0.png', 1371107573: '1751928847_1930313_1371107425_6cb301845f41c3db67d335fb82d34595_rle_crop_3875403378_0.png', 1371107574: '1751928847_1930313_1371107421_5e06f1fd19f1d26bcff07881b0d04d7e_rle_crop_3875403390_0.png', 1371107575: '1751928847_1930313_1371107417_57752b5c65b4e52fd74679ba70292083_rle_crop_3875403403_0.png', 1371107629: '1751928926_1934509_1371107486_36629bd80708f1762dab857278ac7408_rle_crop_3875406467_0.png', 1371107644: '1751928926_3081902_1371107518_39ef1b9abd83a4a7c18e7fd3891f3598_rle_crop_3875406826_0.png', 1371107645: '1751928926_3081902_1371107513_b75ce68df3250a7b1b4af6b28f413b7a_rle_crop_3875406835_0.png', 1371107937: '1751929046_3085033_1371107567_1d2ff66dc39ddd2ff817a06e7463fde9_rle_crop_3875411995_0.png', 1371107939: '1751929046_3085033_1371107561_b2b517c6e54225209e1db183e1fff875_rle_crop_3875412025_0.png', 1371107941: '1751929046_3085033_1371107561_b2b517c6e54225209e1db183e1fff875_rle_crop_3875412020_0.png', 1371107943: '1751929046_3085033_1371107557_308f75443fa08dcb3d50fed3168bb408_rle_crop_3875412038_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7cb8f19987af305f446be87c30906916_73109131.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/58622dc2d053b6e8255beed0043b3687_7255891.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6d280f64dcd9591d95621f61fefb9d44_56949981.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/05d31f8ef150dc64a105330b4f78b9fd_14067394.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a6bf6b4d106dbb4816ac730eb05ab361_94707337.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5739677632c77b84d0478acaf28fec8f_71627774.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e332d505c3617a04a3654bceedd9ff23_76426524.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/c46c5f6555900a1c4f5ec7259df2bcab_15569238.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9bf0469f81c564b613e8452d3fe35520_23424950.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/d4677486aa659f0416b7b30a3cc0ecf3_31247320.png change filename to text .imagette247037381751929141/ imagette247037381751929141/1751928926_3081902_1371107513_b75ce68df3250a7b1b4af6b28f413b7a_rle_crop_3875406835_0.png.png imagette247037381751929141/1751928847_1930313_1371107421_5e06f1fd19f1d26bcff07881b0d04d7e_rle_crop_3875403390_0.png.png imagette247037381751929141/1751928847_1930313_1371107417_57752b5c65b4e52fd74679ba70292083_rle_crop_3875403403_0.png.png imagette247037381751929141/1751928847_1930313_1371107428_b8367b7b647e065b4df642e4a7cdb409_rle_crop_3875403368_0.png.png imagette247037381751929141/1751929046_3085033_1371107557_308f75443fa08dcb3d50fed3168bb408_rle_crop_3875412038_0.png.png imagette247037381751929141/1751929046_3085033_1371107567_1d2ff66dc39ddd2ff817a06e7463fde9_rle_crop_3875411995_0.png.png imagette247037381751929141/1751928847_1930313_1371107425_6cb301845f41c3db67d335fb82d34595_rle_crop_3875403378_0.png.png imagette247037381751929141/1751928926_1934509_1371107486_36629bd80708f1762dab857278ac7408_rle_crop_3875406467_0.png.png imagette247037381751929141/1751928926_3081902_1371107518_39ef1b9abd83a4a7c18e7fd3891f3598_rle_crop_3875406826_0.png.png imagette247037381751929141/1751929046_3085033_1371107561_b2b517c6e54225209e1db183e1fff875_rle_crop_3875412025_0.png.png imagette247037381751929141/1751929046_3085033_1371107561_b2b517c6e54225209e1db183e1fff875_rle_crop_3875412020_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6fa8035fcda3076bd4ec6fa8a6c1064f_92736979.png imagette247037381751929141 24703739 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=24703739 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371107917: '1751929046_3085033_1371107567_1d2ff66dc39ddd2ff817a06e7463fde9_rle_crop_3875411996_0.png', 1371107636: '1751928926_3081902_1371107531_c379f051c2931b92bab31c1add2172fa_rle_crop_3875406450_0.png', 1371107637: '1751928926_3081902_1371107527_4ff04a0cb8b8a9d148ad5962878e084a_rle_crop_3875406774_0.png', 1371107640: '1751928926_3081902_1371107527_4ff04a0cb8b8a9d148ad5962878e084a_rle_crop_3875406772_0.png', 1371107641: '1751928926_3081902_1371107523_bde68382ab4c1b9e94fde8367a0ab0c4_rle_crop_3875406808_0.png', 1371107642: '1751928926_3081902_1371107518_39ef1b9abd83a4a7c18e7fd3891f3598_rle_crop_3875406827_0.png', 1371107643: '1751928926_3081902_1371107518_39ef1b9abd83a4a7c18e7fd3891f3598_rle_crop_3875406823_0.png', 1371107659: '1751928965_1935854_1371107275_6875b82e76f8115e81f1ae4724b0a320_rle_crop_3875406967_0.png', 1371107660: '1751928965_1935854_1371107275_6875b82e76f8115e81f1ae4724b0a320_rle_crop_3875406964_0.png', 1371107635: '1751928926_3081902_1371107533_1141cbb4643424d29e059dedd077f1a5_rle_crop_3875406131_0.png', 1371107920: '1751929046_3085033_1371107567_1d2ff66dc39ddd2ff817a06e7463fde9_rle_crop_3875412000_0.png', 1371107922: '1751929046_3085033_1371107565_fe2970b4a475a4f99db072fa4d624a70_rle_crop_3875412014_0.png', 1371107924: '1751929046_3085033_1371107561_b2b517c6e54225209e1db183e1fff875_rle_crop_3875412028_0.png', 1371108166: '1751929086_1942819_1371107608_b7214a34c7993aa5ea3a5553ad3c4c29_rle_crop_3875413809_0.png', 1371108167: '1751929086_1942819_1371107604_a86c1631090e63bc50e6cc1caea46c01_rle_crop_3875413819_0.png', 1371108168: '1751929086_1942819_1371107601_046c2f66d8041583fda6fc70522e93ff_rle_crop_3875413828_0.png', 1371108169: '1751929086_1942819_1371107598_173a4b5abdc1de8f0e8f8eaf6cee4f12_rle_crop_3875413834_0.png', 1371108170: '1751929086_1942819_1371107598_173a4b5abdc1de8f0e8f8eaf6cee4f12_rle_crop_3875413832_0.png', 1371107570: '1751928847_1930313_1371107417_57752b5c65b4e52fd74679ba70292083_rle_crop_3875403409_0.png', 1371107410: '1751928568_3073172_1371107304_a32857fd89c53e6a259c804fdb7dda25_rle_crop_3875402657_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/be550d3fd861ef7fb934db9c7e0990f4_62084667.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/fff9f004c2c5a9978904e4274753a560_82592754.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e46ce50bf6e0b98200aad7804d0d6b9e_68250800.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1cb59dbbee119fc22901b73d773fde48_8256681.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/2dbff9c0ddd0addf9974114e2f5b7ef4_84110170.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a5a129307d10df621f0c9d936363be68_46441227.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5d8e84d89c5229a2ff15198e9953e91d_33014476.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7a3d2112a2d02d677bc5d3e3a87891f0_33871680.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b090678d1bfd2f27b91b2e6aa27a5ea9_38488887.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b3e0a9fc3648ba25a3faab3e161949bc_10625783.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/196a964c134599d92d6ac0af51ee2b95_22059398.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6a62d032092cc1153e49ceb7cc9e7c5c_50890935.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/23cec9c0c08796b391b1f72f518e477d_63810959.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/25299e5c50f35642b006d23dabda4b7a_13459385.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/73ce7afd47bb3fbe9f01a5bf74f57d9d_60398303.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/72f8ca615df095dbb95c8dae0b1b70e7_93405098.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/302c93de654c0e0b298054f93d593792_52386658.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/84b4ed6d955670e888ef431795b105db_24508784.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a427ed191540942e8b985ec6e9c22366_13869474.png change filename to text .imagette247037391751929142/ imagette247037391751929142/1751928926_3081902_1371107523_bde68382ab4c1b9e94fde8367a0ab0c4_rle_crop_3875406808_0.png.png imagette247037391751929142/1751928926_3081902_1371107527_4ff04a0cb8b8a9d148ad5962878e084a_rle_crop_3875406774_0.png.png imagette247037391751929142/1751929086_1942819_1371107604_a86c1631090e63bc50e6cc1caea46c01_rle_crop_3875413819_0.png.png imagette247037391751929142/1751928926_3081902_1371107518_39ef1b9abd83a4a7c18e7fd3891f3598_rle_crop_3875406823_0.png.png imagette247037391751929142/1751929086_1942819_1371107601_046c2f66d8041583fda6fc70522e93ff_rle_crop_3875413828_0.png.png imagette247037391751929142/1751928926_3081902_1371107527_4ff04a0cb8b8a9d148ad5962878e084a_rle_crop_3875406772_0.png.png imagette247037391751929142/1751929046_3085033_1371107567_1d2ff66dc39ddd2ff817a06e7463fde9_rle_crop_3875411996_0.png.png imagette247037391751929142/1751928847_1930313_1371107417_57752b5c65b4e52fd74679ba70292083_rle_crop_3875403409_0.png.png imagette247037391751929142/1751928926_3081902_1371107533_1141cbb4643424d29e059dedd077f1a5_rle_crop_3875406131_0.png.png imagette247037391751929142/1751929046_3085033_1371107561_b2b517c6e54225209e1db183e1fff875_rle_crop_3875412028_0.png.png imagette247037391751929142/1751928926_3081902_1371107531_c379f051c2931b92bab31c1add2172fa_rle_crop_3875406450_0.png.png imagette247037391751929142/1751929046_3085033_1371107565_fe2970b4a475a4f99db072fa4d624a70_rle_crop_3875412014_0.png.png imagette247037391751929142/1751928926_3081902_1371107518_39ef1b9abd83a4a7c18e7fd3891f3598_rle_crop_3875406827_0.png.png imagette247037391751929142/1751929086_1942819_1371107608_b7214a34c7993aa5ea3a5553ad3c4c29_rle_crop_3875413809_0.png.png imagette247037391751929142/1751928965_1935854_1371107275_6875b82e76f8115e81f1ae4724b0a320_rle_crop_3875406967_0.png.png imagette247037391751929142/1751929086_1942819_1371107598_173a4b5abdc1de8f0e8f8eaf6cee4f12_rle_crop_3875413832_0.png.png imagette247037391751929142/1751929046_3085033_1371107567_1d2ff66dc39ddd2ff817a06e7463fde9_rle_crop_3875412000_0.png.png imagette247037391751929142/1751928568_3073172_1371107304_a32857fd89c53e6a259c804fdb7dda25_rle_crop_3875402657_0.png.png imagette247037391751929142/1751928965_1935854_1371107275_6875b82e76f8115e81f1ae4724b0a320_rle_crop_3875406964_0.png.png imagette247037391751929142/1751929086_1942819_1371107598_173a4b5abdc1de8f0e8f8eaf6cee4f12_rle_crop_3875413834_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/79f036935faa30a56c21a1d9cc4b87b7_75496367.png imagette247037391751929142 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24703713 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24703740,24703741,24703742,24703743,24703744,24703745,24703746,24703747,24703748,24703749,24703750,24703751?tags=Carton_brun,mal_croppe,autre_refus,cartonnette,plastique,metal,environnement,papier,kraft,flou,Carton_gris,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1371107694] : ('0.03116704179804264',) no score found for photo 1371107694 We are sending mail with results at report@fotonower.com args[1371107689] : ('0.03116704179804264',) no score found for photo 1371107689 We are sending mail with results at report@fotonower.com args[1371107686] : ('0.03116704179804264',) no score found for photo 1371107686 We are sending mail with results at report@fotonower.com args[1371107682] : ('0.03116704179804264',) no score found for photo 1371107682 We are sending mail with results at report@fotonower.com args[1371107674] : ('0.03116704179804264',) no score found for photo 1371107674 We are sending mail with results at report@fotonower.com args[1371107670] : ('0.03116704179804264',) no score found for photo 1371107670 We are sending mail with results at report@fotonower.com args[1371107656] : ('0.03116704179804264',) no score found for photo 1371107656 We are sending mail with results at report@fotonower.com args[1371107654] : ('0.03116704179804264',) no score found for photo 1371107654 We are sending mail with results at report@fotonower.com args[1371107649] : ('0.03116704179804264',) no score found for photo 1371107649 We are sending mail with results at report@fotonower.com args[1371107638] : ('0.03116704179804264',) no score found for photo 1371107638 We are sending mail with results at report@fotonower.com args[1371107627] : ('0.03116704179804264',) no score found for photo 1371107627 We are sending mail with results at report@fotonower.com args[1371107616] : ('0.03116704179804264',) no score found for photo 1371107616 We are sending mail with results at report@fotonower.com refus_total : 0.03116704179804264 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=24703713 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_P24703713_08-07-2025_00_59_00.pdf results_Auto_P24703713_08-07-2025_00_59_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_00_59_00.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','24703713','results_Auto_P24703713_08-07-2025_00_59_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_00_59_00.pdf','pdf','','0.21','0.03116704179804264') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24703713]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616] map_info['map_portfolio_photo'] : {24703713: [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616, 1371107613, 1371107611, 1371107608, 1371107604, 1371107601, 1371107598, 1371107567, 1371107565, 1371107561, 1371107557, 1371107546, 1371107542, 1371107533, 1371107531, 1371107527, 1371107523, 1371107518, 1371107513, 1371107502, 1371107500, 1371107496, 1371107491, 1371107486, 1371107481, 1371107471, 1371107468, 1371107464, 1371107459, 1371107455, 1371107450, 1371107434, 1371107431, 1371107428, 1371107425, 1371107421, 1371107417, 1371107400, 1371107399, 1371107395, 1371107391, 1371107386, 1371107381, 1371107360, 1371107359, 1371107356, 1371107352, 1371107341, 1371107333, 1371107311, 1371107309, 1371107307, 1371107304, 1371107302, 1371107293, 1371107276, 1371107275, 1371107273, 1371107271, 1371107264, 1371107259]} final : False mtd_id 4302 list_pids : [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616] 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, '3248233') ('4302', '24703713', '1371107694', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107689', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107686', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107682', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107674', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107670', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107656', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107654', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107649', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107638', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107627', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107616', None, None, None, None, None, '3248233') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '24703713', '1371107694', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107689', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107686', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107682', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107674', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107670', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107656', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107654', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107649', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107638', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107627', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107616', None, None, None, None, None, '3248233')] time used for this insertion : 0.016768217086791992 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9722797870635986 time spend to save output : 0.017061948776245117 total time spend for step 4 : 3.9893417358398438 step5:split_time_score Tue Jul 8 00:59:04 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 : ['24703713'] 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 : [('24703713',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24703713) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371107670: {'path': 'temp/1751929140_1013231_1371107670_ec7d65f08ce6830de06d9107cb5a0082.jpg', 'extension': 'jpg'}, 1371107674: {'path': 'temp/1751929140_1013231_1371107674_b9cd10f009eed9c3a9fc4b3b2e0dde5c.jpg', 'extension': 'jpg'}, 1371107682: {'path': 'temp/1751929140_1013231_1371107682_f8f317c867f96c2f589a86d4676b2dd7.jpg', 'extension': 'jpg'}, 1371107616: {'path': 'temp/1751929140_1013231_1371107616_5c9fd7d2f45544ff61c410ea2fb11da5.jpg', 'extension': 'jpg'}, 1371107627: {'path': 'temp/1751929140_1013231_1371107627_7b6de9001a84477993d3ba49537250c4.jpg', 'extension': 'jpg'}, 1371107638: {'path': 'temp/1751929140_1013231_1371107638_3e726bc77c6b9cad780faa2b5cf0a005.jpg', 'extension': 'jpg'}, 1371107686: {'path': 'temp/1751929140_1013231_1371107686_848633fa00a90220dcd971a82bb5e563.jpg', 'extension': 'jpg'}, 1371107689: {'path': 'temp/1751929140_1013231_1371107689_5ac29166b6a16741edea5a82546c0599.jpg', 'extension': 'jpg'}, 1371107694: {'path': 'temp/1751929140_1013231_1371107694_5203e72f8a65c9ad38e05cb02f934457.jpg', 'extension': 'jpg'}, 1371107649: {'path': 'temp/1751929140_1013231_1371107649_cd92fc05991f3bd231ee928e3473cf27.jpg', 'extension': 'jpg'}, 1371107654: {'path': 'temp/1751929140_1013231_1371107654_05179bfc9d30471044d1de180b6267e9.jpg', 'extension': 'jpg'}, 1371107656: {'path': 'temp/1751929140_1013231_1371107656_398995490b5b46c404adefa87beefc1c.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 = 24703713; (('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 = 24703713 group by h (('00', 72),) 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=24703713 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 (24703713) 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 (24703713) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08072025 24703713 Nombre de photos uploadées : 72 / 23040 (0%) 08072025 24703713 Nombre de photos taguées (types de déchets): 0 / 72 (0%) 08072025 24703713 Nombre de photos taguées (volume) : 0 / 72 (0%) [{'photo_id': 1371107276, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e1180c0535c4d2fb2cc44fbf726b28fa.jpg', 'username': None, 'uploaded_at': 1751928363, 'text': 'image_08072025_00_45_03_009135m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1371107275, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6875b82e76f8115e81f1ae4724b0a320.jpg', 'username': None, 'uploaded_at': 1751928363, 'text': 'image_08072025_00_45_13_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371107273, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5199be945539ebd73073aaebe3a1af6f.jpg', 'username': None, 'uploaded_at': 1751928363, 'text': 'image_08072025_00_45_23_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371107271, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/245b441d39d4f639e54b3d9b86615697.jpg', 'username': None, 'uploaded_at': 1751928363, 'text': 'image_08072025_00_45_34_010133m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ???????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032339096069335938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 24703713, '2025-07-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1960361,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027670860290527344 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= 1960361 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1960361, 'dashboard_run_id': 1967903, 'mtr_portfolio_id': 24702229, 'dashboard_result_id': 12255727, '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_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}"}, {'dashboat_entry_day': 1960361, 'dashboard_run_id': 1967903, 'mtr_portfolio_id': 24702755, 'dashboard_result_id': 12255728, '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_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}"}, {'dashboat_entry_day': 1960361, 'dashboard_run_id': 1967903, 'mtr_portfolio_id': 24703205, 'dashboard_result_id': 12255729, '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_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}"}, {'dashboat_entry_day': 1960361, 'dashboard_run_id': 1967903, 'mtr_portfolio_id': 24703713, 'dashboard_result_id': 12255730, '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_P24703713_08-07-2025_00_56_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24702229 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': 3248100, 'mtr_portfolio_id': 24702229, 'created_at': datetime.datetime(2025, 7, 8, 0, 16, 29), 'result': '0.03432764518805383', 'result_long': None, 'result_double': None}] Qualite : 0.03432764518805383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_00_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702229 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_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}" where mtr_portfolio_id = 24702229 and dashboard_run_id = 1967903 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`=24702229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12255727, 0.03432764518805383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, '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 = 24702755 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': 3248151, 'mtr_portfolio_id': 24702755, 'created_at': datetime.datetime(2025, 7, 8, 0, 32, 58), 'result': '0.029028561484370358', 'result_long': None, 'result_double': None}] Qualite : 0.029028561484370358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702755 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_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}" where mtr_portfolio_id = 24702755 and dashboard_run_id = 1967903 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`=24702755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12255728, 0.029028561484370358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, '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 = 24703205 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': 3248189, 'mtr_portfolio_id': 24703205, 'created_at': datetime.datetime(2025, 7, 8, 0, 46, 30), 'result': '0.0338677238874439', 'result_long': None, 'result_double': None}] Qualite : 0.0338677238874439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_00_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703205 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_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}" where mtr_portfolio_id = 24703205 and dashboard_run_id = 1967903 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`=24703205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12255729, 0.0338677238874439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, '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 = 24703713 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': 3248233, 'mtr_portfolio_id': 24703713, 'created_at': datetime.datetime(2025, 7, 8, 0, 58, 59), 'result': '0.03116704179804264', 'result_long': None, 'result_double': None}] Qualite : 0.03116704179804264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_00_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703713 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_P24703713_08-07-2025_00_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}" where mtr_portfolio_id = 24703713 and dashboard_run_id = 1967903 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`=24703713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12255730, 0.03116704179804264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_00_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24702229,24702755,24703205,24703713) result : ((1371103946,), (1371103951,), (1371103984,), (1371103989,), (1371103998,), (1371104125,), (1371104160,), (1371104195,), (1371104223,), (1371104232,), (1371104236,), (1371104398,), (1371104404,), (1371104407,), (1371104408,), (1371104411,), (1371104414,), (1371104420,), (1371104422,), (1371104424,), (1371104427,), (1371104430,), (1371104432,), (1371104435,), (1371104437,), (1371104440,), (1371104443,), (1371104445,), (1371104449,), (1371104484,), (1371104486,), (1371104489,), (1371104496,), (1371104533,), (1371104536,), (1371104541,), (1371104546,), (1371104549,), (1371104578,), (1371104613,), (1371104634,), (1371104648,), (1371104658,), (1371104662,), (1371104667,), (1371104671,), (1371104674,), (1371104686,), (1371104690,), (1371104695,), (1371104701,), (1371104711,), (1371104713,), (1371104734,), (1371104740,), (1371104745,), (1371104750,), (1371104753,), (1371104754,), (1371104789,), (1371104792,), (1371104795,), (1371104798,), (1371104800,), (1371104803,), (1371104825,), (1371104831,), (1371104833,), (1371104835,), (1371104837,), (1371104845,), (1371104874,), (1371104891,), (1371104896,), (1371104899,), (1371104902,), (1371104920,), (1371104959,), (1371104970,), (1371104973,), (1371104977,), (1371104980,), (1371104982,), (1371104990,), (1371104994,), (1371104999,), (1371105001,), (1371105004,), (1371105006,), (1371105016,), (1371105025,), (1371105029,), (1371105034,), (1371105039,), (1371105041,), (1371105058,), (1371105063,), (1371105066,), (1371105069,), (1371105076,), (1371105082,), (1371105095,), (1371105103,), (1371105106,), (1371105108,), (1371105110,), (1371105111,), (1371105131,), (1371105135,), (1371105141,), (1371105146,), (1371105150,), (1371105153,), (1371105163,), (1371105177,), (1371105189,), (1371105191,), (1371105194,), (1371105195,), (1371105216,), (1371105220,), (1371105224,), (1371105227,), (1371105231,), (1371105234,), (1371105244,), (1371105258,), (1371105268,), (1371105271,), (1371105274,), (1371105276,), (1371105308,), (1371105311,), (1371105316,), (1371105319,), (1371105323,), (1371105326,), (1371105336,), (1371105350,), (1371105352,), (1371105354,), (1371105357,), (1371105360,), (1371105382,), (1371105386,), (1371105390,), (1371105394,), (1371105398,), (1371105400,), (1371105425,), (1371105437,), (1371105444,), (1371105448,), (1371105451,), (1371105453,), (1371105473,), (1371105478,), (1371105482,), (1371105486,), (1371105489,), (1371105492,), (1371105506,), (1371105513,), (1371105520,), (1371105530,), (1371105534,), (1371105535,), (1371105575,), (1371105584,), (1371105597,), (1371105599,), (1371105601,), (1371105602,), (1371105655,), (1371105665,), (1371105715,), (1371105727,), (1371105731,), (1371105732,), (1371105757,), (1371105826,), (1371105830,), (1371105833,), (1371105845,), (1371105857,), (1371105896,), (1371105921,), (1371105925,), (1371105940,), (1371105948,), (1371105950,), (1371106000,), (1371106003,), (1371106007,), (1371106010,), (1371106013,), (1371106017,), (1371106186,), (1371106226,), (1371106262,), (1371106296,), (1371106330,), (1371106362,), (1371106568,), (1371106605,), (1371106636,), (1371106641,), (1371106645,), (1371106647,), (1371106683,), (1371106718,), (1371106760,), (1371106796,), (1371106827,), (1371106839,), (1371106906,), (1371106910,), (1371106914,), (1371106919,), (1371106924,), (1371106927,), (1371106941,), (1371106952,), (1371106957,), (1371106966,), (1371106969,), (1371106971,), (1371106984,), (1371106989,), (1371106992,), (1371106998,), (1371107002,), (1371107004,), (1371107018,), (1371107032,), (1371107037,), (1371107041,), (1371107045,), (1371107048,), (1371107069,), (1371107074,), (1371107077,), (1371107081,), (1371107082,), (1371107090,), (1371107118,), (1371107122,), (1371107127,), (1371107129,), (1371107131,), (1371107132,), (1371107145,), (1371107156,), (1371107160,), (1371107163,), (1371107165,), (1371107166,), (1371107186,), (1371107189,), (1371107193,), (1371107196,), (1371107199,), (1371107202,), (1371107212,), (1371107217,), (1371107222,), (1371107227,), (1371107238,), (1371107240,), (1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08072025': {'nb_upload': 72, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24703713]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616] map_info['map_portfolio_photo'] : {24703713: [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616, 1371107613, 1371107611, 1371107608, 1371107604, 1371107601, 1371107598, 1371107567, 1371107565, 1371107561, 1371107557, 1371107546, 1371107542, 1371107533, 1371107531, 1371107527, 1371107523, 1371107518, 1371107513, 1371107502, 1371107500, 1371107496, 1371107491, 1371107486, 1371107481, 1371107471, 1371107468, 1371107464, 1371107459, 1371107455, 1371107450, 1371107434, 1371107431, 1371107428, 1371107425, 1371107421, 1371107417, 1371107400, 1371107399, 1371107395, 1371107391, 1371107386, 1371107381, 1371107360, 1371107359, 1371107356, 1371107352, 1371107341, 1371107333, 1371107311, 1371107309, 1371107307, 1371107304, 1371107302, 1371107293, 1371107276, 1371107275, 1371107273, 1371107271, 1371107264, 1371107259]} final : True mtd_id 4302 list_pids : [1371107694, 1371107689, 1371107686, 1371107682, 1371107674, 1371107670, 1371107656, 1371107654, 1371107649, 1371107638, 1371107627, 1371107616] Looping around the photos to save general results len do output : 1 /24703713Didn'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, '3248233') ('4302', '24703713', '1371107694', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107689', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107686', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107682', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107674', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107670', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107656', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107654', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107649', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107638', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107627', None, None, None, None, None, '3248233') ('4302', None, None, None, None, None, None, None, '3248233') ('4302', '24703713', '1371107616', None, None, None, None, None, '3248233') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24703713', 'None', None, None, None, None, '3248233'), ('4302', '24703713', '1371107694', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107689', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107686', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107682', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107674', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107670', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107656', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107654', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107649', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107638', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107627', None, None, None, None, None, '3248233'), ('4302', '24703713', '1371107616', None, None, None, None, None, '3248233')] time used for this insertion : 0.0834801197052002 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3812265396118164 time spend to save output : 0.08376049995422363 total time spend for step 5 : 0.46498703956604004 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 (3248233) 2.07user 2.50system 0:09.47elapsed 48%CPU (0avgtext+0avgdata 161372maxresident)k 16inputs+11096outputs (3major+64267minor)pagefaults 0swaps