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 : 2925174 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 (2576470) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2576470) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446760 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2576470'] with mtr_portfolio_ids : ['20446760'] and first list_photo_ids : [] new path : /proc/2925174/ Name: python3 Umask: 0002 State: R (running) Tgid: 2925174 Ngid: 0 Pid: 2925174 PPid: 2925173 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2925174 NSpid: 2925174 NSpgid: 2922329 NSsid: 2922329 VmPeak: 1106580 kB VmSize: 1106556 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97960 kB VmRSS: 97960 kB RssAnon: 59740 kB RssFile: 38220 kB RssShmem: 0 kB VmData: 865308 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 600 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: 47 nonvoluntary_ctxt_switches: 159 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2925174', 'Ngid': '0', 'Pid': '2925174', 'PPid': '2925173', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2925174', 'NSpid': '2925174', 'NSpgid': '2922329', 'NSsid': '2922329', 'VmPeak': '1106580 kB', 'VmSize': '1106556 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97960 kB', 'VmRSS': '97960 kB', 'RssAnon': '59740 kB', 'RssFile': '38220 kB', 'RssShmem': '0 kB', 'VmData': '865308 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '47', 'nonvoluntary_ctxt_switches': '159'} ('datou_batch_current', '2925174', '1106580', '0', '1106556', '865308', '97960', b'', 'marlene', '2576470') 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 (20446760) 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 (2576470 ) ) 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 (20446760) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336838626, 'portfolio_id': 20446760}, {'photo_id': 1336838617, 'portfolio_id': 20446760}, {'photo_id': 1336838612, 'portfolio_id': 20446760}, {'photo_id': 1336838609, 'portfolio_id': 20446760}, {'photo_id': 1336838550, 'portfolio_id': 20446760}, {'photo_id': 1336838545, 'portfolio_id': 20446760}, {'photo_id': 1336838537, 'portfolio_id': 20446760}, {'photo_id': 1336838531, 'portfolio_id': 20446760}, {'photo_id': 1336838510, 'portfolio_id': 20446760}, {'photo_id': 1336838508, 'portfolio_id': 20446760}, {'photo_id': 1336838169, 'portfolio_id': 20446760}, {'photo_id': 1336838165, 'portfolio_id': 20446760}, {'photo_id': 1336838161, 'portfolio_id': 20446760}, {'photo_id': 1336838127, 'portfolio_id': 20446760}, {'photo_id': 1336838112, 'portfolio_id': 20446760}, {'photo_id': 1336838099, 'portfolio_id': 20446760}, {'photo_id': 1336837993, 'portfolio_id': 20446760}, {'photo_id': 1336837990, 'portfolio_id': 20446760}, {'photo_id': 1336837987, 'portfolio_id': 20446760}, {'photo_id': 1336837932, 'portfolio_id': 20446760}, {'photo_id': 1336837929, 'portfolio_id': 20446760}, {'photo_id': 1336837779, 'portfolio_id': 20446760}, {'photo_id': 1336837776, 'portfolio_id': 20446760}, {'photo_id': 1336837770, 'portfolio_id': 20446760}, {'photo_id': 1336837765, 'portfolio_id': 20446760}] map_portfolio_id_photo_id: {20446760: [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765]} ##### 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.014404773712158203 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 11 14:52:57 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 (20446760) 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 : 20446760 get user id for portfolio 20446760 get sub ptf for main ptf 20446760, type 3726 and hashtags ['cartonnette', 'metal', 'Carton_brun', 'Carton_gris', 'mal_croppe', 'plastique', 'kraft', 'environnement', 'papier', 'flou', 'autre_refus', 'Teint_Dans_La_Masse'] 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`=20446760 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','Carton_brun','Carton_gris','mal_croppe','plastique','kraft','environnement','papier','flou','autre_refus','Teint_Dans_La_Masse')) 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`=20446760 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','Carton_brun','Carton_gris','mal_croppe','plastique','kraft','environnement','papier','flou','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_3726_Teint_Dans_La_Masse_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)[[20446760, 20446767, 3726, 0.5, 702398920, 979], [20446760, 20446768, 3726, 0.5, 492628673, 979], [20446760, 20446769, 3726, 0.5, 2107753024, 979], [20446760, 20446770, 3726, 0.5, 2107753020, 979], [20446760, 20446771, 3726, 0.5, 2107755527, 979], [20446760, 20446772, 3726, 0.5, 492725882, 979], [20446760, 20446773, 3726, 0.5, 493202403, 979], [20446760, 20446774, 3726, 0.5, 493012381, 979], [20446760, 20446775, 3726, 0.5, 492668766, 979], [20446760, 20446776, 3726, 0.5, 492777938, 979], [20446760, 20446777, 3726, 0.5, 2107752406, 979], [20446760, 20446778, 3726, 0.5, 2107752385, 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`=20446760 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','Carton_brun','Carton_gris','mal_croppe','plastique','kraft','environnement','papier','flou','autre_refus','Teint_Dans_La_Masse')) 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`=20446760 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','Carton_brun','Carton_gris','mal_croppe','plastique','kraft','environnement','papier','flou','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20446760, 'sub_port_id': 20446767, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121416, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}, 'metal': {'main_port_id': 20446760, 'sub_port_id': 20446768, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121417, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}, 'Carton_brun': {'main_port_id': 20446760, 'sub_port_id': 20446769, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121418, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}, 'Carton_gris': {'main_port_id': 20446760, 'sub_port_id': 20446770, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121419, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}, 'mal_croppe': {'main_port_id': 20446760, 'sub_port_id': 20446771, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121420, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}, 'plastique': {'main_port_id': 20446760, 'sub_port_id': 20446772, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121421, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}, 'kraft': {'main_port_id': 20446760, 'sub_port_id': 20446773, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121422, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}, 'environnement': {'main_port_id': 20446760, 'sub_port_id': 20446774, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121423, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}, 'papier': {'main_port_id': 20446760, 'sub_port_id': 20446775, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121424, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}, 'flou': {'main_port_id': 20446760, 'sub_port_id': 20446776, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121425, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}, 'autre_refus': {'main_port_id': 20446760, 'sub_port_id': 20446777, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121426, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20446760, 'sub_port_id': 20446778, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121427, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446767 , 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=20446760 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 (20446767) result : ((1336838135,), (1336838136,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446768 , 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=20446760 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 (20446768) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446769 , 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=20446760 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 (20446769) result : ((1336838139,), (1336838140,), (1336838141,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446770 , 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=20446760 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 (20446770) result : ((1336838132,), (1336838133,), (1336838134,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446771 , 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=20446760 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 (20446771) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446772 , 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=20446760 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 (20446772) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446773 , 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=20446760 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 (20446773) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446774 , 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=20446760 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 (20446774) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446775 , 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=20446760 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 (20446775) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446776 , 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=20446760 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 (20446776) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446777 , 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=20446760 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 (20446777) result : ((1336838129,), (1336838130,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20446778 , 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=20446760 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 (20446778) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20446760) result : ((1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20446760 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','Carton_brun','Carton_gris','mal_croppe','plastique','kraft','environnement','papier','flou','autre_refus','Teint_Dans_La_Masse')) 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`=20446760 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','Carton_brun','Carton_gris','mal_croppe','plastique','kraft','environnement','papier','flou','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_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__11022025_14_45_04_10159_4417_Teint_Dans_La_Masse_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)[[20446760, 20446779, 4417, 0.5, 702398920, 979], [20446760, 20446780, 4417, 0.5, 492628673, 979], [20446760, 20446781, 4417, 0.5, 2107753024, 979], [20446760, 20446782, 4417, 0.5, 2107753020, 979], [20446760, 20446783, 4417, 0.5, 2107755527, 979], [20446760, 20446784, 4417, 0.5, 492725882, 979], [20446760, 20446785, 4417, 0.5, 493202403, 979], [20446760, 20446786, 4417, 0.5, 493012381, 979], [20446760, 20446787, 4417, 0.5, 492668766, 979], [20446760, 20446788, 4417, 0.5, 492777938, 979], [20446760, 20446789, 4417, 0.5, 2107752406, 979], [20446760, 20446790, 4417, 0.5, 2107752385, 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`=20446760 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','Carton_brun','Carton_gris','mal_croppe','plastique','kraft','environnement','papier','flou','autre_refus','Teint_Dans_La_Masse')) 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`=20446760 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','metal','Carton_brun','Carton_gris','mal_croppe','plastique','kraft','environnement','papier','flou','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20446760, 'sub_port_id': 20446779, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121428, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}, 'metal': {'main_port_id': 20446760, 'sub_port_id': 20446780, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121429, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}, 'Carton_brun': {'main_port_id': 20446760, 'sub_port_id': 20446781, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121430, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}, 'Carton_gris': {'main_port_id': 20446760, 'sub_port_id': 20446782, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121431, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}, 'mal_croppe': {'main_port_id': 20446760, 'sub_port_id': 20446783, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121432, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}, 'plastique': {'main_port_id': 20446760, 'sub_port_id': 20446784, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121433, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}, 'kraft': {'main_port_id': 20446760, 'sub_port_id': 20446785, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121434, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}, 'environnement': {'main_port_id': 20446760, 'sub_port_id': 20446786, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121435, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}, 'papier': {'main_port_id': 20446760, 'sub_port_id': 20446787, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121436, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}, 'flou': {'main_port_id': 20446760, 'sub_port_id': 20446788, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121437, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}, 'autre_refus': {'main_port_id': 20446760, 'sub_port_id': 20446789, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121438, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20446760, 'sub_port_id': 20446790, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13121439, 'last_updated_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 14, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 14, 52, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446779,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446767 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446780,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446768 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446781,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446769 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446782,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446770 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446783,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446771 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446784,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446772 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446785,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446773 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446786,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446774 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446787,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446775 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446788,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446776 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446789,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446777 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20446790,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20446778 lien utilise dans velours : https://www.fotonower.com/velours/20446779,20446780,20446781,20446782,20446783,20446784,20446785,20446786,20446787,20446788,20446789,20446790?tags=cartonnette,metal,Carton_brun,Carton_gris,mal_croppe,plastique,kraft,environnement,papier,flou,autre_refus,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20446760]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765] map_info['map_portfolio_photo'] : {20446760: [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765]} final : False mtd_id 4302 list_pids : [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765] Looping around the photos to save general results len do output : 1 /20446760. 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, '2576470') ('4302', '20446760', '1336838626', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838617', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838612', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838609', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838550', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838545', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838537', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838531', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838510', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838508', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838169', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838165', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838161', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838127', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838112', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838099', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837993', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837990', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837987', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837932', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837929', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837779', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837776', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837770', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837765', None, None, None, None, None, '2576470') 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', None, '20446760', "{'cartonnette': 20446767, 'metal': 20446768, 'Carton_brun': 20446769, 'Carton_gris': 20446770, 'mal_croppe': 20446771, 'plastique': 20446772, 'kraft': 20446773, 'environnement': 20446774, 'papier': 20446775, 'flou': 20446776, 'autre_refus': 20446777, 'Teint_Dans_La_Masse': 20446778}", None, None, None, None, '2576470'), ('4302', '20446760', '1336838626', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838617', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838612', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838609', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838550', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838545', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838537', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838531', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838510', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838508', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838169', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838165', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838161', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838127', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838112', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838099', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837993', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837990', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837987', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837932', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837929', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837779', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837776', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837770', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837765', None, None, None, None, None, '2576470')] time used for this insertion : 0.015550613403320312 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0196406841278076 time spend to save output : 0.015958547592163086 total time spend for step 1 : 2.0355992317199707 step2:final Tue Feb 11 14:52: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 (20446760) 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 20446760 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336837779,1336837776,1336837770,1336837765,1336837932,1336837929,1336838127,1336838112,1336838099,1336837993,1336837990,1336837987,1336838169,1336838165,1336838161,1336838550,1336838545,1336838537,1336838531,1336838510,1336838508,1336838626,1336838617,1336838612,1336838609); 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([20446760]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} new output for save of step final : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765] map_info['map_portfolio_photo'] : {20446760: [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765]} final : False mtd_id 4302 list_pids : [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765] Looping around the photos to save general results len do output : 25 /1336838626.Didn't retrieve data . /1336838617.Didn't retrieve data . /1336838612.Didn't retrieve data . /1336838609.Didn't retrieve data . /1336838550.Didn't retrieve data . /1336838545.Didn't retrieve data . /1336838537.Didn't retrieve data . /1336838531.Didn't retrieve data . /1336838510.Didn't retrieve data . /1336838508.Didn't retrieve data . /1336838169.Didn't retrieve data . /1336838165.Didn't retrieve data . /1336838161.Didn't retrieve data . /1336838127.Didn't retrieve data . /1336838112.Didn't retrieve data . /1336838099.Didn't retrieve data . /1336837993.Didn't retrieve data . /1336837990.Didn't retrieve data . /1336837987.Didn't retrieve data . /1336837932.Didn't retrieve data . /1336837929.Didn't retrieve data . /1336837779.Didn't retrieve data . /1336837776.Didn't retrieve data . /1336837770.Didn't retrieve data . /1336837765.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, '2576470') ('4302', '20446760', '1336838626', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838617', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838612', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838609', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838550', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838545', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838537', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838531', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838510', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838508', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838169', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838165', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838161', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838127', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838112', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838099', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837993', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837990', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837987', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837932', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837929', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837779', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837776', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837770', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837765', None, None, None, None, None, '2576470') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 75 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', '20446760', '1336838626', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838617', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838612', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838609', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838550', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838545', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838537', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838531', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838510', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838508', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838169', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838165', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838161', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838127', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838112', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336838099', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336837993', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336837990', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336837987', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336837932', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336837929', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336837779', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336837776', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336837770', '0.04111710617578322', None, None, None, None, '2576470'), ('4302', '20446760', '1336837765', '0.04111710617578322', None, None, None, None, '2576470')] time used for this insertion : 0.015833616256713867 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.031983375549316406 time spend to save output : 0.01714301109313965 total time spend for step 2 : 0.049126386642456055 step3:velours_tree Tue Feb 11 14:52:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20446760: [{'cartonnette': 20446767, 'metal': 20446768, 'Carton_brun': 20446769, 'Carton_gris': 20446770, 'mal_croppe': 20446771, 'plastique': 20446772, 'kraft': 20446773, 'environnement': 20446774, 'papier': 20446775, 'flou': 20446776, 'autre_refus': 20446777, 'Teint_Dans_La_Masse': 20446778}]} input_args_next_step : {20446760: ()} output_args : {20446760: [{'cartonnette': 20446767, 'metal': 20446768, 'Carton_brun': 20446769, 'Carton_gris': 20446770, 'mal_croppe': 20446771, 'plastique': 20446772, 'kraft': 20446773, 'environnement': 20446774, 'papier': 20446775, 'flou': 20446776, 'autre_refus': 20446777, 'Teint_Dans_La_Masse': 20446778}]} args : 20446760 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 20446767, 'metal': 20446768, 'Carton_brun': 20446769, 'Carton_gris': 20446770, 'mal_croppe': 20446771, 'plastique': 20446772, 'kraft': 20446773, 'environnement': 20446774, 'papier': 20446775, 'flou': 20446776, 'autre_refus': 20446777, 'Teint_Dans_La_Masse': 20446778},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20446760) 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([20446760]) 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.9406545162200928 time spend to save output : 8.726119995117188e-05 total time spend for step 3 : 0.940741777420044 step4:send_mail_cod Tue Feb 11 14:53: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 : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} input_args_next_step : {1336838626: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838626 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838617 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838612 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838609 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838550 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838545 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838537 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838531 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838510 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838508 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838169 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838165 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838161 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838127 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838112 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336838099 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336837993 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336837990 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336837987 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336837932 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336837929 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336837779 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336837776 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336837770 depend.output_id : 0 input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ()} output_args : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',)} args : 1336837765 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 : {20446760: [{'cartonnette': 20446767, 'metal': 20446768, 'Carton_brun': 20446769, 'Carton_gris': 20446770, 'mal_croppe': 20446771, 'plastique': 20446772, 'kraft': 20446773, 'environnement': 20446774, 'papier': 20446775, 'flou': 20446776, 'autre_refus': 20446777, 'Teint_Dans_La_Masse': 20446778}]} input_args_next_step : {1336838626: ('0.04111710617578322',), 1336838617: ('0.04111710617578322',), 1336838612: ('0.04111710617578322',), 1336838609: ('0.04111710617578322',), 1336838550: ('0.04111710617578322',), 1336838545: ('0.04111710617578322',), 1336838537: ('0.04111710617578322',), 1336838531: ('0.04111710617578322',), 1336838510: ('0.04111710617578322',), 1336838508: ('0.04111710617578322',), 1336838169: ('0.04111710617578322',), 1336838165: ('0.04111710617578322',), 1336838161: ('0.04111710617578322',), 1336838127: ('0.04111710617578322',), 1336838112: ('0.04111710617578322',), 1336838099: ('0.04111710617578322',), 1336837993: ('0.04111710617578322',), 1336837990: ('0.04111710617578322',), 1336837987: ('0.04111710617578322',), 1336837932: ('0.04111710617578322',), 1336837929: ('0.04111710617578322',), 1336837779: ('0.04111710617578322',), 1336837776: ('0.04111710617578322',), 1336837770: ('0.04111710617578322',), 1336837765: ('0.04111710617578322',), 20446760: ()} output_args : {20446760: [{'cartonnette': 20446767, 'metal': 20446768, 'Carton_brun': 20446769, 'Carton_gris': 20446770, 'mal_croppe': 20446771, 'plastique': 20446772, 'kraft': 20446773, 'environnement': 20446774, 'papier': 20446775, 'flou': 20446776, 'autre_refus': 20446777, 'Teint_Dans_La_Masse': 20446778}]} args : 20446760 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 :26, first value : ('0.04111710617578322',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20446760) 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 (1336838626,1336838617,1336838612,1336838609,1336838550,1336838545,1336838537,1336838531,1336838510,1336838508,1336838169,1336838165,1336838161,1336838127,1336838112,1336838099,1336837993,1336837990,1336837987,1336837932,1336837929,1336837779,1336837776,1336837770,1336837765) Found this number of photos: 25 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336837765 begin to download photo : 1336837987 begin to download photo : 1336838161 begin to download photo : 1336838537 begin to download photo : 1336838626 download finish for photo 1336838626 download finish for photo 1336838537 begin to download photo : 1336838545 download finish for photo 1336837987 begin to download photo : 1336837990 download finish for photo 1336838161 begin to download photo : 1336838165 download finish for photo 1336837765 begin to download photo : 1336837770 download finish for photo 1336838545 begin to download photo : 1336838550 download finish for photo 1336837990 begin to download photo : 1336837993 download finish for photo 1336838165 begin to download photo : 1336838169 download finish for photo 1336837770 begin to download photo : 1336837776 download finish for photo 1336838550 begin to download photo : 1336838609 download finish for photo 1336838169 begin to download photo : 1336838508 download finish for photo 1336837993 begin to download photo : 1336838099 download finish for photo 1336837776 begin to download photo : 1336837779 download finish for photo 1336838609 begin to download photo : 1336838612 download finish for photo 1336838508 begin to download photo : 1336838510 download finish for photo 1336838099 begin to download photo : 1336838112 download finish for photo 1336837779 begin to download photo : 1336837929 download finish for photo 1336838612 begin to download photo : 1336838617 download finish for photo 1336838510 begin to download photo : 1336838531 download finish for photo 1336837929 begin to download photo : 1336837932 download finish for photo 1336838112 begin to download photo : 1336838127 download finish for photo 1336838617 download finish for photo 1336838531 download finish for photo 1336837932 download finish for photo 1336838127 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 : 25 ; length of list_pids : 25 ; length of list_args : 25 results_Auto_P20446760_11-02-2025_14_53_01.pdf 20446767 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=20446767 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336838135: '1739281635_2212318_1336837776_3d437affa9fa9afe53eabb77155d021e_rle_crop_3670099668_0.png', 1336838136: '1739281635_2212318_1336837765_b724037edd6ba3dbc5f6e62a9efa8bb4_rle_crop_3670099694_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/9602a8cab7d5053311625b082fdcf296_47805314.png change filename to text .imagette204467671739281981/ imagette204467671739281981/1739281635_2212318_1336837776_3d437affa9fa9afe53eabb77155d021e_rle_crop_3670099668_0.png.png imagette204467671739281981/1739281635_2212318_1336837765_b724037edd6ba3dbc5f6e62a9efa8bb4_rle_crop_3670099694_0.png.png imagette204467681739281981/ imagette204467711739281981/ imagette204467721739281981/ imagette204467731739281981/ imagette204467761739281981/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/a2b659209a028a146881a0658aecca08_76232062.png imagette204467671739281981 20446768 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=20446768 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204467681739281981 20446771 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=20446771 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204467711739281981 20446772 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=20446772 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204467721739281981 20446773 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=20446773 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204467731739281981 20446776 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=20446776 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204467761739281981 20446777 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=20446777 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336838129: '1739281635_2212318_1336837779_2a7d38a7465847f3058fd16d51745bb8_rle_crop_3670099648_0.png', 1336838130: '1739281635_2212318_1336837765_b724037edd6ba3dbc5f6e62a9efa8bb4_rle_crop_3670099696_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/aeeb9a1fd7e3776345befd52ab6a4d51_32361108.png change filename to text .imagette204467771739281981/ imagette204467771739281981/1739281635_2212318_1336837779_2a7d38a7465847f3058fd16d51745bb8_rle_crop_3670099648_0.png.png imagette204467771739281981/1739281635_2212318_1336837765_b724037edd6ba3dbc5f6e62a9efa8bb4_rle_crop_3670099696_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/0c9cedf92a818c66e965aea645edd9b9_36307483.png imagette204467771739281981 20446769 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=20446769 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336838139: '1739281635_2212318_1336837776_3d437affa9fa9afe53eabb77155d021e_rle_crop_3670099672_0.png', 1336838140: '1739281635_2212318_1336837770_bd434da68877c26b257d4fdf84fd6c77_rle_crop_3670099680_0.png', 1336838141: '1739281635_2212318_1336837770_bd434da68877c26b257d4fdf84fd6c77_rle_crop_3670099681_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/ade4851573fc0553faad5245c641da30_82558074.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/391e617ac6e6dd0862569c90723f78b4_82611759.png change filename to text .imagette204467691739281981/ imagette204467691739281981/1739281635_2212318_1336837770_bd434da68877c26b257d4fdf84fd6c77_rle_crop_3670099681_0.png.png imagette204467691739281981/1739281635_2212318_1336837776_3d437affa9fa9afe53eabb77155d021e_rle_crop_3670099672_0.png.png imagette204467691739281981/1739281635_2212318_1336837770_bd434da68877c26b257d4fdf84fd6c77_rle_crop_3670099680_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/d5d4aeccd94e4369ceeeddbed414253e_83130539.png imagette204467691739281981 20446770 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=20446770 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336838132: '1739281635_2212318_1336837770_bd434da68877c26b257d4fdf84fd6c77_rle_crop_3670099678_0.png', 1336838133: '1739281635_2212318_1336837770_bd434da68877c26b257d4fdf84fd6c77_rle_crop_3670099683_0.png', 1336838134: '1739281635_2212318_1336837765_b724037edd6ba3dbc5f6e62a9efa8bb4_rle_crop_3670099702_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/85c37385e97819058f60862ab99a6029_68895778.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f8378cde7971f02f8b9b7a18916abfbb_49604759.png change filename to text .imagette204467701739281981/ imagette204467701739281981/1739281635_2212318_1336837765_b724037edd6ba3dbc5f6e62a9efa8bb4_rle_crop_3670099702_0.png.png imagette204467701739281981/1739281635_2212318_1336837770_bd434da68877c26b257d4fdf84fd6c77_rle_crop_3670099683_0.png.png imagette204467701739281981/1739281635_2212318_1336837770_bd434da68877c26b257d4fdf84fd6c77_rle_crop_3670099678_0.png.png imagette204467781739281981/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e98eb7f6794813d13501c1643938b67c_22575515.png imagette204467701739281981 20446778 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=20446778 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204467781739281981 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20446760 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20446779,20446780,20446781,20446782,20446783,20446784,20446785,20446786,20446787,20446788,20446789,20446790?tags=cartonnette,metal,Carton_brun,Carton_gris,mal_croppe,plastique,kraft,environnement,papier,flou,autre_refus,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1336838626] : ('0.04111710617578322',) no score found for photo 1336838626 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838617] : ('0.04111710617578322',) no score found for photo 1336838617 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838612] : ('0.04111710617578322',) no score found for photo 1336838612 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838609] : ('0.04111710617578322',) no score found for photo 1336838609 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838550] : ('0.04111710617578322',) no score found for photo 1336838550 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838545] : ('0.04111710617578322',) no score found for photo 1336838545 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838537] : ('0.04111710617578322',) no score found for photo 1336838537 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838531] : ('0.04111710617578322',) no score found for photo 1336838531 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838510] : ('0.04111710617578322',) no score found for photo 1336838510 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838508] : ('0.04111710617578322',) no score found for photo 1336838508 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838169] : ('0.04111710617578322',) no score found for photo 1336838169 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838165] : ('0.04111710617578322',) no score found for photo 1336838165 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838161] : ('0.04111710617578322',) no score found for photo 1336838161 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838127] : ('0.04111710617578322',) no score found for photo 1336838127 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838112] : ('0.04111710617578322',) no score found for photo 1336838112 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336838099] : ('0.04111710617578322',) no score found for photo 1336838099 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336837993] : ('0.04111710617578322',) no score found for photo 1336837993 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336837990] : ('0.04111710617578322',) no score found for photo 1336837990 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336837987] : ('0.04111710617578322',) no score found for photo 1336837987 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336837932] : ('0.04111710617578322',) no score found for photo 1336837932 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336837929] : ('0.04111710617578322',) no score found for photo 1336837929 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336837779] : ('0.04111710617578322',) no score found for photo 1336837779 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336837776] : ('0.04111710617578322',) no score found for photo 1336837776 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336837770] : ('0.04111710617578322',) no score found for photo 1336837770 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com args[1336837765] : ('0.04111710617578322',) no score found for photo 1336837765 apple ('0.04111710617578322',) We are sending mail with results at report@fotonower.com refus_total : 0.04111710617578322 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=20446760 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_P20446760_11-02-2025_14_53_01.pdf results_Auto_P20446760_11-02-2025_14_53_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20446760_11-02-2025_14_53_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','20446760','results_Auto_P20446760_11-02-2025_14_53_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20446760_11-02-2025_14_53_01.pdf','pdf','','0.23','0.04111710617578322') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20446760]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765] map_info['map_portfolio_photo'] : {20446760: [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765]} final : False mtd_id 4302 list_pids : [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765] 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, '2576470') ('4302', '20446760', '1336838626', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838617', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838612', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838609', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838550', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838545', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838537', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838531', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838510', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838508', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838169', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838165', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838161', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838127', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838112', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838099', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837993', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837990', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837987', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837932', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837929', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837779', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837776', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837770', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837765', None, None, None, None, None, '2576470') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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', '20446760', '1336838626', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838617', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838612', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838609', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838550', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838545', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838537', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838531', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838510', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838508', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838169', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838165', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838161', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838127', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838112', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838099', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837993', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837990', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837987', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837932', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837929', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837779', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837776', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837770', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837765', None, None, None, None, None, '2576470')] time used for this insertion : 0.01506948471069336 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.179351806640625 time spend to save output : 0.015417814254760742 total time spend for step 4 : 3.1947696208953857 step5:split_time_score Tue Feb 11 14:53:03 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 : ['20446760'] 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 : [('20446760',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20446760) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336838626: {'path': 'temp/1739281980_2925174_1336838626_96ec4e42efb5830ec39d5322ae53b3e5.jpg', 'extension': 'jpg'}, 1336838537: {'path': 'temp/1739281980_2925174_1336838537_34ceda6760c7ff3fecc333be6d981975.jpg', 'extension': 'jpg'}, 1336838545: {'path': 'temp/1739281980_2925174_1336838545_6bfc6145073852bbdd9ec9fb54090064.jpg', 'extension': 'jpg'}, 1336838550: {'path': 'temp/1739281980_2925174_1336838550_2ab40cf2ecda431d311ef2723587172f.jpg', 'extension': 'jpg'}, 1336838609: {'path': 'temp/1739281980_2925174_1336838609_3a416e3170fc31d40e77ac7e62535198.jpg', 'extension': 'jpg'}, 1336838612: {'path': 'temp/1739281980_2925174_1336838612_289e8ac6898a8418c98c70bd2d5d5540.jpg', 'extension': 'jpg'}, 1336838617: {'path': 'temp/1739281980_2925174_1336838617_6c38ec6d34825f7a12f2039cf94368b4.jpg', 'extension': 'jpg'}, 1336838161: {'path': 'temp/1739281980_2925174_1336838161_e7bb2b6573af46ff4e89c81c6bba7489.jpg', 'extension': 'jpg'}, 1336838165: {'path': 'temp/1739281980_2925174_1336838165_1c6260a45710e77a0053a102680fbbfb.jpg', 'extension': 'jpg'}, 1336838169: {'path': 'temp/1739281980_2925174_1336838169_c611597eac42fd650cda552f1de09f2a.jpg', 'extension': 'jpg'}, 1336838508: {'path': 'temp/1739281980_2925174_1336838508_5d38d571e0c5eb8304187cff1b075c1d.jpg', 'extension': 'jpg'}, 1336838510: {'path': 'temp/1739281980_2925174_1336838510_04a79ecb4060c6a028f049ea9796f992.jpg', 'extension': 'jpg'}, 1336838531: {'path': 'temp/1739281980_2925174_1336838531_2348a5d0743885859e5906cf99633aeb.jpg', 'extension': 'jpg'}, 1336837765: {'path': 'temp/1739281980_2925174_1336837765_b724037edd6ba3dbc5f6e62a9efa8bb4.jpg', 'extension': 'jpg'}, 1336837770: {'path': 'temp/1739281980_2925174_1336837770_bd434da68877c26b257d4fdf84fd6c77.jpg', 'extension': 'jpg'}, 1336837776: {'path': 'temp/1739281980_2925174_1336837776_3d437affa9fa9afe53eabb77155d021e.jpg', 'extension': 'jpg'}, 1336837779: {'path': 'temp/1739281980_2925174_1336837779_2a7d38a7465847f3058fd16d51745bb8.jpg', 'extension': 'jpg'}, 1336837929: {'path': 'temp/1739281980_2925174_1336837929_d075cb335d755f9665daa7fd34047bed.jpg', 'extension': 'jpg'}, 1336837932: {'path': 'temp/1739281980_2925174_1336837932_47e94cd1b5b89ddfc43a0c579e17d7fa.jpg', 'extension': 'jpg'}, 1336837987: {'path': 'temp/1739281980_2925174_1336837987_9fc2f922a7ae72152c50711dae452d98.jpg', 'extension': 'jpg'}, 1336837990: {'path': 'temp/1739281980_2925174_1336837990_665d3dcbe568d2f0d633e799837211a9.jpg', 'extension': 'jpg'}, 1336837993: {'path': 'temp/1739281980_2925174_1336837993_3271a482e74624f99e154889b22a5b8b.jpg', 'extension': 'jpg'}, 1336838099: {'path': 'temp/1739281980_2925174_1336838099_802cabd4b29d357dbfb6b40dc57589e7.jpg', 'extension': 'jpg'}, 1336838112: {'path': 'temp/1739281980_2925174_1336838112_a250049725343d7f771da58ccd12d7cf.jpg', 'extension': 'jpg'}, 1336838127: {'path': 'temp/1739281980_2925174_1336838127_90e1ad084134def33974ea668b919707.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 = 20446760; (('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 = 20446760 group by h (('14', 25),) 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=20446760 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 (20446760) 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 (20446760) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11022025 20446760 Nombre de photos uploadées : 25 / 23040 (0%) 11022025 20446760 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 11022025 20446760 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1336837779, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/2a7d38a7465847f3058fd16d51745bb8.jpg', 'username': None, 'uploaded_at': 1739281567, 'text': 'image_11022025_14_45_04_010158m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336837776, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/3d437affa9fa9afe53eabb77155d021e.jpg', 'username': None, 'uploaded_at': 1739281567, 'text': 'image_11022025_14_45_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336837770, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/bd434da68877c26b257d4fdf84fd6c77.jpg', 'username': None, 'uploaded_at': 1739281567, 'text': 'image_11022025_14_45_24_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1336837765, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/b724037edd6ba3dbc5f6e62a9efa8bb4.jpg', 'username': None, 'uploaded_at': 1739281567, 'text': 'image_11022025_14_45_44_010145m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.7220458984375e-06 elapsed_time : order_list_meta_photo_and_scores 1.430511474609375e-05 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018887519836425781 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20446760, '2025-02-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1593540,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02289104461669922 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= 1593540 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602825, 'mtr_portfolio_id': 20445086, 'dashboard_result_id': 8819617, '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_P20445086_11-02-2025_14_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445102, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602825, 'mtr_portfolio_id': 20445427, 'dashboard_result_id': 8819618, '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_P20445427_11-02-2025_14_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445477, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602825, 'mtr_portfolio_id': 20445956, 'dashboard_result_id': 8819619, '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_P20445956_11-02-2025_14_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445974, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602825, 'mtr_portfolio_id': 20446760, 'dashboard_result_id': 8819620, '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 = 20445086 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': 2576339, 'mtr_portfolio_id': 20445086, 'created_at': datetime.datetime(2025, 2, 11, 14, 18, 57), 'result': '0.04085076539270608', 'result_long': None, 'result_double': None}] Qualite : 0.04085076539270608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20445086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445086_11-02-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445086 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_P20445086_11-02-2025_14_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445102, 'pht': 3726}}" where mtr_portfolio_id = 20445086 and dashboard_run_id = 1602825 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`=20445086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8819617, 0.04085076539270608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445086_11-02-2025_14_18_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445102, '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 = 20445427 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': 2576366, 'mtr_portfolio_id': 20445427, 'created_at': datetime.datetime(2025, 2, 11, 14, 32, 58), 'result': '0.05450807037980681', 'result_long': None, 'result_double': None}] Qualite : 0.05450807037980681 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20445427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445427_11-02-2025_14_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445427 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_P20445427_11-02-2025_14_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445477, 'pht': 3726}}" where mtr_portfolio_id = 20445427 and dashboard_run_id = 1602825 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`=20445427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8819618, 0.05450807037980681, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445427_11-02-2025_14_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445467, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445476, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445477, '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 = 20445956 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': 2576410, 'mtr_portfolio_id': 20445956, 'created_at': datetime.datetime(2025, 2, 11, 14, 46, 58), 'result': '0.05104732242789983', 'result_long': None, 'result_double': None}] Qualite : 0.05104732242789983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20445956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445956_11-02-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445956 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_P20445956_11-02-2025_14_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445974, 'pht': 3726}}" where mtr_portfolio_id = 20445956 and dashboard_run_id = 1602825 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`=20445956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8819619, 0.05104732242789983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445956_11-02-2025_14_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20445963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20445964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20445965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20445966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20445967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20445968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20445969, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20445970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20445971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20445972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20445973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20445974, '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 = 20446760 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': 2576470, 'mtr_portfolio_id': 20446760, 'created_at': datetime.datetime(2025, 2, 11, 14, 52, 59), 'result': '0.04111710617578322', 'result_long': None, 'result_double': None}] Qualite : 0.04111710617578322 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20446760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20446760_11-02-2025_14_53_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20446760 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_P20446760_11-02-2025_14_53_01.pdf'}" where mtr_portfolio_id = 20446760 and dashboard_run_id = 1602825 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`=20446760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8819620, 0.04111710617578322, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20446760_11-02-2025_14_53_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20446767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20446768, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20446769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20446770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20446771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20446772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20446773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20446774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20446775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20446776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20446777, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20446778, '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 (20445086,20445427,20445956,20446760) result : ((1336830028,), (1336830030,), (1336830205,), (1336830207,), (1336830210,), (1336830213,), (1336830217,), (1336830219,), (1336830259,), (1336830261,), (1336830264,), (1336830267,), (1336830269,), (1336830272,), (1336830354,), (1336830355,), (1336830357,), (1336830376,), (1336830413,), (1336830417,), (1336830452,), (1336830453,), (1336830471,), (1336830532,), (1336830546,), (1336830548,), (1336830551,), (1336830593,), (1336830595,), (1336830597,), (1336830603,), (1336830716,), (1336830719,), (1336830730,), (1336830794,), (1336830796,), (1336830798,), (1336830801,), (1336830806,), (1336830848,), (1336830933,), (1336830941,), (1336830945,), (1336830948,), (1336830982,), (1336830983,), (1336830986,), (1336830989,), (1336830992,), (1336830993,), (1336831029,), (1336831031,), (1336831033,), (1336831035,), (1336831107,), (1336831079,), (1336831093,), (1336831099,), (1336831103,), (1336831372,), (1336831441,), (1336831476,), (1336831480,), (1336831659,), (1336831684,), (1336831688,), (1336831728,), (1336831730,), (1336831734,), (1336831738,), (1336831780,), (1336831785,), (1336831797,), (1336831800,), (1336831804,), (1336831998,), (1336832003,), (1336832007,), (1336832246,), (1336832313,), (1336832329,), (1336832346,), (1336832362,), (1336832370,), (1336832455,), (1336832458,), (1336832462,), (1336832464,), (1336832467,), (1336832470,), (1336832514,), (1336832517,), (1336832552,), (1336832557,), (1336832567,), (1336832578,), (1336832583,), (1336832586,), (1336832611,), (1336832615,), (1336832619,), (1336832623,), (1336832627,), (1336832649,), (1336832652,), (1336832657,), (1336832662,), (1336832665,), (1336832707,), (1336832710,), (1336832718,), (1336832727,), (1336832734,), (1336832765,), (1336832769,), (1336832774,), (1336832862,), (1336832866,), (1336832924,), (1336832929,), (1336832933,), (1336833180,), (1336833129,), (1336833153,), (1336833158,), (1336833162,), (1336833176,), (1336833204,), (1336833208,), (1336833212,), (1336833216,), (1336833252,), (1336833256,), (1336833261,), (1336833265,), (1336833270,), (1336833278,), (1336833305,), (1336833307,), (1336833455,), (1336833684,), (1336833811,), (1336833815,), (1336833998,), (1336834001,), (1336834005,), (1336834012,), (1336834065,), (1336834067,), (1336834115,), (1336834121,), (1336834127,), (1336834133,), (1336835072,), (1336835138,), (1336835141,), (1336835143,), (1336835147,), (1336835178,), (1336835182,), (1336835186,), (1336835188,), (1336835690,), (1336835694,), (1336835729,), (1336835815,), (1336835821,), (1336836178,), (1336836328,), (1336836499,), (1336836673,), (1336836807,), (1336836842,), (1336836876,), (1336836880,), (1336836936,), (1336837035,), (1336837127,), (1336837308,), (1336837311,), (1336837315,), (1336837318,), (1336837320,), (1336837360,), (1336837507,), (1336837510,), (1336837585,), (1336837587,), (1336837590,), (1336837639,), (1336837674,), (1336837685,), (1336837692,), (1336837695,), (1336837699,), (1336837707,), (1336837783,), (1336837765,), (1336837770,), (1336837776,), (1336837779,), (1336837929,), (1336837932,), (1336837987,), (1336837990,), (1336837993,), (1336838099,), (1336838112,), (1336838127,), (1336838161,), (1336838165,), (1336838169,), (1336838508,), (1336838510,), (1336838531,), (1336838537,), (1336838545,), (1336838550,), (1336838609,), (1336838612,), (1336838617,), (1336838626,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11022025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20446760]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765] map_info['map_portfolio_photo'] : {20446760: [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765]} final : True mtd_id 4302 list_pids : [1336838626, 1336838617, 1336838612, 1336838609, 1336838550, 1336838545, 1336838537, 1336838531, 1336838510, 1336838508, 1336838169, 1336838165, 1336838161, 1336838127, 1336838112, 1336838099, 1336837993, 1336837990, 1336837987, 1336837932, 1336837929, 1336837779, 1336837776, 1336837770, 1336837765] Looping around the photos to save general results len do output : 1 /20446760Didn'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, '2576470') ('4302', '20446760', '1336838626', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838617', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838612', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838609', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838550', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838545', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838537', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838531', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838510', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838508', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838169', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838165', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838161', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838127', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838112', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336838099', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837993', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837990', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837987', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837932', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837929', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837779', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837776', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837770', None, None, None, None, None, '2576470') ('4302', None, None, None, None, None, None, None, '2576470') ('4302', '20446760', '1336837765', None, None, None, None, None, '2576470') 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', None, '20446760', 'None', None, None, None, None, '2576470'), ('4302', '20446760', '1336838626', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838617', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838612', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838609', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838550', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838545', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838537', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838531', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838510', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838508', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838169', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838165', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838161', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838127', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838112', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336838099', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837993', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837990', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837987', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837932', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837929', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837779', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837776', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837770', None, None, None, None, None, '2576470'), ('4302', '20446760', '1336837765', None, None, None, None, None, '2576470')] time used for this insertion : 0.015913724899291992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3535318374633789 time spend to save output : 0.01627326011657715 total time spend for step 5 : 0.36980509757995605 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 (2576470) 2.72user 2.24system 0:09.16elapsed 54%CPU (0avgtext+0avgdata 160960maxresident)k 51296inputs+16120outputs (290major+76802minor)pagefaults 0swaps