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 : 2323957 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 (2674208) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2674208) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478409 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2674208'] with mtr_portfolio_ids : ['21478409'] and first list_photo_ids : [] new path : /proc/2323957/ Name: python3 Umask: 0002 State: R (running) Tgid: 2323957 Ngid: 0 Pid: 2323957 PPid: 2323956 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2323957 NSpid: 2323957 NSpgid: 2321120 NSsid: 2321120 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99792 kB VmRSS: 99792 kB RssAnon: 59792 kB RssFile: 40000 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 596 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: 46 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2323957', 'Ngid': '0', 'Pid': '2323957', 'PPid': '2323956', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2323957', 'NSpid': '2323957', 'NSpgid': '2321120', 'NSsid': '2321120', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99792 kB', 'VmRSS': '99792 kB', 'RssAnon': '59792 kB', 'RssFile': '40000 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '46', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '2323957', '1106844', '0', '1106844', '865596', '99792', b'', 'marlene', '2674208') 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 (21478409) 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 (2674208 ) ) 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 (21478409) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1344653882, 'portfolio_id': 21478409}, {'photo_id': 1344653879, 'portfolio_id': 21478409}, {'photo_id': 1344653876, 'portfolio_id': 21478409}, {'photo_id': 1344653872, 'portfolio_id': 21478409}, {'photo_id': 1344653870, 'portfolio_id': 21478409}, {'photo_id': 1344653868, 'portfolio_id': 21478409}, {'photo_id': 1344653850, 'portfolio_id': 21478409}, {'photo_id': 1344653848, 'portfolio_id': 21478409}, {'photo_id': 1344653842, 'portfolio_id': 21478409}, {'photo_id': 1344653836, 'portfolio_id': 21478409}, {'photo_id': 1344653834, 'portfolio_id': 21478409}, {'photo_id': 1344653817, 'portfolio_id': 21478409}, {'photo_id': 1344653815, 'portfolio_id': 21478409}, {'photo_id': 1344653813, 'portfolio_id': 21478409}, {'photo_id': 1344653811, 'portfolio_id': 21478409}, {'photo_id': 1344653810, 'portfolio_id': 21478409}, {'photo_id': 1344653807, 'portfolio_id': 21478409}, {'photo_id': 1344653787, 'portfolio_id': 21478409}, {'photo_id': 1344653786, 'portfolio_id': 21478409}, {'photo_id': 1344653783, 'portfolio_id': 21478409}, {'photo_id': 1344653755, 'portfolio_id': 21478409}, {'photo_id': 1344653753, 'portfolio_id': 21478409}, {'photo_id': 1344653750, 'portfolio_id': 21478409}, {'photo_id': 1344653749, 'portfolio_id': 21478409}, {'photo_id': 1344653747, 'portfolio_id': 21478409}] map_portfolio_id_photo_id: {21478409: [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747]} ##### 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.01803731918334961 #### 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 Mon Mar 17 05:36:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21478409) 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 : 21478409 get user id for portfolio 21478409 get sub ptf for main ptf 21478409, type 3726 and hashtags ['cartonnette', 'papier', 'Teint_Dans_La_Masse', 'autre_refus', 'Carton_brun', 'Carton_gris', 'mal_croppe', 'environnement', 'plastique', 'kraft', 'metal', 'flou'] 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`=21478409 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','Carton_gris','mal_croppe','environnement','plastique','kraft','metal','flou')) 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`=21478409 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','Carton_gris','mal_croppe','environnement','plastique','kraft','metal','flou')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_3726_flou_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)[[21478409, 21478434, 3726, 0.5, 702398920, 979], [21478409, 21478435, 3726, 0.5, 492668766, 979], [21478409, 21478436, 3726, 0.5, 2107752385, 979], [21478409, 21478437, 3726, 0.5, 2107752406, 979], [21478409, 21478438, 3726, 0.5, 2107753024, 979], [21478409, 21478439, 3726, 0.5, 2107753020, 979], [21478409, 21478440, 3726, 0.5, 2107755527, 979], [21478409, 21478441, 3726, 0.5, 493012381, 979], [21478409, 21478442, 3726, 0.5, 492725882, 979], [21478409, 21478443, 3726, 0.5, 493202403, 979], [21478409, 21478444, 3726, 0.5, 492628673, 979], [21478409, 21478445, 3726, 0.5, 492777938, 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`=21478409 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','Carton_gris','mal_croppe','environnement','plastique','kraft','metal','flou')) 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`=21478409 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','Carton_gris','mal_croppe','environnement','plastique','kraft','metal','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21478409, 'sub_port_id': 21478434, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043305, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}, 'papier': {'main_port_id': 21478409, 'sub_port_id': 21478435, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043306, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21478409, 'sub_port_id': 21478436, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043307, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}, 'autre_refus': {'main_port_id': 21478409, 'sub_port_id': 21478437, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043308, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}, 'Carton_brun': {'main_port_id': 21478409, 'sub_port_id': 21478438, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043309, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}, 'Carton_gris': {'main_port_id': 21478409, 'sub_port_id': 21478439, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043310, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}, 'mal_croppe': {'main_port_id': 21478409, 'sub_port_id': 21478440, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043311, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}, 'environnement': {'main_port_id': 21478409, 'sub_port_id': 21478441, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043312, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}, 'plastique': {'main_port_id': 21478409, 'sub_port_id': 21478442, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043313, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}, 'kraft': {'main_port_id': 21478409, 'sub_port_id': 21478443, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043314, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}, 'metal': {'main_port_id': 21478409, 'sub_port_id': 21478444, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043315, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}, 'flou': {'main_port_id': 21478409, 'sub_port_id': 21478445, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043316, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21478434 , 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=21478409 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 (21478434) result : ((1344653843,), (1344653844,), (1344653845,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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 21478435 , 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=21478409 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 (21478435) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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 21478436 , 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=21478409 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 (21478436) result : ((1344653820,), (1344653821,), (1344653822,), (1344653837,), (1344653897,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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 21478437 , 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=21478409 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 (21478437) result : ((1344653823,), (1344653824,), (1344653838,), (1344653890,), (1344653891,), (1344653892,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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 21478438 , 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=21478409 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 (21478438) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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 21478439 , 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=21478409 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 (21478439) result : ((1344653825,), (1344653826,), (1344653839,), (1344653840,), (1344653841,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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 21478440 , 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=21478409 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 (21478440) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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 21478441 , 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=21478409 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 (21478441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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 21478442 , 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=21478409 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 (21478442) result : ((1344653893,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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 21478443 , 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=21478409 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 (21478443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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 21478444 , 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=21478409 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 (21478444) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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 21478445 , 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=21478409 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 (21478445) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21478409) result : ((1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) 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`=21478409 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','Carton_gris','mal_croppe','environnement','plastique','kraft','metal','flou')) 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`=21478409 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','Carton_gris','mal_croppe','environnement','plastique','kraft','metal','flou')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_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__17032025_05_30_03_10156_4417_flou_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)[[21478409, 21478446, 4417, 0.5, 702398920, 979], [21478409, 21478447, 4417, 0.5, 492668766, 979], [21478409, 21478448, 4417, 0.5, 2107752385, 979], [21478409, 21478449, 4417, 0.5, 2107752406, 979], [21478409, 21478450, 4417, 0.5, 2107753024, 979], [21478409, 21478451, 4417, 0.5, 2107753020, 979], [21478409, 21478452, 4417, 0.5, 2107755527, 979], [21478409, 21478453, 4417, 0.5, 493012381, 979], [21478409, 21478454, 4417, 0.5, 492725882, 979], [21478409, 21478455, 4417, 0.5, 493202403, 979], [21478409, 21478456, 4417, 0.5, 492628673, 979], [21478409, 21478457, 4417, 0.5, 492777938, 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`=21478409 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','Carton_gris','mal_croppe','environnement','plastique','kraft','metal','flou')) 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`=21478409 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','Carton_gris','mal_croppe','environnement','plastique','kraft','metal','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21478409, 'sub_port_id': 21478446, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043317, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}, 'papier': {'main_port_id': 21478409, 'sub_port_id': 21478447, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043318, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21478409, 'sub_port_id': 21478448, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043319, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}, 'autre_refus': {'main_port_id': 21478409, 'sub_port_id': 21478449, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043320, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}, 'Carton_brun': {'main_port_id': 21478409, 'sub_port_id': 21478450, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043321, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}, 'Carton_gris': {'main_port_id': 21478409, 'sub_port_id': 21478451, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043322, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}, 'mal_croppe': {'main_port_id': 21478409, 'sub_port_id': 21478452, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043323, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}, 'environnement': {'main_port_id': 21478409, 'sub_port_id': 21478453, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043324, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}, 'plastique': {'main_port_id': 21478409, 'sub_port_id': 21478454, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043325, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}, 'kraft': {'main_port_id': 21478409, 'sub_port_id': 21478455, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043326, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}, 'metal': {'main_port_id': 21478409, 'sub_port_id': 21478456, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043327, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}, 'flou': {'main_port_id': 21478409, 'sub_port_id': 21478457, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14043328, 'last_updated_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 17, 5, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 17, 5, 37, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478446,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478447,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478436 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21478457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21478445 lien utilise dans velours : https://www.fotonower.com/velours/21478446,21478447,21478448,21478449,21478450,21478451,21478452,21478453,21478454,21478455,21478456,21478457?tags=cartonnette,papier,Teint_Dans_La_Masse,autre_refus,Carton_brun,Carton_gris,mal_croppe,environnement,plastique,kraft,metal,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21478409]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747] map_info['map_portfolio_photo'] : {21478409: [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747]} final : False mtd_id 4302 list_pids : [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747] Looping around the photos to save general results len do output : 1 /21478409. 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, '2674208') ('4302', '21478409', '1344653882', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653879', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653876', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653872', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653870', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653868', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653850', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653848', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653842', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653836', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653834', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653817', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653815', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653813', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653811', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653810', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653807', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653787', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653786', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653783', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653755', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653753', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653750', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653749', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653747', None, None, None, None, None, '2674208') 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, '21478409', "{'cartonnette': 21478434, 'papier': 21478435, 'Teint_Dans_La_Masse': 21478436, 'autre_refus': 21478437, 'Carton_brun': 21478438, 'Carton_gris': 21478439, 'mal_croppe': 21478440, 'environnement': 21478441, 'plastique': 21478442, 'kraft': 21478443, 'metal': 21478444, 'flou': 21478445}", None, None, None, None, '2674208'), ('4302', '21478409', '1344653882', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653879', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653876', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653872', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653870', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653868', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653850', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653848', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653842', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653836', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653834', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653817', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653815', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653813', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653811', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653810', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653807', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653787', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653786', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653783', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653755', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653753', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653750', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653749', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653747', None, None, None, None, None, '2674208')] time used for this insertion : 0.021456003189086914 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2903382778167725 time spend to save output : 0.021857738494873047 total time spend for step 1 : 2.3121960163116455 step2:final Mon Mar 17 05:37:01 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 (21478409) 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 21478409 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1344653755,1344653753,1344653750,1344653749,1344653747,1344653787,1344653786,1344653783,1344653817,1344653815,1344653813,1344653811,1344653810,1344653807,1344653850,1344653848,1344653842,1344653836,1344653834,1344653882,1344653879,1344653876,1344653872,1344653870,1344653868); 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([21478409]) Inside saveOutput : final : False verbose : True original output for save of step final : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} new output for save of step final : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747] map_info['map_portfolio_photo'] : {21478409: [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747]} final : False mtd_id 4302 list_pids : [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747] Looping around the photos to save general results len do output : 25 /1344653882.Didn't retrieve data . /1344653879.Didn't retrieve data . /1344653876.Didn't retrieve data . /1344653872.Didn't retrieve data . /1344653870.Didn't retrieve data . /1344653868.Didn't retrieve data . /1344653850.Didn't retrieve data . /1344653848.Didn't retrieve data . /1344653842.Didn't retrieve data . /1344653836.Didn't retrieve data . /1344653834.Didn't retrieve data . /1344653817.Didn't retrieve data . /1344653815.Didn't retrieve data . /1344653813.Didn't retrieve data . /1344653811.Didn't retrieve data . /1344653810.Didn't retrieve data . /1344653807.Didn't retrieve data . /1344653787.Didn't retrieve data . /1344653786.Didn't retrieve data . /1344653783.Didn't retrieve data . /1344653755.Didn't retrieve data . /1344653753.Didn't retrieve data . /1344653750.Didn't retrieve data . /1344653749.Didn't retrieve data . /1344653747.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, '2674208') ('4302', '21478409', '1344653882', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653879', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653876', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653872', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653870', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653868', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653850', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653848', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653842', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653836', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653834', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653817', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653815', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653813', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653811', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653810', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653807', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653787', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653786', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653783', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653755', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653753', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653750', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653749', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653747', None, None, None, None, None, '2674208') 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', '21478409', '1344653882', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653879', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653876', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653872', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653870', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653868', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653850', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653848', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653842', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653836', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653834', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653817', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653815', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653813', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653811', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653810', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653807', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653787', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653786', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653783', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653755', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653753', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653750', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653749', '0.035173842759779694', None, None, None, None, '2674208'), ('4302', '21478409', '1344653747', '0.035173842759779694', None, None, None, None, '2674208')] time used for this insertion : 0.021325111389160156 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.03242945671081543 time spend to save output : 0.022332429885864258 total time spend for step 2 : 0.05476188659667969 step3:velours_tree Mon Mar 17 05:37:01 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 : {21478409: [{'cartonnette': 21478434, 'papier': 21478435, 'Teint_Dans_La_Masse': 21478436, 'autre_refus': 21478437, 'Carton_brun': 21478438, 'Carton_gris': 21478439, 'mal_croppe': 21478440, 'environnement': 21478441, 'plastique': 21478442, 'kraft': 21478443, 'metal': 21478444, 'flou': 21478445}]} input_args_next_step : {21478409: ()} output_args : {21478409: [{'cartonnette': 21478434, 'papier': 21478435, 'Teint_Dans_La_Masse': 21478436, 'autre_refus': 21478437, 'Carton_brun': 21478438, 'Carton_gris': 21478439, 'mal_croppe': 21478440, 'environnement': 21478441, 'plastique': 21478442, 'kraft': 21478443, 'metal': 21478444, 'flou': 21478445}]} args : 21478409 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': 21478434, 'papier': 21478435, 'Teint_Dans_La_Masse': 21478436, 'autre_refus': 21478437, 'Carton_brun': 21478438, 'Carton_gris': 21478439, 'mal_croppe': 21478440, 'environnement': 21478441, 'plastique': 21478442, 'kraft': 21478443, 'metal': 21478444, 'flou': 21478445},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21478409) 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([21478409]) 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.38208746910095215 time spend to save output : 4.8160552978515625e-05 total time spend for step 3 : 0.38213562965393066 step4:send_mail_cod Mon Mar 17 05:37:01 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 : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} input_args_next_step : {1344653882: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653882 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653879 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653876 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653872 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653870 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653868 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653850 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653848 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653842 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653836 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653834 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653817 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653815 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653813 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653811 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653810 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653807 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653787 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653786 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653783 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653755 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653753 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653750 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653749 depend.output_id : 0 input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ()} output_args : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',)} args : 1344653747 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 : {21478409: [{'cartonnette': 21478434, 'papier': 21478435, 'Teint_Dans_La_Masse': 21478436, 'autre_refus': 21478437, 'Carton_brun': 21478438, 'Carton_gris': 21478439, 'mal_croppe': 21478440, 'environnement': 21478441, 'plastique': 21478442, 'kraft': 21478443, 'metal': 21478444, 'flou': 21478445}]} input_args_next_step : {1344653882: ('0.035173842759779694',), 1344653879: ('0.035173842759779694',), 1344653876: ('0.035173842759779694',), 1344653872: ('0.035173842759779694',), 1344653870: ('0.035173842759779694',), 1344653868: ('0.035173842759779694',), 1344653850: ('0.035173842759779694',), 1344653848: ('0.035173842759779694',), 1344653842: ('0.035173842759779694',), 1344653836: ('0.035173842759779694',), 1344653834: ('0.035173842759779694',), 1344653817: ('0.035173842759779694',), 1344653815: ('0.035173842759779694',), 1344653813: ('0.035173842759779694',), 1344653811: ('0.035173842759779694',), 1344653810: ('0.035173842759779694',), 1344653807: ('0.035173842759779694',), 1344653787: ('0.035173842759779694',), 1344653786: ('0.035173842759779694',), 1344653783: ('0.035173842759779694',), 1344653755: ('0.035173842759779694',), 1344653753: ('0.035173842759779694',), 1344653750: ('0.035173842759779694',), 1344653749: ('0.035173842759779694',), 1344653747: ('0.035173842759779694',), 21478409: ()} output_args : {21478409: [{'cartonnette': 21478434, 'papier': 21478435, 'Teint_Dans_La_Masse': 21478436, 'autre_refus': 21478437, 'Carton_brun': 21478438, 'Carton_gris': 21478439, 'mal_croppe': 21478440, 'environnement': 21478441, 'plastique': 21478442, 'kraft': 21478443, 'metal': 21478444, 'flou': 21478445}]} args : 21478409 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.035173842759779694',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21478409) 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 (1344653882,1344653879,1344653876,1344653872,1344653870,1344653868,1344653850,1344653848,1344653842,1344653836,1344653834,1344653817,1344653815,1344653813,1344653811,1344653810,1344653807,1344653787,1344653786,1344653783,1344653755,1344653753,1344653750,1344653749,1344653747) Found this number of photos: 25 ##### Call download_photos : nb_thread : 5 begin to download photo : 1344653747 begin to download photo : 1344653786 begin to download photo : 1344653815 begin to download photo : 1344653850 begin to download photo : 1344653882 download finish for photo 1344653882 download finish for photo 1344653850 begin to download photo : 1344653868 download finish for photo 1344653786 begin to download photo : 1344653787 download finish for photo 1344653747 begin to download photo : 1344653749 download finish for photo 1344653787 begin to download photo : 1344653807 download finish for photo 1344653815 begin to download photo : 1344653817 download finish for photo 1344653868 begin to download photo : 1344653870 download finish for photo 1344653749 begin to download photo : 1344653750 download finish for photo 1344653807 begin to download photo : 1344653810 download finish for photo 1344653817 begin to download photo : 1344653834 download finish for photo 1344653870 begin to download photo : 1344653872 download finish for photo 1344653750 begin to download photo : 1344653753 download finish for photo 1344653872 begin to download photo : 1344653876 download finish for photo 1344653834 begin to download photo : 1344653836 download finish for photo 1344653810 begin to download photo : 1344653811 download finish for photo 1344653753 begin to download photo : 1344653755 download finish for photo 1344653876 begin to download photo : 1344653879 download finish for photo 1344653755 begin to download photo : 1344653783 download finish for photo 1344653879 download finish for photo 1344653811 begin to download photo : 1344653813 download finish for photo 1344653836 begin to download photo : 1344653842 download finish for photo 1344653783 download finish for photo 1344653813 download finish for photo 1344653842 begin to download photo : 1344653848 download finish for photo 1344653848 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_P21478409_17-03-2025_05_37_02.pdf 21478434 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=21478434 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344653843: '1742186053_2433327_1344653753_d241901af424919b97aac4e358c87ff6_rle_crop_3714823924_0.png', 1344653844: '1742186053_2433327_1344653750_22532361dac3938865f0a6979bc7379b_rle_crop_3714823943_0.png', 1344653845: '1742186053_2433327_1344653749_46e2ec674d813c0897115a3ed47aa56b_rle_crop_3714823957_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/dff7712e4d26cee1b131337248527f99_2501457.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/9add5f05240ca78012461b1d0cbd8aa0_26245393.png change filename to text .imagette214784341742186222/ imagette214784341742186222/1742186053_2433327_1344653749_46e2ec674d813c0897115a3ed47aa56b_rle_crop_3714823957_0.png.png imagette214784341742186222/1742186053_2433327_1344653750_22532361dac3938865f0a6979bc7379b_rle_crop_3714823943_0.png.png imagette214784341742186222/1742186053_2433327_1344653753_d241901af424919b97aac4e358c87ff6_rle_crop_3714823924_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/d1cbb57d8b007c5134dd49b1ca6983d8_41676711.png imagette214784341742186222 21478437 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=21478437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344653823: '1742186032_2433179_1344653786_104a8d97cd3b65407979c8a6f0e1ae4c_rle_crop_3714823721_0.png', 1344653824: '1742186032_2433179_1344653783_5221ab2348e1d4dbe54481f9f4193bea_rle_crop_3714823738_0.png', 1344653838: '1742186053_2433327_1344653753_d241901af424919b97aac4e358c87ff6_rle_crop_3714823925_0.png', 1344653890: '1742186151_2434008_1344653848_c3d18201d143654b59492857b9e9c318_rle_crop_3714824078_0.png', 1344653891: '1742186151_2434008_1344653836_8f3e9ee20932a1858a239c529cb54ad9_rle_crop_3714824198_0.png', 1344653892: '1742186151_2434008_1344653836_8f3e9ee20932a1858a239c529cb54ad9_rle_crop_3714824201_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/8cd244a9b676c868b39841b5adae995b_65599178.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/067b274d9283add1f445110f424daab5_77784073.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/de576ff8c65d8344ee9584fbb59b551f_51718500.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/230e955bb472e4bd13e4f7922cbc7e03_72874457.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/4be7ff55d4debb1a5b92eae5aba26595_9900687.png change filename to text .imagette214784371742186222/ imagette214784371742186222/1742186053_2433327_1344653753_d241901af424919b97aac4e358c87ff6_rle_crop_3714823925_0.png.png imagette214784371742186222/1742186151_2434008_1344653848_c3d18201d143654b59492857b9e9c318_rle_crop_3714824078_0.png.png imagette214784371742186222/1742186032_2433179_1344653783_5221ab2348e1d4dbe54481f9f4193bea_rle_crop_3714823738_0.png.png imagette214784371742186222/1742186032_2433179_1344653786_104a8d97cd3b65407979c8a6f0e1ae4c_rle_crop_3714823721_0.png.png imagette214784371742186222/1742186151_2434008_1344653836_8f3e9ee20932a1858a239c529cb54ad9_rle_crop_3714824198_0.png.png imagette214784371742186222/1742186151_2434008_1344653836_8f3e9ee20932a1858a239c529cb54ad9_rle_crop_3714824201_0.png.png imagette214784401742186222/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/151346b1fe3bbfa77801ede1e4c77d91_32797286.png imagette214784371742186222 21478440 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=21478440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214784401742186222 21478442 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=21478442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344653893: '1742186151_2434008_1344653836_8f3e9ee20932a1858a239c529cb54ad9_rle_crop_3714824200_0.png'} change filename to text .imagette214784421742186222/ imagette214784421742186222/1742186151_2434008_1344653836_8f3e9ee20932a1858a239c529cb54ad9_rle_crop_3714824200_0.png.png imagette214784431742186222/ imagette214784441742186222/ imagette214784451742186222/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/2933041558281d013c521e21208f8ff5_55431747.png imagette214784421742186222 21478443 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=21478443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214784431742186222 21478444 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=21478444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214784441742186222 21478445 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=21478445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214784451742186222 21478436 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=21478436 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344653820: '1742186032_2433179_1344653786_104a8d97cd3b65407979c8a6f0e1ae4c_rle_crop_3714823723_0.png', 1344653821: '1742186032_2433179_1344653783_5221ab2348e1d4dbe54481f9f4193bea_rle_crop_3714823731_0.png', 1344653822: '1742186032_2433179_1344653783_5221ab2348e1d4dbe54481f9f4193bea_rle_crop_3714823735_0.png', 1344653837: '1742186053_2433327_1344653753_d241901af424919b97aac4e358c87ff6_rle_crop_3714823932_0.png', 1344653897: '1742186186_749331_1344653817_3e45b9b2add0ea0e1f7da4ac11c23ecb_rle_crop_3714824480_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/c0ce1aa2a811d2446ac7c46175b4e447_62476892.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/0f331fba77305672279e229a9dd12ea2_91395177.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/9eeb1491fcfea0134a375553ab3214e7_92222291.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/2a32990932b12364a36abc543b7685c6_17796341.png change filename to text .imagette214784361742186222/ imagette214784361742186222/1742186032_2433179_1344653783_5221ab2348e1d4dbe54481f9f4193bea_rle_crop_3714823731_0.png.png imagette214784361742186222/1742186032_2433179_1344653783_5221ab2348e1d4dbe54481f9f4193bea_rle_crop_3714823735_0.png.png imagette214784361742186222/1742186053_2433327_1344653753_d241901af424919b97aac4e358c87ff6_rle_crop_3714823932_0.png.png imagette214784361742186222/1742186032_2433179_1344653786_104a8d97cd3b65407979c8a6f0e1ae4c_rle_crop_3714823723_0.png.png imagette214784361742186222/1742186186_749331_1344653817_3e45b9b2add0ea0e1f7da4ac11c23ecb_rle_crop_3714824480_0.png.png imagette214784381742186223/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/6f002d5d63b37cb29159615be9462340_58617865.png imagette214784361742186222 21478438 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=21478438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214784381742186223 21478439 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=21478439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344653825: '1742186032_2433179_1344653786_104a8d97cd3b65407979c8a6f0e1ae4c_rle_crop_3714823718_0.png', 1344653826: '1742186032_2433179_1344653783_5221ab2348e1d4dbe54481f9f4193bea_rle_crop_3714823740_0.png', 1344653839: '1742186053_2433327_1344653753_d241901af424919b97aac4e358c87ff6_rle_crop_3714823930_0.png', 1344653840: '1742186053_2433327_1344653750_22532361dac3938865f0a6979bc7379b_rle_crop_3714823942_0.png', 1344653841: '1742186053_2433327_1344653749_46e2ec674d813c0897115a3ed47aa56b_rle_crop_3714823951_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/e95602deb1b8cf70e76076d074f64164_52722314.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/ad9a9629dc43d3cb92f81135c5626624_18802385.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/46ca2a262d03b0594fea79a80ea620ce_39934300.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/322f82a89b657c9e1cfac890e574ddc0_96828841.png change filename to text .imagette214784391742186223/ imagette214784391742186223/1742186032_2433179_1344653786_104a8d97cd3b65407979c8a6f0e1ae4c_rle_crop_3714823718_0.png.png imagette214784391742186223/1742186053_2433327_1344653750_22532361dac3938865f0a6979bc7379b_rle_crop_3714823942_0.png.png imagette214784391742186223/1742186053_2433327_1344653749_46e2ec674d813c0897115a3ed47aa56b_rle_crop_3714823951_0.png.png imagette214784391742186223/1742186032_2433179_1344653783_5221ab2348e1d4dbe54481f9f4193bea_rle_crop_3714823740_0.png.png imagette214784391742186223/1742186053_2433327_1344653753_d241901af424919b97aac4e358c87ff6_rle_crop_3714823930_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/b8e0fbc09aa7a54ef36adae2ed9d20c1_43580718.png imagette214784391742186223 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21478409 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21478446,21478447,21478448,21478449,21478450,21478451,21478452,21478453,21478454,21478455,21478456,21478457?tags=cartonnette,papier,Teint_Dans_La_Masse,autre_refus,Carton_brun,Carton_gris,mal_croppe,environnement,plastique,kraft,metal,flou your option no_mail is active, we will not send the real mail to your client args[1344653882] : ('0.035173842759779694',) no score found for photo 1344653882 We are sending mail with results at report@fotonower.com args[1344653879] : ('0.035173842759779694',) no score found for photo 1344653879 We are sending mail with results at report@fotonower.com args[1344653876] : ('0.035173842759779694',) no score found for photo 1344653876 We are sending mail with results at report@fotonower.com args[1344653872] : ('0.035173842759779694',) no score found for photo 1344653872 We are sending mail with results at report@fotonower.com args[1344653870] : ('0.035173842759779694',) no score found for photo 1344653870 We are sending mail with results at report@fotonower.com args[1344653868] : ('0.035173842759779694',) no score found for photo 1344653868 We are sending mail with results at report@fotonower.com args[1344653850] : ('0.035173842759779694',) no score found for photo 1344653850 We are sending mail with results at report@fotonower.com args[1344653848] : ('0.035173842759779694',) no score found for photo 1344653848 We are sending mail with results at report@fotonower.com args[1344653842] : ('0.035173842759779694',) no score found for photo 1344653842 We are sending mail with results at report@fotonower.com args[1344653836] : ('0.035173842759779694',) no score found for photo 1344653836 We are sending mail with results at report@fotonower.com args[1344653834] : ('0.035173842759779694',) no score found for photo 1344653834 We are sending mail with results at report@fotonower.com args[1344653817] : ('0.035173842759779694',) no score found for photo 1344653817 We are sending mail with results at report@fotonower.com args[1344653815] : ('0.035173842759779694',) no score found for photo 1344653815 We are sending mail with results at report@fotonower.com args[1344653813] : ('0.035173842759779694',) no score found for photo 1344653813 We are sending mail with results at report@fotonower.com args[1344653811] : ('0.035173842759779694',) no score found for photo 1344653811 We are sending mail with results at report@fotonower.com args[1344653810] : ('0.035173842759779694',) no score found for photo 1344653810 We are sending mail with results at report@fotonower.com args[1344653807] : ('0.035173842759779694',) no score found for photo 1344653807 We are sending mail with results at report@fotonower.com args[1344653787] : ('0.035173842759779694',) no score found for photo 1344653787 We are sending mail with results at report@fotonower.com args[1344653786] : ('0.035173842759779694',) no score found for photo 1344653786 We are sending mail with results at report@fotonower.com args[1344653783] : ('0.035173842759779694',) no score found for photo 1344653783 We are sending mail with results at report@fotonower.com args[1344653755] : ('0.035173842759779694',) no score found for photo 1344653755 We are sending mail with results at report@fotonower.com args[1344653753] : ('0.035173842759779694',) no score found for photo 1344653753 We are sending mail with results at report@fotonower.com args[1344653750] : ('0.035173842759779694',) no score found for photo 1344653750 We are sending mail with results at report@fotonower.com args[1344653749] : ('0.035173842759779694',) no score found for photo 1344653749 We are sending mail with results at report@fotonower.com args[1344653747] : ('0.035173842759779694',) no score found for photo 1344653747 We are sending mail with results at report@fotonower.com refus_total : 0.035173842759779694 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=21478409 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_P21478409_17-03-2025_05_37_02.pdf results_Auto_P21478409_17-03-2025_05_37_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21478409_17-03-2025_05_37_02.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','21478409','results_Auto_P21478409_17-03-2025_05_37_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21478409_17-03-2025_05_37_02.pdf','pdf','','0.25','0.035173842759779694') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21478409]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747] map_info['map_portfolio_photo'] : {21478409: [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747]} final : False mtd_id 4302 list_pids : [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747] 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, '2674208') ('4302', '21478409', '1344653882', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653879', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653876', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653872', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653870', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653868', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653850', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653848', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653842', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653836', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653834', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653817', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653815', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653813', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653811', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653810', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653807', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653787', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653786', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653783', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653755', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653753', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653750', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653749', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653747', None, None, None, None, None, '2674208') 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', '21478409', '1344653882', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653879', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653876', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653872', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653870', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653868', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653850', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653848', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653842', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653836', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653834', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653817', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653815', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653813', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653811', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653810', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653807', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653787', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653786', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653783', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653755', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653753', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653750', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653749', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653747', None, None, None, None, None, '2674208')] time used for this insertion : 0.02514791488647461 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4684255123138428 time spend to save output : 0.02553868293762207 total time spend for step 4 : 3.493964195251465 step5:split_time_score Mon Mar 17 05:37:05 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 : ['21478409'] 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 : [('21478409',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21478409) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1344653882: {'path': 'temp/1742186221_2323957_1344653882_3c6d38dcdf1b79f8828e5b7064140b09.jpg', 'extension': 'jpg'}, 1344653850: {'path': 'temp/1742186221_2323957_1344653850_b07096ada8a5c34ac9ac8ed349ba528e.jpg', 'extension': 'jpg'}, 1344653868: {'path': 'temp/1742186221_2323957_1344653868_824eeb87f3d1fa9237eceb922b67f1c8.jpg', 'extension': 'jpg'}, 1344653870: {'path': 'temp/1742186221_2323957_1344653870_1e2045b64b3650a3466884c4af1732a2.jpg', 'extension': 'jpg'}, 1344653872: {'path': 'temp/1742186221_2323957_1344653872_c3f3e412cfee16b0f56081731d8677d4.jpg', 'extension': 'jpg'}, 1344653876: {'path': 'temp/1742186221_2323957_1344653876_601102cf2cd54efaa48351b0d70c135a.jpg', 'extension': 'jpg'}, 1344653879: {'path': 'temp/1742186221_2323957_1344653879_b4b1a56c94bcccfbaaa0040003c1d6e2.jpg', 'extension': 'jpg'}, 1344653747: {'path': 'temp/1742186221_2323957_1344653747_e93e00e49aa15d2d6ae579a43f1b224a.jpg', 'extension': 'jpg'}, 1344653749: {'path': 'temp/1742186221_2323957_1344653749_46e2ec674d813c0897115a3ed47aa56b.jpg', 'extension': 'jpg'}, 1344653750: {'path': 'temp/1742186221_2323957_1344653750_22532361dac3938865f0a6979bc7379b.jpg', 'extension': 'jpg'}, 1344653753: {'path': 'temp/1742186221_2323957_1344653753_d241901af424919b97aac4e358c87ff6.jpg', 'extension': 'jpg'}, 1344653755: {'path': 'temp/1742186221_2323957_1344653755_1b53f4ec72377120f715b969fd8f575a.jpg', 'extension': 'jpg'}, 1344653783: {'path': 'temp/1742186221_2323957_1344653783_5221ab2348e1d4dbe54481f9f4193bea.jpg', 'extension': 'jpg'}, 1344653786: {'path': 'temp/1742186221_2323957_1344653786_104a8d97cd3b65407979c8a6f0e1ae4c.jpg', 'extension': 'jpg'}, 1344653787: {'path': 'temp/1742186221_2323957_1344653787_42a934ff38ff5bf342fcbf3886eaae2c.jpg', 'extension': 'jpg'}, 1344653807: {'path': 'temp/1742186221_2323957_1344653807_d22dc9d93bf493f795dddbc9787556b3.jpg', 'extension': 'jpg'}, 1344653810: {'path': 'temp/1742186221_2323957_1344653810_9873443599e31de9f3cd945eb7c112c4.jpg', 'extension': 'jpg'}, 1344653811: {'path': 'temp/1742186221_2323957_1344653811_a2f71f5deb31eaa5a0ec95b358dc8c45.jpg', 'extension': 'jpg'}, 1344653813: {'path': 'temp/1742186221_2323957_1344653813_e971815dfaab7811edb9e826100c011d.jpg', 'extension': 'jpg'}, 1344653815: {'path': 'temp/1742186221_2323957_1344653815_5830cea7fa87044bb43e797775af8283.jpg', 'extension': 'jpg'}, 1344653817: {'path': 'temp/1742186221_2323957_1344653817_3e45b9b2add0ea0e1f7da4ac11c23ecb.jpg', 'extension': 'jpg'}, 1344653834: {'path': 'temp/1742186221_2323957_1344653834_c19751b63a191381f45049d0feb960ac.jpg', 'extension': 'jpg'}, 1344653836: {'path': 'temp/1742186221_2323957_1344653836_8f3e9ee20932a1858a239c529cb54ad9.jpg', 'extension': 'jpg'}, 1344653842: {'path': 'temp/1742186221_2323957_1344653842_6036a3050d06478741face2a817216fd.jpg', 'extension': 'jpg'}, 1344653848: {'path': 'temp/1742186221_2323957_1344653848_c3d18201d143654b59492857b9e9c318.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 = 21478409; (('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 = 21478409 group by h (('05', 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=21478409 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 (21478409) 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 (21478409) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17032025 21478409 Nombre de photos uploadées : 25 / 23040 (0%) 17032025 21478409 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 17032025 21478409 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1344653755, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/1b53f4ec72377120f715b969fd8f575a.jpg', 'username': None, 'uploaded_at': 1742185912, 'text': 'image_17032025_05_30_03_010155m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344653753, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/d241901af424919b97aac4e358c87ff6.jpg', 'username': None, 'uploaded_at': 1742185912, 'text': 'image_17032025_05_30_14_010140m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1344653750, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/22532361dac3938865f0a6979bc7379b.jpg', 'username': None, 'uploaded_at': 1742185912, 'text': 'image_17032025_05_30_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1344653749, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/17/46e2ec674d813c0897115a3ed47aa56b.jpg', 'username': None, 'uploaded_at': 1742185912, 'text': 'image_17032025_05_30_34_010144m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003518342971801758 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21478409, '2025-03-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1672725,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02932882308959961 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= 1672725 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1672725, 'dashboard_run_id': 1680206, 'mtr_portfolio_id': 21478304, 'dashboard_result_id': 9481414, '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_P21478304_17-03-2025_05_34_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21478305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21478306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21478307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21478308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21478309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21478310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21478311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21478312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21478313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21478314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21478315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21478316, 'pht': 3726}}"}, {'dashboat_entry_day': 1672725, 'dashboard_run_id': 1680206, 'mtr_portfolio_id': 21478409, 'dashboard_result_id': 9481415, '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 = 21478304 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': 2674203, 'mtr_portfolio_id': 21478304, 'created_at': datetime.datetime(2025, 3, 17, 5, 34, 30), 'result': '0.06842262402185019', 'result_long': None, 'result_double': None}] Qualite : 0.06842262402185019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21478304 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21478304_17-03-2025_05_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21478304 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_P21478304_17-03-2025_05_34_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21478305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21478306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21478307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21478308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21478309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21478310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21478311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21478312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21478313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21478314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21478315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21478316, 'pht': 3726}}" where mtr_portfolio_id = 21478304 and dashboard_run_id = 1680206 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`=21478304 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9481414, 0.06842262402185019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21478304_17-03-2025_05_34_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21478305, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21478306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21478307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21478308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21478309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21478310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21478311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21478312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21478313, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21478314, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21478315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21478316, '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 = 21478409 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': 2674208, 'mtr_portfolio_id': 21478409, 'created_at': datetime.datetime(2025, 3, 17, 5, 37, 1), 'result': '0.035173842759779694', 'result_long': None, 'result_double': None}] Qualite : 0.035173842759779694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21478409 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21478409_17-03-2025_05_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21478409 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_P21478409_17-03-2025_05_37_02.pdf'}" where mtr_portfolio_id = 21478409 and dashboard_run_id = 1680206 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`=21478409 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9481415, 0.035173842759779694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21478409_17-03-2025_05_37_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21478434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21478435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21478436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21478437, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21478438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21478439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21478440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21478441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21478442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21478443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21478444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21478445, '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 (21478304,21478409) result : ((1344653362,), (1344653409,), (1344653442,), (1344653502,), (1344653504,), (1344653505,), (1344653550,), (1344653597,), (1344653649,), (1344653651,), (1344653672,), (1344653757,), (1344653747,), (1344653749,), (1344653750,), (1344653753,), (1344653755,), (1344653783,), (1344653786,), (1344653787,), (1344653807,), (1344653810,), (1344653811,), (1344653813,), (1344653815,), (1344653817,), (1344653834,), (1344653836,), (1344653842,), (1344653848,), (1344653850,), (1344653868,), (1344653870,), (1344653872,), (1344653876,), (1344653879,), (1344653882,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17032025': {'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([21478409]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747] map_info['map_portfolio_photo'] : {21478409: [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747]} final : True mtd_id 4302 list_pids : [1344653882, 1344653879, 1344653876, 1344653872, 1344653870, 1344653868, 1344653850, 1344653848, 1344653842, 1344653836, 1344653834, 1344653817, 1344653815, 1344653813, 1344653811, 1344653810, 1344653807, 1344653787, 1344653786, 1344653783, 1344653755, 1344653753, 1344653750, 1344653749, 1344653747] Looping around the photos to save general results len do output : 1 /21478409Didn'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, '2674208') ('4302', '21478409', '1344653882', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653879', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653876', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653872', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653870', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653868', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653850', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653848', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653842', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653836', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653834', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653817', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653815', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653813', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653811', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653810', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653807', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653787', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653786', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653783', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653755', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653753', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653750', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653749', None, None, None, None, None, '2674208') ('4302', None, None, None, None, None, None, None, '2674208') ('4302', '21478409', '1344653747', None, None, None, None, None, '2674208') 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, '21478409', 'None', None, None, None, None, '2674208'), ('4302', '21478409', '1344653882', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653879', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653876', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653872', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653870', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653868', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653850', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653848', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653842', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653836', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653834', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653817', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653815', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653813', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653811', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653810', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653807', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653787', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653786', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653783', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653755', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653753', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653750', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653749', None, None, None, None, None, '2674208'), ('4302', '21478409', '1344653747', None, None, None, None, None, '2674208')] time used for this insertion : 0.02119588851928711 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24454498291015625 time spend to save output : 0.0215914249420166 total time spend for step 5 : 0.26613640785217285 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 (2674208) 2.42user 2.74system 0:08.79elapsed 58%CPU (0avgtext+0avgdata 162508maxresident)k 18512inputs+17472outputs (146major+78519minor)pagefaults 0swaps