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 : 377996 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 (2612457) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2612457) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799638 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2612457'] with mtr_portfolio_ids : ['20799638'] and first list_photo_ids : [] new path : /proc/377996/ Name: python3 Umask: 0002 State: R (running) Tgid: 377996 Ngid: 0 Pid: 377996 PPid: 377992 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 377996 NSpid: 377996 NSpgid: 376344 NSsid: 376344 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98916 kB VmRSS: 98916 kB RssAnon: 59764 kB RssFile: 39152 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 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: 48 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '377996', 'Ngid': '0', 'Pid': '377996', 'PPid': '377992', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '377996', 'NSpid': '377996', 'NSpgid': '376344', 'NSsid': '376344', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98916 kB', 'VmRSS': '98916 kB', 'RssAnon': '59764 kB', 'RssFile': '39152 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', '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': '48', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '377996', '1106844', '0', '1106844', '865592', '98916', b'', 'marlene', '2612457') 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 (20799638) 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 (2612457 ) ) 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 (20799638) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339526203, 'portfolio_id': 20799638}, {'photo_id': 1339526200, 'portfolio_id': 20799638}, {'photo_id': 1339526196, 'portfolio_id': 20799638}, {'photo_id': 1339526191, 'portfolio_id': 20799638}, {'photo_id': 1339526186, 'portfolio_id': 20799638}, {'photo_id': 1339526174, 'portfolio_id': 20799638}, {'photo_id': 1339526151, 'portfolio_id': 20799638}, {'photo_id': 1339526147, 'portfolio_id': 20799638}, {'photo_id': 1339526142, 'portfolio_id': 20799638}, {'photo_id': 1339526136, 'portfolio_id': 20799638}, {'photo_id': 1339526124, 'portfolio_id': 20799638}, {'photo_id': 1339526103, 'portfolio_id': 20799638}, {'photo_id': 1339526098, 'portfolio_id': 20799638}, {'photo_id': 1339526094, 'portfolio_id': 20799638}, {'photo_id': 1339526078, 'portfolio_id': 20799638}, {'photo_id': 1339526070, 'portfolio_id': 20799638}, {'photo_id': 1339526065, 'portfolio_id': 20799638}, {'photo_id': 1339525960, 'portfolio_id': 20799638}, {'photo_id': 1339525957, 'portfolio_id': 20799638}, {'photo_id': 1339525949, 'portfolio_id': 20799638}, {'photo_id': 1339525939, 'portfolio_id': 20799638}] map_portfolio_id_photo_id: {20799638: [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939]} ##### 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.014557838439941406 #### 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 Feb 25 10:51:30 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 (20799638) 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 : 20799638 get user id for portfolio 20799638 get sub ptf for main ptf 20799638, type 3726 and hashtags ['cartonnette', 'environnement', 'papier', 'plastique', 'autre_refus', 'Teint_Dans_La_Masse', 'kraft', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'flou', 'metal'] 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`=20799638 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','papier','plastique','autre_refus','Teint_Dans_La_Masse','kraft','mal_croppe','Carton_brun','Carton_gris','flou','metal')) 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`=20799638 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','papier','plastique','autre_refus','Teint_Dans_La_Masse','kraft','mal_croppe','Carton_brun','Carton_gris','flou','metal')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[20799638, 20799688, 3726, 0.5, 702398920, 979], [20799638, 20799689, 3726, 0.5, 493012381, 979], [20799638, 20799690, 3726, 0.5, 492668766, 979], [20799638, 20799691, 3726, 0.5, 492725882, 979], [20799638, 20799692, 3726, 0.5, 2107752406, 979], [20799638, 20799693, 3726, 0.5, 2107752385, 979], [20799638, 20799694, 3726, 0.5, 493202403, 979], [20799638, 20799695, 3726, 0.5, 2107755527, 979], [20799638, 20799696, 3726, 0.5, 2107753024, 979], [20799638, 20799697, 3726, 0.5, 2107753020, 979], [20799638, 20799698, 3726, 0.5, 492777938, 979], [20799638, 20799699, 3726, 0.5, 492628673, 979]] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20799638 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','papier','plastique','autre_refus','Teint_Dans_La_Masse','kraft','mal_croppe','Carton_brun','Carton_gris','flou','metal')) 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`=20799638 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','papier','plastique','autre_refus','Teint_Dans_La_Masse','kraft','mal_croppe','Carton_brun','Carton_gris','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20799638, 'sub_port_id': 20799688, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437599, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}, 'environnement': {'main_port_id': 20799638, 'sub_port_id': 20799689, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437600, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}, 'papier': {'main_port_id': 20799638, 'sub_port_id': 20799690, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437601, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}, 'plastique': {'main_port_id': 20799638, 'sub_port_id': 20799691, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437602, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}, 'autre_refus': {'main_port_id': 20799638, 'sub_port_id': 20799692, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437603, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20799638, 'sub_port_id': 20799693, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437604, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}, 'kraft': {'main_port_id': 20799638, 'sub_port_id': 20799694, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437605, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}, 'mal_croppe': {'main_port_id': 20799638, 'sub_port_id': 20799695, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437606, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}, 'Carton_brun': {'main_port_id': 20799638, 'sub_port_id': 20799696, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437607, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}, 'Carton_gris': {'main_port_id': 20799638, 'sub_port_id': 20799697, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437608, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}, 'flou': {'main_port_id': 20799638, 'sub_port_id': 20799698, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437609, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}, 'metal': {'main_port_id': 20799638, 'sub_port_id': 20799699, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437610, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20799688 , 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=20799638 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 (20799688) result : ((1339526221,), (1339526222,), (1339526223,), (1339526242,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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 20799689 , 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=20799638 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 (20799689) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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 20799690 , 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=20799638 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 (20799690) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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 20799691 , 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=20799638 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 (20799691) result : ((1339526228,), (1339526247,), (1339526248,), (1339526249,), (1339526250,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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 20799692 , 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=20799638 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 (20799692) result : ((1339526216,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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 20799693 , 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=20799638 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 (20799693) result : ((1339526212,), (1339526213,), (1339526214,), (1339526215,), (1339526236,), (1339526237,), (1339526238,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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 20799694 , 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=20799638 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 (20799694) result : ((1339526252,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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 20799695 , 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=20799638 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 (20799695) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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 20799696 , 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=20799638 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 (20799696) result : ((1339526224,), (1339526244,), (1339526245,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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 20799697 , 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=20799638 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 (20799697) result : ((1339526219,), (1339526220,), (1339526239,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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 20799698 , 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=20799638 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 (20799698) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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 20799699 , 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=20799638 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 (20799699) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20799638) result : ((1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) 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 (1339526200) 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`=20799638 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','papier','plastique','autre_refus','Teint_Dans_La_Masse','kraft','mal_croppe','Carton_brun','Carton_gris','flou','metal')) 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`=20799638 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','papier','plastique','autre_refus','Teint_Dans_La_Masse','kraft','mal_croppe','Carton_brun','Carton_gris','flou','metal')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25022025_10_45_04_10151_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[20799638, 20799700, 4417, 0.5, 702398920, 979], [20799638, 20799701, 4417, 0.5, 493012381, 979], [20799638, 20799702, 4417, 0.5, 492668766, 979], [20799638, 20799703, 4417, 0.5, 492725882, 979], [20799638, 20799704, 4417, 0.5, 2107752406, 979], [20799638, 20799705, 4417, 0.5, 2107752385, 979], [20799638, 20799706, 4417, 0.5, 493202403, 979], [20799638, 20799707, 4417, 0.5, 2107755527, 979], [20799638, 20799708, 4417, 0.5, 2107753024, 979], [20799638, 20799709, 4417, 0.5, 2107753020, 979], [20799638, 20799710, 4417, 0.5, 492777938, 979], [20799638, 20799711, 4417, 0.5, 492628673, 979]] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20799638 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','papier','plastique','autre_refus','Teint_Dans_La_Masse','kraft','mal_croppe','Carton_brun','Carton_gris','flou','metal')) 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`=20799638 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','papier','plastique','autre_refus','Teint_Dans_La_Masse','kraft','mal_croppe','Carton_brun','Carton_gris','flou','metal')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20799638, 'sub_port_id': 20799700, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437611, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}, 'environnement': {'main_port_id': 20799638, 'sub_port_id': 20799701, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437612, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}, 'papier': {'main_port_id': 20799638, 'sub_port_id': 20799702, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437613, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}, 'plastique': {'main_port_id': 20799638, 'sub_port_id': 20799703, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437614, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}, 'autre_refus': {'main_port_id': 20799638, 'sub_port_id': 20799704, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437615, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 20799638, 'sub_port_id': 20799705, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437616, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}, 'kraft': {'main_port_id': 20799638, 'sub_port_id': 20799706, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437617, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}, 'mal_croppe': {'main_port_id': 20799638, 'sub_port_id': 20799707, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437618, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}, 'Carton_brun': {'main_port_id': 20799638, 'sub_port_id': 20799708, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437619, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}, 'Carton_gris': {'main_port_id': 20799638, 'sub_port_id': 20799709, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437620, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}, 'flou': {'main_port_id': 20799638, 'sub_port_id': 20799710, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437621, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}, 'metal': {'main_port_id': 20799638, 'sub_port_id': 20799711, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13437622, 'last_updated_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 10, 51, 32), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 10, 51, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799700,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799688 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799701,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799689 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799702,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799690 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799703,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799691 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799704,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799692 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799705,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799693 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799706,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799694 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799707,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799695 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799708,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799696 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799709,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799697 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799710,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799698 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20799711,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20799699 lien utilise dans velours : https://www.fotonower.com/velours/20799700,20799701,20799702,20799703,20799704,20799705,20799706,20799707,20799708,20799709,20799710,20799711?tags=cartonnette,environnement,papier,plastique,autre_refus,Teint_Dans_La_Masse,kraft,mal_croppe,Carton_brun,Carton_gris,flou,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20799638]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939] map_info['map_portfolio_photo'] : {20799638: [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939]} final : False mtd_id 4302 list_pids : [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939] Looping around the photos to save general results len do output : 1 /20799638. 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, '2612457') ('4302', '20799638', '1339526203', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526200', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526196', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526191', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526186', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526174', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526151', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526147', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526142', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526136', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526124', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526103', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526098', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526094', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526078', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526070', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526065', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525960', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525957', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525949', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525939', None, None, None, None, None, '2612457') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '20799638', "{'cartonnette': 20799688, 'environnement': 20799689, 'papier': 20799690, 'plastique': 20799691, 'autre_refus': 20799692, 'Teint_Dans_La_Masse': 20799693, 'kraft': 20799694, 'mal_croppe': 20799695, 'Carton_brun': 20799696, 'Carton_gris': 20799697, 'flou': 20799698, 'metal': 20799699}", None, None, None, None, '2612457'), ('4302', '20799638', '1339526203', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526200', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526196', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526191', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526186', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526174', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526151', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526147', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526142', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526136', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526124', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526103', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526098', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526094', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526078', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526070', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526065', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525960', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525957', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525949', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525939', None, None, None, None, None, '2612457')] time used for this insertion : 0.01576995849609375 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.040771245956421 time spend to save output : 0.016163349151611328 total time spend for step 1 : 2.0569345951080322 step2:final Tue Feb 25 10:51:32 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 (20799638) 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 20799638 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339525960,1339525957,1339525949,1339525939,1339526103,1339526098,1339526094,1339526078,1339526070,1339526065,1339526151,1339526147,1339526142,1339526136,1339526124,1339526203,1339526200,1339526196,1339526191,1339526174,1339526186); 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([20799638]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} new output for save of step final : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939] map_info['map_portfolio_photo'] : {20799638: [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939]} final : False mtd_id 4302 list_pids : [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939] Looping around the photos to save general results len do output : 21 /1339526203.Didn't retrieve data . /1339526200.Didn't retrieve data . /1339526196.Didn't retrieve data . /1339526191.Didn't retrieve data . /1339526186.Didn't retrieve data . /1339526174.Didn't retrieve data . /1339526151.Didn't retrieve data . /1339526147.Didn't retrieve data . /1339526142.Didn't retrieve data . /1339526136.Didn't retrieve data . /1339526124.Didn't retrieve data . /1339526103.Didn't retrieve data . /1339526098.Didn't retrieve data . /1339526094.Didn't retrieve data . /1339526078.Didn't retrieve data . /1339526070.Didn't retrieve data . /1339526065.Didn't retrieve data . /1339525960.Didn't retrieve data . /1339525957.Didn't retrieve data . /1339525949.Didn't retrieve data . /1339525939.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, '2612457') ('4302', '20799638', '1339526203', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526200', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526196', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526191', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526186', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526174', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526151', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526147', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526142', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526136', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526124', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526103', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526098', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526094', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526078', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526070', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526065', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525960', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525957', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525949', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525939', None, None, None, None, None, '2612457') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '20799638', '1339526203', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526200', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526196', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526191', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526186', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526174', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526151', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526147', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526142', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526136', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526124', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526103', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526098', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526094', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526078', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526070', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339526065', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339525960', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339525957', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339525949', '0.04166991655844001', None, None, None, None, '2612457'), ('4302', '20799638', '1339525939', '0.04166991655844001', None, None, None, None, '2612457')] time used for this insertion : 0.015049219131469727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.028625965118408203 time spend to save output : 0.016022920608520508 total time spend for step 2 : 0.04464888572692871 step3:velours_tree Tue Feb 25 10:51:32 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 : {20799638: [{'cartonnette': 20799688, 'environnement': 20799689, 'papier': 20799690, 'plastique': 20799691, 'autre_refus': 20799692, 'Teint_Dans_La_Masse': 20799693, 'kraft': 20799694, 'mal_croppe': 20799695, 'Carton_brun': 20799696, 'Carton_gris': 20799697, 'flou': 20799698, 'metal': 20799699}]} input_args_next_step : {20799638: ()} output_args : {20799638: [{'cartonnette': 20799688, 'environnement': 20799689, 'papier': 20799690, 'plastique': 20799691, 'autre_refus': 20799692, 'Teint_Dans_La_Masse': 20799693, 'kraft': 20799694, 'mal_croppe': 20799695, 'Carton_brun': 20799696, 'Carton_gris': 20799697, 'flou': 20799698, 'metal': 20799699}]} args : 20799638 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 20799688, 'environnement': 20799689, 'papier': 20799690, 'plastique': 20799691, 'autre_refus': 20799692, 'Teint_Dans_La_Masse': 20799693, 'kraft': 20799694, 'mal_croppe': 20799695, 'Carton_brun': 20799696, 'Carton_gris': 20799697, 'flou': 20799698, 'metal': 20799699},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20799638) 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([20799638]) 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.2837536334991455 time spend to save output : 4.982948303222656e-05 total time spend for step 3 : 0.28380346298217773 step4:send_mail_cod Tue Feb 25 10:51:32 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 : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} input_args_next_step : {1339526203: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526203 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526200 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526196 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526191 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526186 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526174 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526151 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526147 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526142 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526136 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526124 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526103 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526098 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526094 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526078 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526070 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339526065 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339525960 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339525957 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339525949 depend.output_id : 0 input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ()} output_args : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',)} args : 1339525939 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 : {20799638: [{'cartonnette': 20799688, 'environnement': 20799689, 'papier': 20799690, 'plastique': 20799691, 'autre_refus': 20799692, 'Teint_Dans_La_Masse': 20799693, 'kraft': 20799694, 'mal_croppe': 20799695, 'Carton_brun': 20799696, 'Carton_gris': 20799697, 'flou': 20799698, 'metal': 20799699}]} input_args_next_step : {1339526203: ('0.04166991655844001',), 1339526200: ('0.04166991655844001',), 1339526196: ('0.04166991655844001',), 1339526191: ('0.04166991655844001',), 1339526186: ('0.04166991655844001',), 1339526174: ('0.04166991655844001',), 1339526151: ('0.04166991655844001',), 1339526147: ('0.04166991655844001',), 1339526142: ('0.04166991655844001',), 1339526136: ('0.04166991655844001',), 1339526124: ('0.04166991655844001',), 1339526103: ('0.04166991655844001',), 1339526098: ('0.04166991655844001',), 1339526094: ('0.04166991655844001',), 1339526078: ('0.04166991655844001',), 1339526070: ('0.04166991655844001',), 1339526065: ('0.04166991655844001',), 1339525960: ('0.04166991655844001',), 1339525957: ('0.04166991655844001',), 1339525949: ('0.04166991655844001',), 1339525939: ('0.04166991655844001',), 20799638: ()} output_args : {20799638: [{'cartonnette': 20799688, 'environnement': 20799689, 'papier': 20799690, 'plastique': 20799691, 'autre_refus': 20799692, 'Teint_Dans_La_Masse': 20799693, 'kraft': 20799694, 'mal_croppe': 20799695, 'Carton_brun': 20799696, 'Carton_gris': 20799697, 'flou': 20799698, 'metal': 20799699}]} args : 20799638 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 :22, first value : ('0.04166991655844001',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20799638) 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 (1339526203,1339526200,1339526196,1339526191,1339526186,1339526174,1339526151,1339526147,1339526142,1339526136,1339526124,1339526103,1339526098,1339526094,1339526078,1339526070,1339526065,1339525960,1339525957,1339525949,1339525939) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339525939 begin to download photo : 1339526070 begin to download photo : 1339526124 begin to download photo : 1339526174 begin to download photo : 1339526203 download finish for photo 1339526070 begin to download photo : 1339526078 download finish for photo 1339526203 download finish for photo 1339525939 begin to download photo : 1339525949 download finish for photo 1339526174 begin to download photo : 1339526186 download finish for photo 1339526124 begin to download photo : 1339526136 download finish for photo 1339526078 begin to download photo : 1339526094 download finish for photo 1339525949 begin to download photo : 1339525957 download finish for photo 1339526186 begin to download photo : 1339526191 download finish for photo 1339526136 begin to download photo : 1339526142 download finish for photo 1339526094 begin to download photo : 1339526098 download finish for photo 1339526142 begin to download photo : 1339526147 download finish for photo 1339526191 begin to download photo : 1339526196 download finish for photo 1339525957 begin to download photo : 1339525960 download finish for photo 1339526098 begin to download photo : 1339526103 download finish for photo 1339526196 begin to download photo : 1339526200 download finish for photo 1339525960 begin to download photo : 1339526065 download finish for photo 1339526147 begin to download photo : 1339526151 download finish for photo 1339526103 download finish for photo 1339526200 download finish for photo 1339526151 download finish for photo 1339526065 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P20799638_25-02-2025_10_51_33.pdf 20799688 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=20799688 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339526221: '1740476944_1277079_1339525960_17ab1578bbe6b23f182e6d675e6dd48c_rle_crop_3686315331_0.png', 1339526222: '1740476944_1277079_1339525957_704e28945246789f459f1772c72543eb_rle_crop_3686315346_0.png', 1339526223: '1740476944_1277079_1339525939_e96926f3835fcf3ec3b576ffdc0db02b_rle_crop_3686315376_0.png', 1339526242: '1740476954_1277281_1339526094_3a4d933ccabd711d7764828315d79e41_rle_crop_3686315397_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/53e027a51b3a1fd7c852862dc22e1b6b_98168400.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/42eaf52113fdd17139f7345aa8e1f9d2_14703709.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8ed69d32c3be15703768ea27f98c4bcf_88204825.png change filename to text .imagette207996881740477093/ imagette207996881740477093/1740476944_1277079_1339525939_e96926f3835fcf3ec3b576ffdc0db02b_rle_crop_3686315376_0.png.png imagette207996881740477093/1740476944_1277079_1339525960_17ab1578bbe6b23f182e6d675e6dd48c_rle_crop_3686315331_0.png.png imagette207996881740477093/1740476954_1277281_1339526094_3a4d933ccabd711d7764828315d79e41_rle_crop_3686315397_0.png.png imagette207996881740477093/1740476944_1277079_1339525957_704e28945246789f459f1772c72543eb_rle_crop_3686315346_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b4669aba9eb418d12679ad21ca6df68c_82008592.png imagette207996881740477093 20799691 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=20799691 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339526228: '1740476944_1277079_1339525960_17ab1578bbe6b23f182e6d675e6dd48c_rle_crop_3686315327_0.png', 1339526247: '1740476954_1277281_1339526098_7bcc2aa50bcc556c3e6f17299c62cc54_rle_crop_3686315387_0.png', 1339526248: '1740476954_1277281_1339526078_6bcbda198682c1d6f9f2131e7c7da2d9_rle_crop_3686315694_0.png', 1339526249: '1740476954_1277281_1339526070_a7d098bf0a76c764fd3d89a9da4475ef_rle_crop_3686315703_0.png', 1339526250: '1740476954_1277281_1339526065_050b611690963c0083a9cb758e104587_rle_crop_3686315726_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6308f12ec9433d7cfb52ee7c98947df7_13842206.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/a2299ad0899925c611f6685f2d08d448_80678874.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8f8013ef1a68d1656fc2a6f552909d18_41176877.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f4ef058b4e35120ebd03763864a28442_45954653.png change filename to text .imagette207996911740477093/ imagette207996911740477093/1740476954_1277281_1339526065_050b611690963c0083a9cb758e104587_rle_crop_3686315726_0.png.png imagette207996911740477093/1740476944_1277079_1339525960_17ab1578bbe6b23f182e6d675e6dd48c_rle_crop_3686315327_0.png.png imagette207996911740477093/1740476954_1277281_1339526078_6bcbda198682c1d6f9f2131e7c7da2d9_rle_crop_3686315694_0.png.png imagette207996911740477093/1740476954_1277281_1339526070_a7d098bf0a76c764fd3d89a9da4475ef_rle_crop_3686315703_0.png.png imagette207996911740477093/1740476954_1277281_1339526098_7bcc2aa50bcc556c3e6f17299c62cc54_rle_crop_3686315387_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/44890eefecea5d9052341273fe26207a_91250432.png imagette207996911740477093 20799692 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=20799692 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339526216: '1740476944_1277079_1339525957_704e28945246789f459f1772c72543eb_rle_crop_3686315345_0.png'} change filename to text .imagette207996921740477094/ imagette207996921740477094/1740476944_1277079_1339525957_704e28945246789f459f1772c72543eb_rle_crop_3686315345_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/4fc9dfe2ea76b84912950e6d54416056_7323974.png imagette207996921740477094 20799694 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=20799694 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339526252: '1740476954_1277281_1339526070_a7d098bf0a76c764fd3d89a9da4475ef_rle_crop_3686315701_0.png'} change filename to text .imagette207996941740477094/ imagette207996941740477094/1740476954_1277281_1339526070_a7d098bf0a76c764fd3d89a9da4475ef_rle_crop_3686315701_0.png.png imagette207996951740477094/ imagette207996981740477094/ imagette207996991740477094/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/fddbc8bcc89760bed8ae0498ec12943d_33747415.png imagette207996941740477094 20799695 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=20799695 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207996951740477094 20799698 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=20799698 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207996981740477094 20799699 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=20799699 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207996991740477094 20799693 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=20799693 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339526212: '1740476944_1277079_1339525957_704e28945246789f459f1772c72543eb_rle_crop_3686315348_0.png', 1339526213: '1740476944_1277079_1339525957_704e28945246789f459f1772c72543eb_rle_crop_3686315349_0.png', 1339526214: '1740476944_1277079_1339525957_704e28945246789f459f1772c72543eb_rle_crop_3686315354_0.png', 1339526215: '1740476944_1277079_1339525949_44c2d32869bd9dafcbbd50df50522115_rle_crop_3686315363_0.png', 1339526236: '1740476954_1277281_1339526078_6bcbda198682c1d6f9f2131e7c7da2d9_rle_crop_3686315688_0.png', 1339526237: '1740476954_1277281_1339526065_050b611690963c0083a9cb758e104587_rle_crop_3686315731_0.png', 1339526238: '1740476954_1277281_1339526065_050b611690963c0083a9cb758e104587_rle_crop_3686315735_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8511ed527894438472f33119f55fa852_29523694.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1a3aacb8f5c383b8b792dd88dae343f4_70478325.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/d2f4a97838463d81f6ed0338f1185db4_65872208.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/a5e6e577cf2742f814841e9672c8b8f3_91683259.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6187c4f7ba8061f727f7aa7540bc1b41_71546122.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/693a46671b39d98b3549a266f9c5f825_49258435.png change filename to text .imagette207996931740477094/ imagette207996931740477094/1740476944_1277079_1339525957_704e28945246789f459f1772c72543eb_rle_crop_3686315349_0.png.png imagette207996931740477094/1740476954_1277281_1339526065_050b611690963c0083a9cb758e104587_rle_crop_3686315731_0.png.png imagette207996931740477094/1740476944_1277079_1339525949_44c2d32869bd9dafcbbd50df50522115_rle_crop_3686315363_0.png.png imagette207996931740477094/1740476954_1277281_1339526065_050b611690963c0083a9cb758e104587_rle_crop_3686315735_0.png.png imagette207996931740477094/1740476954_1277281_1339526078_6bcbda198682c1d6f9f2131e7c7da2d9_rle_crop_3686315688_0.png.png imagette207996931740477094/1740476944_1277079_1339525957_704e28945246789f459f1772c72543eb_rle_crop_3686315354_0.png.png imagette207996931740477094/1740476944_1277079_1339525957_704e28945246789f459f1772c72543eb_rle_crop_3686315348_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e3ffa5c14ece39fe0d7327c732e7bde4_69389551.png imagette207996931740477094 20799696 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=20799696 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339526224: '1740476944_1277079_1339525939_e96926f3835fcf3ec3b576ffdc0db02b_rle_crop_3686315379_0.png', 1339526244: '1740476954_1277281_1339526094_3a4d933ccabd711d7764828315d79e41_rle_crop_3686315401_0.png', 1339526245: '1740476954_1277281_1339526078_6bcbda198682c1d6f9f2131e7c7da2d9_rle_crop_3686315686_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/5394aeb1bea04f71d106b3be6ca1c6e9_33924917.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/400a77ef03a31afae98a7e71f71203d6_9704928.png change filename to text .imagette207996961740477094/ imagette207996961740477094/1740476944_1277079_1339525939_e96926f3835fcf3ec3b576ffdc0db02b_rle_crop_3686315379_0.png.png imagette207996961740477094/1740476954_1277281_1339526094_3a4d933ccabd711d7764828315d79e41_rle_crop_3686315401_0.png.png imagette207996961740477094/1740476954_1277281_1339526078_6bcbda198682c1d6f9f2131e7c7da2d9_rle_crop_3686315686_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1614af746c5f58e7955dfa149d70241e_45940338.png imagette207996961740477094 20799697 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=20799697 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339526219: '1740476944_1277079_1339525960_17ab1578bbe6b23f182e6d675e6dd48c_rle_crop_3686315333_0.png', 1339526220: '1740476944_1277079_1339525960_17ab1578bbe6b23f182e6d675e6dd48c_rle_crop_3686315330_0.png', 1339526239: '1740476954_1277281_1339526070_a7d098bf0a76c764fd3d89a9da4475ef_rle_crop_3686315711_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6f61c9a3982398df98d534a3a20c95dd_17598828.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c0bf60ba9480df52d444eac5781793a6_75047623.png change filename to text .imagette207996971740477094/ imagette207996971740477094/1740476944_1277079_1339525960_17ab1578bbe6b23f182e6d675e6dd48c_rle_crop_3686315333_0.png.png imagette207996971740477094/1740476954_1277281_1339526070_a7d098bf0a76c764fd3d89a9da4475ef_rle_crop_3686315711_0.png.png imagette207996971740477094/1740476944_1277079_1339525960_17ab1578bbe6b23f182e6d675e6dd48c_rle_crop_3686315330_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e51cf6bcde503446aeeb181b7458067a_76806926.png imagette207996971740477094 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20799638 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20799700,20799701,20799702,20799703,20799704,20799705,20799706,20799707,20799708,20799709,20799710,20799711?tags=cartonnette,environnement,papier,plastique,autre_refus,Teint_Dans_La_Masse,kraft,mal_croppe,Carton_brun,Carton_gris,flou,metal your option no_mail is active, we will not send the real mail to your client args[1339526203] : ('0.04166991655844001',) no score found for photo 1339526203 We are sending mail with results at report@fotonower.com args[1339526200] : ('0.04166991655844001',) no score found for photo 1339526200 We are sending mail with results at report@fotonower.com args[1339526196] : ('0.04166991655844001',) no score found for photo 1339526196 We are sending mail with results at report@fotonower.com args[1339526191] : ('0.04166991655844001',) no score found for photo 1339526191 We are sending mail with results at report@fotonower.com args[1339526186] : ('0.04166991655844001',) no score found for photo 1339526186 We are sending mail with results at report@fotonower.com args[1339526174] : ('0.04166991655844001',) no score found for photo 1339526174 We are sending mail with results at report@fotonower.com args[1339526151] : ('0.04166991655844001',) no score found for photo 1339526151 We are sending mail with results at report@fotonower.com args[1339526147] : ('0.04166991655844001',) no score found for photo 1339526147 We are sending mail with results at report@fotonower.com args[1339526142] : ('0.04166991655844001',) no score found for photo 1339526142 We are sending mail with results at report@fotonower.com args[1339526136] : ('0.04166991655844001',) no score found for photo 1339526136 We are sending mail with results at report@fotonower.com args[1339526124] : ('0.04166991655844001',) no score found for photo 1339526124 We are sending mail with results at report@fotonower.com args[1339526103] : ('0.04166991655844001',) no score found for photo 1339526103 We are sending mail with results at report@fotonower.com args[1339526098] : ('0.04166991655844001',) no score found for photo 1339526098 We are sending mail with results at report@fotonower.com args[1339526094] : ('0.04166991655844001',) no score found for photo 1339526094 We are sending mail with results at report@fotonower.com args[1339526078] : ('0.04166991655844001',) no score found for photo 1339526078 We are sending mail with results at report@fotonower.com args[1339526070] : ('0.04166991655844001',) no score found for photo 1339526070 We are sending mail with results at report@fotonower.com args[1339526065] : ('0.04166991655844001',) no score found for photo 1339526065 We are sending mail with results at report@fotonower.com args[1339525960] : ('0.04166991655844001',) no score found for photo 1339525960 We are sending mail with results at report@fotonower.com args[1339525957] : ('0.04166991655844001',) no score found for photo 1339525957 We are sending mail with results at report@fotonower.com args[1339525949] : ('0.04166991655844001',) no score found for photo 1339525949 We are sending mail with results at report@fotonower.com args[1339525939] : ('0.04166991655844001',) no score found for photo 1339525939 We are sending mail with results at report@fotonower.com refus_total : 0.04166991655844001 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=20799638 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_P20799638_25-02-2025_10_51_33.pdf results_Auto_P20799638_25-02-2025_10_51_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20799638_25-02-2025_10_51_33.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','20799638','results_Auto_P20799638_25-02-2025_10_51_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20799638_25-02-2025_10_51_33.pdf','pdf','','0.23','0.04166991655844001') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20799638]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939] map_info['map_portfolio_photo'] : {20799638: [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939]} final : False mtd_id 4302 list_pids : [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939] 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, '2612457') ('4302', '20799638', '1339526203', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526200', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526196', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526191', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526186', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526174', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526151', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526147', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526142', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526136', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526124', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526103', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526098', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526094', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526078', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526070', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526065', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525960', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525957', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525949', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525939', None, None, None, None, None, '2612457') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '20799638', '1339526203', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526200', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526196', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526191', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526186', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526174', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526151', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526147', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526142', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526136', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526124', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526103', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526098', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526094', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526078', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526070', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526065', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525960', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525957', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525949', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525939', None, None, None, None, None, '2612457')] time used for this insertion : 0.015752792358398438 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.525896787643433 time spend to save output : 0.016115427017211914 total time spend for step 4 : 4.5420122146606445 step5:split_time_score Tue Feb 25 10:51:37 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 : ['20799638'] 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 : [('20799638',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20799638) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339526203: {'path': 'temp/1740477092_377996_1339526203_753f7df0fef1fb263ca097bbc238a6ce.jpg', 'extension': 'jpg'}, 1339526070: {'path': 'temp/1740477092_377996_1339526070_a7d098bf0a76c764fd3d89a9da4475ef.jpg', 'extension': 'jpg'}, 1339526078: {'path': 'temp/1740477092_377996_1339526078_6bcbda198682c1d6f9f2131e7c7da2d9.jpg', 'extension': 'jpg'}, 1339526094: {'path': 'temp/1740477092_377996_1339526094_3a4d933ccabd711d7764828315d79e41.jpg', 'extension': 'jpg'}, 1339526098: {'path': 'temp/1740477092_377996_1339526098_7bcc2aa50bcc556c3e6f17299c62cc54.jpg', 'extension': 'jpg'}, 1339526103: {'path': 'temp/1740477092_377996_1339526103_c3a49717a8107959f09baf0d11c50ead.jpg', 'extension': 'jpg'}, 1339526174: {'path': 'temp/1740477092_377996_1339526174_0195b01f094b92d44e97e8be79ab4ce1.jpg', 'extension': 'jpg'}, 1339526186: {'path': 'temp/1740477092_377996_1339526186_91c9fa76396704d1d02b76cafa3049b9.jpg', 'extension': 'jpg'}, 1339526191: {'path': 'temp/1740477092_377996_1339526191_4ce604a063d24758132834958b5f423a.jpg', 'extension': 'jpg'}, 1339526196: {'path': 'temp/1740477092_377996_1339526196_494f6feae9085318ae7f305c13432760.jpg', 'extension': 'jpg'}, 1339526200: {'path': 'temp/1740477092_377996_1339526200_55c730fc180de5f2e5e8e31897676b68.jpg', 'extension': 'jpg'}, 1339526124: {'path': 'temp/1740477092_377996_1339526124_04c1ac5face47c2daffd7bda321dc266.jpg', 'extension': 'jpg'}, 1339526136: {'path': 'temp/1740477092_377996_1339526136_33aba63dca90d508f78981eab0d98bd6.jpg', 'extension': 'jpg'}, 1339526142: {'path': 'temp/1740477092_377996_1339526142_5d988466196c6e6420df54938f6e260f.jpg', 'extension': 'jpg'}, 1339526147: {'path': 'temp/1740477092_377996_1339526147_262a8bf560f51df7b1ebb598dee0511c.jpg', 'extension': 'jpg'}, 1339526151: {'path': 'temp/1740477092_377996_1339526151_27e878fca36a0beeb5e90f2564914bff.jpg', 'extension': 'jpg'}, 1339525939: {'path': 'temp/1740477092_377996_1339525939_e96926f3835fcf3ec3b576ffdc0db02b.jpg', 'extension': 'jpg'}, 1339525949: {'path': 'temp/1740477092_377996_1339525949_44c2d32869bd9dafcbbd50df50522115.jpg', 'extension': 'jpg'}, 1339525957: {'path': 'temp/1740477092_377996_1339525957_704e28945246789f459f1772c72543eb.jpg', 'extension': 'jpg'}, 1339525960: {'path': 'temp/1740477092_377996_1339525960_17ab1578bbe6b23f182e6d675e6dd48c.jpg', 'extension': 'jpg'}, 1339526065: {'path': 'temp/1740477092_377996_1339526065_050b611690963c0083a9cb758e104587.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 = 20799638; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 20799638 group by h (('10', 21),) 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=20799638 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 (20799638) 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 (20799638) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25022025 20799638 Nombre de photos uploadées : 21 / 23040 (0%) 25022025 20799638 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 25022025 20799638 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1339525960, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/17ab1578bbe6b23f182e6d675e6dd48c.jpg', 'username': None, 'uploaded_at': 1740476793, 'text': 'image_25022025_10_45_04_10150.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1339525957, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/704e28945246789f459f1772c72543eb.jpg', 'username': None, 'uploaded_at': 1740476793, 'text': 'image_25022025_10_45_14_10138.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339525949, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/44c2d32869bd9dafcbbd50df50522115.jpg', 'username': None, 'uploaded_at': 1740476793, 'text': 'image_25022025_10_45_24_10136.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1339525939, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e96926f3835fcf3ec3b576ffdc0db02b.jpg', 'username': None, 'uploaded_at': 1740476793, 'text': 'image_25022025_10_45_34_10136.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019638538360595703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20799638, '2025-02-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1621897,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022152423858642578 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= 1621897 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630550, 'mtr_portfolio_id': 20797921, 'dashboard_result_id': 9046536, '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_P20797921_25-02-2025_10_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797937, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630550, 'mtr_portfolio_id': 20798362, 'dashboard_result_id': 9046537, '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_P20798362_25-02-2025_10_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20798436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20798437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20798438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20798439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20798440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20798443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20798445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20798446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20798447, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630550, 'mtr_portfolio_id': 20799103, 'dashboard_result_id': 9046538, '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_P20799103_25-02-2025_10_51_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20799152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20799153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20799154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20799155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20799156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20799157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20799158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20799159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20799160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20799161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20799162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20799163, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630550, 'mtr_portfolio_id': 20799638, 'dashboard_result_id': 9046539, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}] 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 = 20797921 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': 2612344, 'mtr_portfolio_id': 20797921, 'created_at': datetime.datetime(2025, 2, 25, 10, 18, 57), 'result': '0.038828250295461816', 'result_long': None, 'result_double': None}] Qualite : 0.038828250295461816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20797921 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20797921_25-02-2025_10_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20797921 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_P20797921_25-02-2025_10_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797937, 'pht': 3726}}" where mtr_portfolio_id = 20797921 and dashboard_run_id = 1630550 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`=20797921 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9046536, 0.038828250295461816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20797921_25-02-2025_10_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20797926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20797927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20797928, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20797929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20797930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20797931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20797932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20797933, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20797934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20797935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20797936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20797937, '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 = 20798362 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': 2612373, 'mtr_portfolio_id': 20798362, 'created_at': datetime.datetime(2025, 2, 25, 10, 32, 57), 'result': '0.047276094276559405', 'result_long': None, 'result_double': None}] Qualite : 0.047276094276559405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20798362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20798362_25-02-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20798362 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_P20798362_25-02-2025_10_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20798436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20798437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20798438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20798439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20798440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20798443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20798445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20798446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20798447, 'pht': 3726}}" where mtr_portfolio_id = 20798362 and dashboard_run_id = 1630550 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`=20798362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9046537, 0.047276094276559405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20798362_25-02-2025_10_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20798436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20798437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20798438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20798439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20798440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20798441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20798442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20798443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20798444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20798445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20798446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20798447, '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 = 20799103 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': 2612416, 'mtr_portfolio_id': 20799103, 'created_at': datetime.datetime(2025, 2, 25, 10, 50, 59), 'result': '0.04333299511062132', 'result_long': None, 'result_double': None}] Qualite : 0.04333299511062132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20799103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20799103_25-02-2025_10_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20799103 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_P20799103_25-02-2025_10_51_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20799152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20799153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20799154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20799155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20799156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20799157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20799158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20799159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20799160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20799161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20799162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20799163, 'pht': 3726}}" where mtr_portfolio_id = 20799103 and dashboard_run_id = 1630550 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`=20799103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9046538, 0.04333299511062132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20799103_25-02-2025_10_51_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20799152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20799153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20799154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20799155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20799156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20799157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20799158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20799159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20799160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20799161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20799162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20799163, '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 = 20799638 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': 2612457, 'mtr_portfolio_id': 20799638, 'created_at': datetime.datetime(2025, 2, 25, 10, 51, 32), 'result': '0.04166991655844001', 'result_long': None, 'result_double': None}] Qualite : 0.04166991655844001 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20799638 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20799638_25-02-2025_10_51_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20799638 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_P20799638_25-02-2025_10_51_33.pdf'}" where mtr_portfolio_id = 20799638 and dashboard_run_id = 1630550 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`=20799638 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9046539, 0.04166991655844001, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20799638_25-02-2025_10_51_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20799688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20799689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20799690, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20799691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20799692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20799693, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20799694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20799695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20799696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20799697, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20799698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20799699, '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 (20797921,20798362,20799103,20799638) result : ((1339521768,), (1339521772,), (1339521876,), (1339522038,), (1339522136,), (1339522140,), (1339522144,), (1339522170,), (1339522181,), (1339522189,), (1339522192,), (1339522198,), (1339522201,), (1339522233,), (1339522237,), (1339522240,), (1339522243,), (1339522249,), (1339522267,), (1339522271,), (1339522275,), (1339522280,), (1339522286,), (1339522289,), (1339522305,), (1339522310,), (1339522315,), (1339522325,), (1339522387,), (1339522416,), (1339522419,), (1339522423,), (1339522427,), (1339522430,), (1339522458,), (1339522462,), (1339522465,), (1339522469,), (1339522491,), (1339522495,), (1339522499,), (1339522503,), (1339522515,), (1339522529,), (1339522535,), (1339522544,), (1339522548,), (1339522553,), (1339522562,), (1339522581,), (1339522585,), (1339522589,), (1339522593,), (1339522605,), (1339522609,), (1339522613,), (1339522616,), (1339522620,), (1339522624,), (1339522634,), (1339522638,), (1339522642,), (1339522645,), (1339522651,), (1339522675,), (1339522678,), (1339522682,), (1339522687,), (1339522691,), (1339522727,), (1339522704,), (1339522708,), (1339522711,), (1339522714,), (1339523017,), (1339523020,), (1339523024,), (1339523085,), (1339523099,), (1339523159,), (1339523172,), (1339523179,), (1339523183,), (1339523187,), (1339523191,), (1339523218,), (1339523222,), (1339523233,), (1339523238,), (1339523274,), (1339523278,), (1339523281,), (1339523287,), (1339523292,), (1339523297,), (1339523337,), (1339523341,), (1339523346,), (1339523351,), (1339523354,), (1339523362,), (1339523373,), (1339523376,), (1339523380,), (1339523382,), (1339523788,), (1339523791,), (1339523828,), (1339523832,), (1339523866,), (1339523883,), (1339523886,), (1339523890,), (1339523895,), (1339523900,), (1339523903,), (1339523935,), (1339523939,), (1339523942,), (1339523972,), (1339523975,), (1339523977,), (1339523980,), (1339523984,), (1339523987,), (1339524001,), (1339524005,), (1339524008,), (1339524012,), (1339524059,), (1339524063,), (1339524067,), (1339524071,), (1339524075,), (1339524078,), (1339524090,), (1339524092,), (1339524096,), (1339524099,), (1339524105,), (1339524130,), (1339524133,), (1339524138,), (1339524143,), (1339524146,), (1339524181,), (1339524165,), (1339524168,), (1339524173,), (1339524176,), (1339524515,), (1339524532,), (1339524540,), (1339524581,), (1339524595,), (1339524598,), (1339524625,), (1339524628,), (1339524631,), (1339524634,), (1339524637,), (1339524670,), (1339524672,), (1339524680,), (1339524712,), (1339524715,), (1339524718,), (1339524723,), (1339524727,), (1339524730,), (1339524745,), (1339524749,), (1339524753,), (1339524758,), (1339524762,), (1339524777,), (1339524781,), (1339524785,), (1339524802,), (1339524806,), (1339524830,), (1339524834,), (1339524837,), (1339524841,), (1339524844,), (1339524846,), (1339524870,), (1339524874,), (1339524878,), (1339524880,), (1339524885,), (1339524914,), (1339524929,), (1339524932,), (1339524934,), (1339524936,), (1339524938,), (1339524963,), (1339524967,), (1339524971,), (1339525036,), (1339525073,), (1339525078,), (1339525081,), (1339525091,), (1339525106,), (1339525110,), (1339525132,), (1339525135,), (1339525192,), (1339525273,), (1339525864,), (1339525868,), (1339525871,), (1339525874,), (1339525878,), (1339525880,), (1339525901,), (1339525906,), (1339525912,), (1339525918,), (1339525922,), (1339525963,), (1339525939,), (1339525949,), (1339525957,), (1339525960,), (1339526065,), (1339526070,), (1339526078,), (1339526094,), (1339526098,), (1339526103,), (1339526124,), (1339526136,), (1339526142,), (1339526147,), (1339526151,), (1339526174,), (1339526186,), (1339526191,), (1339526196,), (1339526200,), (1339526203,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25022025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20799638]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939] map_info['map_portfolio_photo'] : {20799638: [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939]} final : True mtd_id 4302 list_pids : [1339526203, 1339526200, 1339526196, 1339526191, 1339526186, 1339526174, 1339526151, 1339526147, 1339526142, 1339526136, 1339526124, 1339526103, 1339526098, 1339526094, 1339526078, 1339526070, 1339526065, 1339525960, 1339525957, 1339525949, 1339525939] Looping around the photos to save general results len do output : 1 /20799638Didn'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, '2612457') ('4302', '20799638', '1339526203', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526200', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526196', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526191', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526186', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526174', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526151', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526147', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526142', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526136', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526124', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526103', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526098', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526094', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526078', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526070', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339526065', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525960', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525957', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525949', None, None, None, None, None, '2612457') ('4302', None, None, None, None, None, None, None, '2612457') ('4302', '20799638', '1339525939', None, None, None, None, None, '2612457') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '20799638', 'None', None, None, None, None, '2612457'), ('4302', '20799638', '1339526203', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526200', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526196', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526191', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526186', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526174', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526151', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526147', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526142', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526136', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526124', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526103', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526098', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526094', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526078', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526070', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339526065', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525960', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525957', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525949', None, None, None, None, None, '2612457'), ('4302', '20799638', '1339525939', None, None, None, None, None, '2612457')] time used for this insertion : 0.015534162521362305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3497645854949951 time spend to save output : 0.01586747169494629 total time spend for step 5 : 0.3656320571899414 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 (2612457) 2.36user 1.98system 0:12.28elapsed 35%CPU (0avgtext+0avgdata 166752maxresident)k 392inputs+13960outputs (5major+77839minor)pagefaults 0swaps