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 : 1464872 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 (2658596) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2658596) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292609 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2658596'] with mtr_portfolio_ids : ['21292609'] and first list_photo_ids : [] new path : /proc/1464872/ Name: python3 Umask: 0002 State: R (running) Tgid: 1464872 Ngid: 0 Pid: 1464872 PPid: 1464871 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1464872 NSpid: 1464872 NSpgid: 1462369 NSsid: 1462369 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98732 kB VmRSS: 98732 kB RssAnon: 59756 kB RssFile: 38976 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 51 nonvoluntary_ctxt_switches: 35 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1464872', 'Ngid': '0', 'Pid': '1464872', 'PPid': '1464871', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1464872', 'NSpid': '1464872', 'NSpgid': '1462369', 'NSsid': '1462369', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98732 kB', 'VmRSS': '98732 kB', 'RssAnon': '59756 kB', 'RssFile': '38976 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '51', 'nonvoluntary_ctxt_switches': '35'} ('datou_batch_current', '1464872', '1106844', '0', '1106844', '865592', '98732', b'', 'marlene', '2658596') 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 (21292609) 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 (2658596 ) ) 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 (21292609) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343073462, 'portfolio_id': 21292609}, {'photo_id': 1343073460, 'portfolio_id': 21292609}, {'photo_id': 1343073457, 'portfolio_id': 21292609}, {'photo_id': 1343073451, 'portfolio_id': 21292609}, {'photo_id': 1343073446, 'portfolio_id': 21292609}, {'photo_id': 1343073441, 'portfolio_id': 21292609}, {'photo_id': 1343073321, 'portfolio_id': 21292609}, {'photo_id': 1343073300, 'portfolio_id': 21292609}, {'photo_id': 1343073271, 'portfolio_id': 21292609}, {'photo_id': 1343073248, 'portfolio_id': 21292609}, {'photo_id': 1343073206, 'portfolio_id': 21292609}, {'photo_id': 1343073055, 'portfolio_id': 21292609}, {'photo_id': 1343073048, 'portfolio_id': 21292609}, {'photo_id': 1343073005, 'portfolio_id': 21292609}, {'photo_id': 1343073002, 'portfolio_id': 21292609}, {'photo_id': 1343072992, 'portfolio_id': 21292609}, {'photo_id': 1343072986, 'portfolio_id': 21292609}, {'photo_id': 1343072887, 'portfolio_id': 21292609}, {'photo_id': 1343072884, 'portfolio_id': 21292609}, {'photo_id': 1343072855, 'portfolio_id': 21292609}, {'photo_id': 1343072838, 'portfolio_id': 21292609}, {'photo_id': 1343072616, 'portfolio_id': 21292609}, {'photo_id': 1343072589, 'portfolio_id': 21292609}, {'photo_id': 1343072557, 'portfolio_id': 21292609}, {'photo_id': 1343072531, 'portfolio_id': 21292609}, {'photo_id': 1343072504, 'portfolio_id': 21292609}] map_portfolio_id_photo_id: {21292609: [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504]} ##### 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.019858837127685547 #### 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 Mar 11 15:36:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21292609) 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 : 21292609 get user id for portfolio 21292609 get sub ptf for main ptf 21292609, type 3726 and hashtags ['papier', 'plastique', 'mal_croppe', 'Carton_gris', 'Carton_brun', 'autre_refus', 'environnement', 'metal', 'cartonnette', 'flou', 'Teint_Dans_La_Masse', 'kraft'] 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`=21292609 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','Carton_gris','Carton_brun','autre_refus','environnement','metal','cartonnette','flou','Teint_Dans_La_Masse','kraft')) 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`=21292609 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','Carton_gris','Carton_brun','autre_refus','environnement','metal','cartonnette','flou','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_3726_kraft_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)[[21292609, 21292622, 3726, 0.5, 492668766, 979], [21292609, 21292623, 3726, 0.5, 492725882, 979], [21292609, 21292624, 3726, 0.5, 2107755527, 979], [21292609, 21292625, 3726, 0.5, 2107753020, 979], [21292609, 21292626, 3726, 0.5, 2107753024, 979], [21292609, 21292627, 3726, 0.5, 2107752406, 979], [21292609, 21292628, 3726, 0.5, 493012381, 979], [21292609, 21292629, 3726, 0.5, 492628673, 979], [21292609, 21292630, 3726, 0.5, 702398920, 979], [21292609, 21292631, 3726, 0.5, 492777938, 979], [21292609, 21292632, 3726, 0.5, 2107752385, 979], [21292609, 21292633, 3726, 0.5, 493202403, 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`=21292609 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','Carton_gris','Carton_brun','autre_refus','environnement','metal','cartonnette','flou','Teint_Dans_La_Masse','kraft')) 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`=21292609 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','Carton_gris','Carton_brun','autre_refus','environnement','metal','cartonnette','flou','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21292609, 'sub_port_id': 21292622, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877824, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}, 'plastique': {'main_port_id': 21292609, 'sub_port_id': 21292623, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877825, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}, 'mal_croppe': {'main_port_id': 21292609, 'sub_port_id': 21292624, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877826, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}, 'Carton_gris': {'main_port_id': 21292609, 'sub_port_id': 21292625, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877827, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}, 'Carton_brun': {'main_port_id': 21292609, 'sub_port_id': 21292626, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877828, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}, 'autre_refus': {'main_port_id': 21292609, 'sub_port_id': 21292627, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877829, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}, 'environnement': {'main_port_id': 21292609, 'sub_port_id': 21292628, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877830, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}, 'metal': {'main_port_id': 21292609, 'sub_port_id': 21292629, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877831, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}, 'cartonnette': {'main_port_id': 21292609, 'sub_port_id': 21292630, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877832, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}, 'flou': {'main_port_id': 21292609, 'sub_port_id': 21292631, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877833, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21292609, 'sub_port_id': 21292632, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877834, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}, 'kraft': {'main_port_id': 21292609, 'sub_port_id': 21292633, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877835, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21292622 , 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=21292609 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 (21292622) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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 21292623 , 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=21292609 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 (21292623) result : ((1343073493,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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 21292624 , 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=21292609 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 (21292624) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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 21292625 , 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=21292609 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 (21292625) result : ((1343073486,), (1343073487,), (1343073488,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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 21292626 , 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=21292609 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 (21292626) result : ((1343073491,), (1343073492,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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 21292627 , 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=21292609 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 (21292627) result : ((1343073478,), (1343073479,), (1343073480,), (1343073481,), (1343073482,), (1343073483,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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 21292628 , 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=21292609 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 (21292628) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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 21292629 , 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=21292609 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 (21292629) result : ((1343073495,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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 21292630 , 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=21292609 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 (21292630) result : ((1343073489,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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 21292631 , 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=21292609 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 (21292631) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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 21292632 , 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=21292609 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 (21292632) result : ((1343073473,), (1343073474,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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 21292633 , 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=21292609 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 (21292633) result : ((1343073277,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21292609) result : ((1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) 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 (1343073300) 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`=21292609 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','Carton_gris','Carton_brun','autre_refus','environnement','metal','cartonnette','flou','Teint_Dans_La_Masse','kraft')) 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`=21292609 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','Carton_gris','Carton_brun','autre_refus','environnement','metal','cartonnette','flou','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_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__11032025_15_30_04_10158_4417_kraft_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)[[21292609, 21292634, 4417, 0.5, 492668766, 979], [21292609, 21292635, 4417, 0.5, 492725882, 979], [21292609, 21292636, 4417, 0.5, 2107755527, 979], [21292609, 21292637, 4417, 0.5, 2107753020, 979], [21292609, 21292638, 4417, 0.5, 2107753024, 979], [21292609, 21292639, 4417, 0.5, 2107752406, 979], [21292609, 21292640, 4417, 0.5, 493012381, 979], [21292609, 21292641, 4417, 0.5, 492628673, 979], [21292609, 21292642, 4417, 0.5, 702398920, 979], [21292609, 21292643, 4417, 0.5, 492777938, 979], [21292609, 21292644, 4417, 0.5, 2107752385, 979], [21292609, 21292645, 4417, 0.5, 493202403, 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`=21292609 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','Carton_gris','Carton_brun','autre_refus','environnement','metal','cartonnette','flou','Teint_Dans_La_Masse','kraft')) 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`=21292609 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','Carton_gris','Carton_brun','autre_refus','environnement','metal','cartonnette','flou','Teint_Dans_La_Masse','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21292609, 'sub_port_id': 21292634, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877836, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}, 'plastique': {'main_port_id': 21292609, 'sub_port_id': 21292635, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877837, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}, 'mal_croppe': {'main_port_id': 21292609, 'sub_port_id': 21292636, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877838, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}, 'Carton_gris': {'main_port_id': 21292609, 'sub_port_id': 21292637, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877839, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}, 'Carton_brun': {'main_port_id': 21292609, 'sub_port_id': 21292638, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877840, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}, 'autre_refus': {'main_port_id': 21292609, 'sub_port_id': 21292639, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877841, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}, 'environnement': {'main_port_id': 21292609, 'sub_port_id': 21292640, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877842, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}, 'metal': {'main_port_id': 21292609, 'sub_port_id': 21292641, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877843, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}, 'cartonnette': {'main_port_id': 21292609, 'sub_port_id': 21292642, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877844, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}, 'flou': {'main_port_id': 21292609, 'sub_port_id': 21292643, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877845, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21292609, 'sub_port_id': 21292644, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877846, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}, 'kraft': {'main_port_id': 21292609, 'sub_port_id': 21292645, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13877847, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292634,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292622 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292635,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292623 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292636,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292624 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292637,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292625 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292638,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292626 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292639,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292627 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292640,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292628 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292641,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292629 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292642,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292630 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292643,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292631 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292644,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292632 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21292645,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21292633 lien utilise dans velours : https://www.fotonower.com/velours/21292634,21292635,21292636,21292637,21292638,21292639,21292640,21292641,21292642,21292643,21292644,21292645?tags=papier,plastique,mal_croppe,Carton_gris,Carton_brun,autre_refus,environnement,metal,cartonnette,flou,Teint_Dans_La_Masse,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21292609]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504] map_info['map_portfolio_photo'] : {21292609: [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504]} final : False mtd_id 4302 list_pids : [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504] Looping around the photos to save general results len do output : 1 /21292609. 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, '2658596') ('4302', '21292609', '1343073462', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073460', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073457', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073451', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073446', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073441', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073321', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073300', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073271', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073248', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073206', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073055', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073048', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073005', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073002', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072992', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072986', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072887', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072884', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072855', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072838', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072616', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072589', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072557', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072531', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072504', None, None, None, None, None, '2658596') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21292609', "{'papier': 21292622, 'plastique': 21292623, 'mal_croppe': 21292624, 'Carton_gris': 21292625, 'Carton_brun': 21292626, 'autre_refus': 21292627, 'environnement': 21292628, 'metal': 21292629, 'cartonnette': 21292630, 'flou': 21292631, 'Teint_Dans_La_Masse': 21292632, 'kraft': 21292633}", None, None, None, None, '2658596'), ('4302', '21292609', '1343073462', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073460', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073457', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073451', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073446', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073441', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073321', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073300', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073271', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073248', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073206', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073055', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073048', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073005', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073002', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072992', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072986', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072887', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072884', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072855', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072838', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072616', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072589', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072557', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072531', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072504', None, None, None, None, None, '2658596')] time used for this insertion : 0.02371525764465332 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.2411787509918213 time spend to save output : 0.024065494537353516 total time spend for step 1 : 1.2652442455291748 step2:final Tue Mar 11 15:36:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21292609) 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 21292609 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343072616,1343072589,1343072557,1343072531,1343072504,1343072887,1343072884,1343072855,1343072838,1343073055,1343073048,1343073005,1343073002,1343072992,1343072986,1343073321,1343073300,1343073271,1343073248,1343073206,1343073462,1343073460,1343073457,1343073451,1343073446,1343073441); 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([21292609]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} new output for save of step final : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504] map_info['map_portfolio_photo'] : {21292609: [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504]} final : False mtd_id 4302 list_pids : [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504] Looping around the photos to save general results len do output : 26 /1343073462.Didn't retrieve data . /1343073460.Didn't retrieve data . /1343073457.Didn't retrieve data . /1343073451.Didn't retrieve data . /1343073446.Didn't retrieve data . /1343073441.Didn't retrieve data . /1343073321.Didn't retrieve data . /1343073300.Didn't retrieve data . /1343073271.Didn't retrieve data . /1343073248.Didn't retrieve data . /1343073206.Didn't retrieve data . /1343073055.Didn't retrieve data . /1343073048.Didn't retrieve data . /1343073005.Didn't retrieve data . /1343073002.Didn't retrieve data . /1343072992.Didn't retrieve data . /1343072986.Didn't retrieve data . /1343072887.Didn't retrieve data . /1343072884.Didn't retrieve data . /1343072855.Didn't retrieve data . /1343072838.Didn't retrieve data . /1343072616.Didn't retrieve data . /1343072589.Didn't retrieve data . /1343072557.Didn't retrieve data . /1343072531.Didn't retrieve data . /1343072504.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, '2658596') ('4302', '21292609', '1343073462', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073460', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073457', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073451', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073446', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073441', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073321', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073300', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073271', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073248', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073206', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073055', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073048', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073005', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073002', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072992', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072986', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072887', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072884', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072855', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072838', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072616', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072589', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072557', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072531', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072504', None, None, None, None, None, '2658596') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 78 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', '21292609', '1343073462', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073460', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073457', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073451', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073446', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073441', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073321', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073300', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073271', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073248', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073206', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073055', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073048', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073005', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343073002', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343072992', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343072986', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343072887', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343072884', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343072855', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343072838', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343072616', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343072589', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343072557', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343072531', '0.048584428850848314', None, None, None, None, '2658596'), ('4302', '21292609', '1343072504', '0.048584428850848314', None, None, None, None, '2658596')] time used for this insertion : 0.017484664916992188 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8531875610351562 time spend to save output : 0.018637895584106445 total time spend for step 2 : 0.8718254566192627 step3:velours_tree Tue Mar 11 15:37:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21292609: [{'papier': 21292622, 'plastique': 21292623, 'mal_croppe': 21292624, 'Carton_gris': 21292625, 'Carton_brun': 21292626, 'autre_refus': 21292627, 'environnement': 21292628, 'metal': 21292629, 'cartonnette': 21292630, 'flou': 21292631, 'Teint_Dans_La_Masse': 21292632, 'kraft': 21292633}]} input_args_next_step : {21292609: ()} output_args : {21292609: [{'papier': 21292622, 'plastique': 21292623, 'mal_croppe': 21292624, 'Carton_gris': 21292625, 'Carton_brun': 21292626, 'autre_refus': 21292627, 'environnement': 21292628, 'metal': 21292629, 'cartonnette': 21292630, 'flou': 21292631, 'Teint_Dans_La_Masse': 21292632, 'kraft': 21292633}]} args : 21292609 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 : ({'papier': 21292622, 'plastique': 21292623, 'mal_croppe': 21292624, 'Carton_gris': 21292625, 'Carton_brun': 21292626, 'autre_refus': 21292627, 'environnement': 21292628, 'metal': 21292629, 'cartonnette': 21292630, 'flou': 21292631, 'Teint_Dans_La_Masse': 21292632, 'kraft': 21292633},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21292609) 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([21292609]) 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.40938830375671387 time spend to save output : 8.20159912109375e-05 total time spend for step 3 : 0.4094703197479248 step4:send_mail_cod Tue Mar 11 15:37:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} input_args_next_step : {1343073462: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073462 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073460 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073457 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073451 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073446 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073441 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073321 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073300 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073271 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073248 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073206 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073055 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073048 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073005 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343073002 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343072992 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343072986 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343072887 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343072884 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343072855 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343072838 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343072616 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343072589 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343072557 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343072531 depend.output_id : 0 input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ()} output_args : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',)} args : 1343072504 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 : {21292609: [{'papier': 21292622, 'plastique': 21292623, 'mal_croppe': 21292624, 'Carton_gris': 21292625, 'Carton_brun': 21292626, 'autre_refus': 21292627, 'environnement': 21292628, 'metal': 21292629, 'cartonnette': 21292630, 'flou': 21292631, 'Teint_Dans_La_Masse': 21292632, 'kraft': 21292633}]} input_args_next_step : {1343073462: ('0.048584428850848314',), 1343073460: ('0.048584428850848314',), 1343073457: ('0.048584428850848314',), 1343073451: ('0.048584428850848314',), 1343073446: ('0.048584428850848314',), 1343073441: ('0.048584428850848314',), 1343073321: ('0.048584428850848314',), 1343073300: ('0.048584428850848314',), 1343073271: ('0.048584428850848314',), 1343073248: ('0.048584428850848314',), 1343073206: ('0.048584428850848314',), 1343073055: ('0.048584428850848314',), 1343073048: ('0.048584428850848314',), 1343073005: ('0.048584428850848314',), 1343073002: ('0.048584428850848314',), 1343072992: ('0.048584428850848314',), 1343072986: ('0.048584428850848314',), 1343072887: ('0.048584428850848314',), 1343072884: ('0.048584428850848314',), 1343072855: ('0.048584428850848314',), 1343072838: ('0.048584428850848314',), 1343072616: ('0.048584428850848314',), 1343072589: ('0.048584428850848314',), 1343072557: ('0.048584428850848314',), 1343072531: ('0.048584428850848314',), 1343072504: ('0.048584428850848314',), 21292609: ()} output_args : {21292609: [{'papier': 21292622, 'plastique': 21292623, 'mal_croppe': 21292624, 'Carton_gris': 21292625, 'Carton_brun': 21292626, 'autre_refus': 21292627, 'environnement': 21292628, 'metal': 21292629, 'cartonnette': 21292630, 'flou': 21292631, 'Teint_Dans_La_Masse': 21292632, 'kraft': 21292633}]} args : 21292609 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 :27, first value : ('0.048584428850848314',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21292609) 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 (1343073462,1343073460,1343073457,1343073451,1343073446,1343073441,1343073321,1343073300,1343073271,1343073248,1343073206,1343073055,1343073048,1343073005,1343073002,1343072992,1343072986,1343072887,1343072884,1343072855,1343072838,1343072616,1343072589,1343072557,1343072531,1343072504) Found this number of photos: 26 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343072504 begin to download photo : 1343072855 begin to download photo : 1343073005 begin to download photo : 1343073300 begin to download photo : 1343073460 download finish for photo 1343073300 begin to download photo : 1343073321 download finish for photo 1343073005 begin to download photo : 1343073048 download finish for photo 1343072504 begin to download photo : 1343072531 download finish for photo 1343072855 begin to download photo : 1343072884 download finish for photo 1343073460 begin to download photo : 1343073462 download finish for photo 1343073321 begin to download photo : 1343073441 download finish for photo 1343072531 begin to download photo : 1343072557 download finish for photo 1343073048 begin to download photo : 1343073055 download finish for photo 1343072884 begin to download photo : 1343072887 download finish for photo 1343073462 download finish for photo 1343073441 begin to download photo : 1343073446 download finish for photo 1343073055 begin to download photo : 1343073206 download finish for photo 1343072887 begin to download photo : 1343072986 download finish for photo 1343072557 begin to download photo : 1343072589 download finish for photo 1343073446 begin to download photo : 1343073451 download finish for photo 1343073206 begin to download photo : 1343073248 download finish for photo 1343072589 begin to download photo : 1343072616 download finish for photo 1343073451 download finish for photo 1343072986 begin to download photo : 1343073457 begin to download photo : 1343072992 download finish for photo 1343073248 begin to download photo : 1343073271 download finish for photo 1343072616 begin to download photo : 1343072838 download finish for photo 1343073457 download finish for photo 1343072992 begin to download photo : 1343073002 download finish for photo 1343073271 download finish for photo 1343072838 download finish for photo 1343073002 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 : 26 ; length of list_pids : 26 ; length of list_args : 26 results_Auto_P21292609_11-03-2025_15_37_01.pdf 21292623 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=21292623 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343073493: '1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652591_0.png'} change filename to text .imagette212926231741703821/ imagette212926231741703821/1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652591_0.png.png imagette212926241741703821/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/face773bf7e4a875ed139835765973d0_44987374.png imagette212926231741703821 21292624 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=21292624 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212926241741703821 21292627 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=21292627 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343073478: '1741703652_1340238_1343072887_071543546ee1460f0c91f806b2cfafcb_rle_crop_3705652289_0.png', 1343073479: '1741703652_1340238_1343072887_071543546ee1460f0c91f806b2cfafcb_rle_crop_3705652297_0.png', 1343073480: '1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652601_0.png', 1343073481: '1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652590_0.png', 1343073482: '1741703652_1340238_1343072557_d36a17b6b881ae86cb6ab973f611d0dd_rle_crop_3705652649_0.png', 1343073483: '1741703652_1340238_1343072504_c5019145eef3a7a5b67d85d9855761eb_rle_crop_3705652962_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4b726927fdb44a7edf3706144639d663_65762589.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/12d057396b470c505f07bbfe3fac9018_33468092.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/530adb5fca0a0208857d80b35b8d9ebf_66262641.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ead4c5b63bb44e8d3cf007a776e7b98c_6757203.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9ece756a3608fd0bc07afc36202404c7_84699387.png change filename to text .imagette212926271741703821/ imagette212926271741703821/1741703652_1340238_1343072887_071543546ee1460f0c91f806b2cfafcb_rle_crop_3705652289_0.png.png imagette212926271741703821/1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652590_0.png.png imagette212926271741703821/1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652601_0.png.png imagette212926271741703821/1741703652_1340238_1343072557_d36a17b6b881ae86cb6ab973f611d0dd_rle_crop_3705652649_0.png.png imagette212926271741703821/1741703652_1340238_1343072887_071543546ee1460f0c91f806b2cfafcb_rle_crop_3705652297_0.png.png imagette212926271741703821/1741703652_1340238_1343072504_c5019145eef3a7a5b67d85d9855761eb_rle_crop_3705652962_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1cc8b3f7b05966687eca3c3364ef826a_67784288.png imagette212926271741703821 21292629 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=21292629 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343073495: '1741703652_1340238_1343072887_071543546ee1460f0c91f806b2cfafcb_rle_crop_3705652301_0.png'} change filename to text .imagette212926291741703821/ imagette212926291741703821/1741703652_1340238_1343072887_071543546ee1460f0c91f806b2cfafcb_rle_crop_3705652301_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a15777dfdc7c1454e30b0d0c07127b5e_21465631.png imagette212926291741703821 21292630 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=21292630 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343073489: '1741703652_1340238_1343072887_071543546ee1460f0c91f806b2cfafcb_rle_crop_3705652294_0.png'} change filename to text .imagette212926301741703821/ imagette212926301741703821/1741703652_1340238_1343072887_071543546ee1460f0c91f806b2cfafcb_rle_crop_3705652294_0.png.png imagette212926311741703821/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/33bb3ea4eced94ebb7908accb051fabc_44811268.png imagette212926301741703821 21292631 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=21292631 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212926311741703821 21292633 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=21292633 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343073277: '1741703633_1339919_1343072855_9cca5f8149a229da13a01d703550906e_rle_crop_3705649808_0.png'} change filename to text .imagette212926331741703821/ imagette212926331741703821/1741703633_1339919_1343072855_9cca5f8149a229da13a01d703550906e_rle_crop_3705649808_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3b29ff4f75f88421f0b95e7390f34466_68226591.png imagette212926331741703821 21292625 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=21292625 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343073486: '1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652599_0.png', 1343073487: '1741703652_1340238_1343072557_d36a17b6b881ae86cb6ab973f611d0dd_rle_crop_3705652648_0.png', 1343073488: '1741703652_1340238_1343072504_c5019145eef3a7a5b67d85d9855761eb_rle_crop_3705652958_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/13bf650e20d48abb8255759dfb47822c_52540969.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/65574a551cf0f4651a1d218c19732ab6_88873778.png change filename to text .imagette212926251741703821/ imagette212926251741703821/1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652599_0.png.png imagette212926251741703821/1741703652_1340238_1343072557_d36a17b6b881ae86cb6ab973f611d0dd_rle_crop_3705652648_0.png.png imagette212926251741703821/1741703652_1340238_1343072504_c5019145eef3a7a5b67d85d9855761eb_rle_crop_3705652958_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/24be435703b0766b1722440889fcd9eb_82644539.png imagette212926251741703821 21292626 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=21292626 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343073491: '1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652595_0.png', 1343073492: '1741703652_1340238_1343072557_d36a17b6b881ae86cb6ab973f611d0dd_rle_crop_3705652645_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e8f632175bda097742651659c8a69f8e_19653375.png change filename to text .imagette212926261741703822/ imagette212926261741703822/1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652595_0.png.png imagette212926261741703822/1741703652_1340238_1343072557_d36a17b6b881ae86cb6ab973f611d0dd_rle_crop_3705652645_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d74c8c2e2d25a4dbe92c70c8f12b1d27_84050968.png imagette212926261741703822 21292632 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=21292632 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343073473: '1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652598_0.png', 1343073474: '1741703652_1340238_1343072557_d36a17b6b881ae86cb6ab973f611d0dd_rle_crop_3705652647_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0e71eb5dc383bfc66a6fb6595e4b06e5_62716194.png change filename to text .imagette212926321741703822/ imagette212926321741703822/1741703652_1340238_1343072557_d36a17b6b881ae86cb6ab973f611d0dd_rle_crop_3705652647_0.png.png imagette212926321741703822/1741703652_1340238_1343072589_9789f213daa3b7ff8bb21ff4f868af3a_rle_crop_3705652598_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/354d2671309fce285ac42744b5e8ed14_48119084.png imagette212926321741703822 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21292609 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21292634,21292635,21292636,21292637,21292638,21292639,21292640,21292641,21292642,21292643,21292644,21292645?tags=papier,plastique,mal_croppe,Carton_gris,Carton_brun,autre_refus,environnement,metal,cartonnette,flou,Teint_Dans_La_Masse,kraft your option no_mail is active, we will not send the real mail to your client args[1343073462] : ('0.048584428850848314',) no score found for photo 1343073462 We are sending mail with results at report@fotonower.com args[1343073460] : ('0.048584428850848314',) no score found for photo 1343073460 We are sending mail with results at report@fotonower.com args[1343073457] : ('0.048584428850848314',) no score found for photo 1343073457 We are sending mail with results at report@fotonower.com args[1343073451] : ('0.048584428850848314',) no score found for photo 1343073451 We are sending mail with results at report@fotonower.com args[1343073446] : ('0.048584428850848314',) no score found for photo 1343073446 We are sending mail with results at report@fotonower.com args[1343073441] : ('0.048584428850848314',) no score found for photo 1343073441 We are sending mail with results at report@fotonower.com args[1343073321] : ('0.048584428850848314',) no score found for photo 1343073321 We are sending mail with results at report@fotonower.com args[1343073300] : ('0.048584428850848314',) no score found for photo 1343073300 We are sending mail with results at report@fotonower.com args[1343073271] : ('0.048584428850848314',) no score found for photo 1343073271 We are sending mail with results at report@fotonower.com args[1343073248] : ('0.048584428850848314',) no score found for photo 1343073248 We are sending mail with results at report@fotonower.com args[1343073206] : ('0.048584428850848314',) no score found for photo 1343073206 We are sending mail with results at report@fotonower.com args[1343073055] : ('0.048584428850848314',) no score found for photo 1343073055 We are sending mail with results at report@fotonower.com args[1343073048] : ('0.048584428850848314',) no score found for photo 1343073048 We are sending mail with results at report@fotonower.com args[1343073005] : ('0.048584428850848314',) no score found for photo 1343073005 We are sending mail with results at report@fotonower.com args[1343073002] : ('0.048584428850848314',) no score found for photo 1343073002 We are sending mail with results at report@fotonower.com args[1343072992] : ('0.048584428850848314',) no score found for photo 1343072992 We are sending mail with results at report@fotonower.com args[1343072986] : ('0.048584428850848314',) no score found for photo 1343072986 We are sending mail with results at report@fotonower.com args[1343072887] : ('0.048584428850848314',) no score found for photo 1343072887 We are sending mail with results at report@fotonower.com args[1343072884] : ('0.048584428850848314',) no score found for photo 1343072884 We are sending mail with results at report@fotonower.com args[1343072855] : ('0.048584428850848314',) no score found for photo 1343072855 We are sending mail with results at report@fotonower.com args[1343072838] : ('0.048584428850848314',) no score found for photo 1343072838 We are sending mail with results at report@fotonower.com args[1343072616] : ('0.048584428850848314',) no score found for photo 1343072616 We are sending mail with results at report@fotonower.com args[1343072589] : ('0.048584428850848314',) no score found for photo 1343072589 We are sending mail with results at report@fotonower.com args[1343072557] : ('0.048584428850848314',) no score found for photo 1343072557 We are sending mail with results at report@fotonower.com args[1343072531] : ('0.048584428850848314',) no score found for photo 1343072531 We are sending mail with results at report@fotonower.com args[1343072504] : ('0.048584428850848314',) no score found for photo 1343072504 We are sending mail with results at report@fotonower.com refus_total : 0.048584428850848314 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=21292609 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_P21292609_11-03-2025_15_37_01.pdf results_Auto_P21292609_11-03-2025_15_37_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21292609_11-03-2025_15_37_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21292609','results_Auto_P21292609_11-03-2025_15_37_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21292609_11-03-2025_15_37_01.pdf','pdf','','0.26','0.048584428850848314') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21292609]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504] map_info['map_portfolio_photo'] : {21292609: [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504]} final : False mtd_id 4302 list_pids : [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504] 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, '2658596') ('4302', '21292609', '1343073462', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073460', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073457', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073451', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073446', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073441', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073321', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073300', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073271', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073248', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073206', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073055', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073048', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073005', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073002', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072992', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072986', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072887', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072884', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072855', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072838', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072616', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072589', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072557', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072531', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072504', None, None, None, None, None, '2658596') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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', '21292609', '1343073462', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073460', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073457', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073451', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073446', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073441', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073321', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073300', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073271', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073248', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073206', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073055', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073048', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073005', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073002', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072992', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072986', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072887', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072884', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072855', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072838', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072616', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072589', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072557', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072531', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072504', None, None, None, None, None, '2658596')] time used for this insertion : 0.017681598663330078 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.591256856918335 time spend to save output : 0.01804518699645996 total time spend for step 4 : 3.609302043914795 step5:split_time_score Tue Mar 11 15:37:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21292609'] 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 : [('21292609',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21292609) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343073460: {'path': 'temp/1741703820_1464872_1343073460_d67250705d1fb7f491dc5c0b15fb94fe.jpg', 'extension': 'jpg'}, 1343073462: {'path': 'temp/1741703820_1464872_1343073462_2040658c945b5af7ca45b63ee18667bd.jpg', 'extension': 'jpg'}, 1343073300: {'path': 'temp/1741703820_1464872_1343073300_0c691330c8ecfbcc5dd6f5b436d1f45a.jpg', 'extension': 'jpg'}, 1343073321: {'path': 'temp/1741703820_1464872_1343073321_9446ecb430c2a60eec692fbe547877f4.jpg', 'extension': 'jpg'}, 1343073441: {'path': 'temp/1741703820_1464872_1343073441_1d0239e54742f8c2fff00a8172bc33d6.jpg', 'extension': 'jpg'}, 1343073446: {'path': 'temp/1741703820_1464872_1343073446_cc19bb7f4453de6e67abd857eb400f78.jpg', 'extension': 'jpg'}, 1343073451: {'path': 'temp/1741703820_1464872_1343073451_4c9e4b389e42823f5a017552a7ba549f.jpg', 'extension': 'jpg'}, 1343073457: {'path': 'temp/1741703820_1464872_1343073457_9bc8abe6e6aaa2413d6e56ce33d4dca8.jpg', 'extension': 'jpg'}, 1343073005: {'path': 'temp/1741703820_1464872_1343073005_38dcce8535878ed2b86797e410f4b690.jpg', 'extension': 'jpg'}, 1343073048: {'path': 'temp/1741703820_1464872_1343073048_0727cceb7c81d737c41f12db9f965231.jpg', 'extension': 'jpg'}, 1343073055: {'path': 'temp/1741703820_1464872_1343073055_171d7c008856f9dad7ba7e4ef37cdc99.jpg', 'extension': 'jpg'}, 1343073206: {'path': 'temp/1741703820_1464872_1343073206_16caf53f413a7a8117d737ea991aa07b.jpg', 'extension': 'jpg'}, 1343073248: {'path': 'temp/1741703820_1464872_1343073248_36281f1402b3f6adfa46a9c16c891996.jpg', 'extension': 'jpg'}, 1343073271: {'path': 'temp/1741703820_1464872_1343073271_a04e2d0f757db42f0a981bd280fa811b.jpg', 'extension': 'jpg'}, 1343072504: {'path': 'temp/1741703820_1464872_1343072504_c5019145eef3a7a5b67d85d9855761eb.jpg', 'extension': 'jpg'}, 1343072531: {'path': 'temp/1741703820_1464872_1343072531_c040c74af22df0f72dde976b984a079b.jpg', 'extension': 'jpg'}, 1343072557: {'path': 'temp/1741703820_1464872_1343072557_d36a17b6b881ae86cb6ab973f611d0dd.jpg', 'extension': 'jpg'}, 1343072589: {'path': 'temp/1741703820_1464872_1343072589_9789f213daa3b7ff8bb21ff4f868af3a.jpg', 'extension': 'jpg'}, 1343072616: {'path': 'temp/1741703820_1464872_1343072616_3475c84073eb7176936a0ec6fa0a2a1c.jpg', 'extension': 'jpg'}, 1343072838: {'path': 'temp/1741703820_1464872_1343072838_a0dc0c64f0483bed1107b3f0e5c663a7.jpg', 'extension': 'jpg'}, 1343072855: {'path': 'temp/1741703820_1464872_1343072855_9cca5f8149a229da13a01d703550906e.jpg', 'extension': 'jpg'}, 1343072884: {'path': 'temp/1741703820_1464872_1343072884_c80e8ee35831feda50c737d8bafe086d.jpg', 'extension': 'jpg'}, 1343072887: {'path': 'temp/1741703820_1464872_1343072887_071543546ee1460f0c91f806b2cfafcb.jpg', 'extension': 'jpg'}, 1343072986: {'path': 'temp/1741703820_1464872_1343072986_1c1e6c3d0da60edb2341202377931731.jpg', 'extension': 'jpg'}, 1343072992: {'path': 'temp/1741703820_1464872_1343072992_900d0c6c6088fcb8dffb17bcb792cdef.jpg', 'extension': 'jpg'}, 1343073002: {'path': 'temp/1741703820_1464872_1343073002_763b8af9319cb4855bf680df359f90cf.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 = 21292609; (('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 = 21292609 group by h (('15', 26),) 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=21292609 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 (21292609) 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 (21292609) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21292609 Nombre de photos uploadées : 26 / 23040 (0%) 11032025 21292609 Nombre de photos taguées (types de déchets): 0 / 26 (0%) 11032025 21292609 Nombre de photos taguées (volume) : 0 / 26 (0%) [{'photo_id': 1343072616, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3475c84073eb7176936a0ec6fa0a2a1c.jpg', 'username': None, 'uploaded_at': 1741703499, 'text': 'image_11032025_15_30_04_10157.jpg'}, {'photo_id': 1343072589, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9789f213daa3b7ff8bb21ff4f868af3a.jpg', 'username': None, 'uploaded_at': 1741703499, 'text': 'image_11032025_15_30_14_10137.jpg'}, {'photo_id': 1343072557, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d36a17b6b881ae86cb6ab973f611d0dd.jpg', 'username': None, 'uploaded_at': 1741703499, 'text': 'image_11032025_15_30_24_10135.jpg'}, {'photo_id': 1343072531, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c040c74af22df0f72dde976b984a079b.jpg', 'username': None, 'uploaded_at': 1741703499, 'text': 'image_11032025_15_30_35_10168.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ?????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002221822738647461 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21292609, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02445220947265625 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1666863, 'mtr_portfolio_id': 21289999, 'dashboard_result_id': 9350494, '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_P21289999_11-03-2025_15_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290065, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1666863, 'mtr_portfolio_id': 21290771, 'dashboard_result_id': 9350495, '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_P21290771_11-03-2025_15_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290843, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1666863, 'mtr_portfolio_id': 21291523, 'dashboard_result_id': 9350496, '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_P21291523_11-03-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21291656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21291657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21291658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21291659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21291660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21291661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21291662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21291663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21291664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21291665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21291666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21291667, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1666863, 'mtr_portfolio_id': 21292609, 'dashboard_result_id': 9350498, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21289999 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': 2658407, 'mtr_portfolio_id': 21289999, 'created_at': datetime.datetime(2025, 3, 11, 15, 2, 59), 'result': '0.06463648848266758', 'result_long': None, 'result_double': None}] Qualite : 0.06463648848266758 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21289999 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21289999_11-03-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21289999 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_P21289999_11-03-2025_15_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290065, 'pht': 3726}}" where mtr_portfolio_id = 21289999 and dashboard_run_id = 1666863 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`=21289999 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9350494, 0.06463648848266758, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21289999_11-03-2025_15_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290065, '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 = 21290771 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': 2658485, 'mtr_portfolio_id': 21290771, 'created_at': datetime.datetime(2025, 3, 11, 15, 21), 'result': '0.07674918487790915', 'result_long': None, 'result_double': None}] Qualite : 0.07674918487790915 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21290771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21290771_11-03-2025_15_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21290771 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_P21290771_11-03-2025_15_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290843, 'pht': 3726}}" where mtr_portfolio_id = 21290771 and dashboard_run_id = 1666863 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`=21290771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9350495, 0.07674918487790915, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21290771_11-03-2025_15_21_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290843, '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 = 21291523 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': 2658529, 'mtr_portfolio_id': 21291523, 'created_at': datetime.datetime(2025, 3, 11, 15, 33), 'result': '0.07358332947441941', 'result_long': None, 'result_double': None}] Qualite : 0.07358332947441941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21291523 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21291523_11-03-2025_15_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21291523 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_P21291523_11-03-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21291656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21291657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21291658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21291659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21291660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21291661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21291662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21291663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21291664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21291665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21291666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21291667, 'pht': 3726}}" where mtr_portfolio_id = 21291523 and dashboard_run_id = 1666863 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`=21291523 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9350496, 0.07358332947441941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21291523_11-03-2025_15_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21291656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21291657, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21291658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21291659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21291660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21291661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21291662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21291663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21291664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21291665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21291666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21291667, '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 = 21292609 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': 2658596, 'mtr_portfolio_id': 21292609, 'created_at': datetime.datetime(2025, 3, 11, 15, 37), 'result': '0.048584428850848314', 'result_long': None, 'result_double': None}] Qualite : 0.048584428850848314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21292609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21292609_11-03-2025_15_37_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21292609 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_P21292609_11-03-2025_15_37_01.pdf'}" where mtr_portfolio_id = 21292609 and dashboard_run_id = 1666863 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`=21292609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9350498, 0.048584428850848314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21292609_11-03-2025_15_37_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21292622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21292623, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21292624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21292625, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21292626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21292627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21292628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21292629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21292630, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21292631, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21292632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21292633, '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 (21289999,21290771,21291523,21292609) result : ((1343055831,), (1343055859,), (1343055885,), (1343055919,), (1343056204,), (1343056239,), (1343056289,), (1343056322,), (1343056360,), (1343056400,), (1343056408,), (1343056417,), (1343056422,), (1343056622,), (1343056629,), (1343056642,), (1343056913,), (1343056963,), (1343056970,), (1343056976,), (1343056983,), (1343056998,), (1343057007,), (1343057171,), (1343057178,), (1343057185,), (1343057189,), (1343057195,), (1343057205,), (1343057314,), (1343057339,), (1343057382,), (1343057415,), (1343057450,), (1343057537,), (1343057550,), (1343057590,), (1343057595,), (1343057599,), (1343057601,), (1343057872,), (1343057898,), (1343057926,), (1343058003,), (1343058136,), (1343058140,), (1343058146,), (1343058149,), (1343058150,), (1343058183,), (1343058245,), (1343058297,), (1343058343,), (1343058361,), (1343058406,), (1343058814,), (1343058854,), (1343058873,), (1343058877,), (1343058923,), (1343058930,), (1343058950,), (1343058956,), (1343058987,), (1343058990,), (1343059025,), (1343059034,), (1343059128,), (1343059191,), (1343059380,), (1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,), (1343065784,), (1343065603,), (1343065638,), (1343065687,), (1343065730,), (1343066285,), (1343066327,), (1343066355,), (1343066405,), (1343066445,), (1343066490,), (1343066891,), (1343066920,), (1343066970,), (1343067423,), (1343067452,), (1343067485,), (1343067498,), (1343067526,), (1343067552,), (1343067696,), (1343067708,), (1343067716,), (1343067744,), (1343068119,), (1343068149,), (1343068175,), (1343068206,), (1343068228,), (1343068252,), (1343068401,), (1343068421,), (1343068473,), (1343068524,), (1343069006,), (1343069025,), (1343069042,), (1343069065,), (1343069115,), (1343069162,), (1343069667,), (1343069748,), (1343069841,), (1343069873,), (1343069913,), (1343069919,), (1343070257,), (1343070328,), (1343070359,), (1343070408,), (1343070605,), (1343070634,), (1343070674,), (1343070714,), (1343070754,), (1343070821,), (1343071087,), (1343071692,), (1343071723,), (1343071766,), (1343071819,), (1343071856,), (1343071875,), (1343072003,), (1343072027,), (1343072034,), (1343072054,), (1343072146,), (1343072150,), (1343072152,), (1343072182,), (1343072678,), (1343072504,), (1343072531,), (1343072557,), (1343072589,), (1343072616,), (1343072838,), (1343072855,), (1343072884,), (1343072887,), (1343072986,), (1343072992,), (1343073002,), (1343073005,), (1343073048,), (1343073055,), (1343073206,), (1343073248,), (1343073271,), (1343073300,), (1343073321,), (1343073441,), (1343073446,), (1343073451,), (1343073457,), (1343073460,), (1343073462,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 26, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21292609]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504] map_info['map_portfolio_photo'] : {21292609: [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504]} final : True mtd_id 4302 list_pids : [1343073462, 1343073460, 1343073457, 1343073451, 1343073446, 1343073441, 1343073321, 1343073300, 1343073271, 1343073248, 1343073206, 1343073055, 1343073048, 1343073005, 1343073002, 1343072992, 1343072986, 1343072887, 1343072884, 1343072855, 1343072838, 1343072616, 1343072589, 1343072557, 1343072531, 1343072504] Looping around the photos to save general results len do output : 1 /21292609Didn'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, '2658596') ('4302', '21292609', '1343073462', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073460', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073457', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073451', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073446', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073441', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073321', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073300', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073271', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073248', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073206', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073055', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073048', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073005', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343073002', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072992', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072986', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072887', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072884', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072855', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072838', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072616', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072589', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072557', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072531', None, None, None, None, None, '2658596') ('4302', None, None, None, None, None, None, None, '2658596') ('4302', '21292609', '1343072504', None, None, None, None, None, '2658596') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21292609', 'None', None, None, None, None, '2658596'), ('4302', '21292609', '1343073462', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073460', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073457', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073451', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073446', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073441', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073321', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073300', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073271', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073248', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073206', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073055', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073048', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073005', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343073002', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072992', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072986', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072887', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072884', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072855', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072838', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072616', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072589', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072557', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072531', None, None, None, None, None, '2658596'), ('4302', '21292609', '1343072504', None, None, None, None, None, '2658596')] time used for this insertion : 0.016486644744873047 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.32812976837158203 time spend to save output : 0.01681208610534668 total time spend for step 5 : 0.3449418544769287 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 (2658596) 2.52user 2.32system 0:09.33elapsed 52%CPU (0avgtext+0avgdata 168212maxresident)k 28032inputs+18056outputs (145major+78355minor)pagefaults 0swaps