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 : 3817836 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 (2690911) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2690911) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712415 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2690911'] with mtr_portfolio_ids : ['21712415'] and first list_photo_ids : [] new path : /proc/3817836/ Name: python3 Umask: 0002 State: R (running) Tgid: 3817836 Ngid: 0 Pid: 3817836 PPid: 3817834 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3817836 NSpid: 3817836 NSpgid: 3815936 NSsid: 3815936 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98004 kB VmRSS: 98004 kB RssAnon: 59820 kB RssFile: 38184 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 544 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 106 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3817836', 'Ngid': '0', 'Pid': '3817836', 'PPid': '3817834', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3817836', 'NSpid': '3817836', 'NSpgid': '3815936', 'NSsid': '3815936', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98004 kB', 'VmRSS': '98004 kB', 'RssAnon': '59820 kB', 'RssFile': '38184 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '544 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '106'} ('datou_batch_current', '3817836', '1106844', '0', '1106844', '865592', '98004', b'', 'marlene', '2690911') 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 (21712415) 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 (2690911 ) ) 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 (21712415) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347325665, 'portfolio_id': 21712415}, {'photo_id': 1347325616, 'portfolio_id': 21712415}, {'photo_id': 1347325565, 'portfolio_id': 21712415}, {'photo_id': 1347325495, 'portfolio_id': 21712415}, {'photo_id': 1347325459, 'portfolio_id': 21712415}, {'photo_id': 1347325058, 'portfolio_id': 21712415}, {'photo_id': 1347325003, 'portfolio_id': 21712415}, {'photo_id': 1347324980, 'portfolio_id': 21712415}, {'photo_id': 1347324556, 'portfolio_id': 21712415}, {'photo_id': 1347324531, 'portfolio_id': 21712415}, {'photo_id': 1347324523, 'portfolio_id': 21712415}, {'photo_id': 1347324513, 'portfolio_id': 21712415}, {'photo_id': 1347324507, 'portfolio_id': 21712415}, {'photo_id': 1347324504, 'portfolio_id': 21712415}, {'photo_id': 1347324028, 'portfolio_id': 21712415}, {'photo_id': 1347323902, 'portfolio_id': 21712415}, {'photo_id': 1347323858, 'portfolio_id': 21712415}, {'photo_id': 1347323841, 'portfolio_id': 21712415}, {'photo_id': 1347323831, 'portfolio_id': 21712415}, {'photo_id': 1347323223, 'portfolio_id': 21712415}, {'photo_id': 1347323201, 'portfolio_id': 21712415}, {'photo_id': 1347322939, 'portfolio_id': 21712415}, {'photo_id': 1347322891, 'portfolio_id': 21712415}, {'photo_id': 1347322827, 'portfolio_id': 21712415}, {'photo_id': 1347322799, 'portfolio_id': 21712415}, {'photo_id': 1347322754, 'portfolio_id': 21712415}] map_portfolio_id_photo_id: {21712415: [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754]} ##### 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.01467442512512207 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Mar 25 22:23:26 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 (21712415) 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 : 21712415 get user id for portfolio 21712415 get sub ptf for main ptf 21712415, type 3726 and hashtags ['plastique', 'autre_refus', 'kraft', 'metal', 'cartonnette', 'environnement', 'papier', 'Carton_brun', 'mal_croppe', 'flou', 'Teint_Dans_La_Masse', 'Carton_gris'] 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`=21712415 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','kraft','metal','cartonnette','environnement','papier','Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris')) 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`=21712415 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','kraft','metal','cartonnette','environnement','papier','Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_22_15_04_10172_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__25032025_22_15_04_10172_3726_Carton_gris_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)[[21712415, 21712450, 3726, 0.5, 492725882, 979], [21712415, 21712451, 3726, 0.5, 2107752406, 979], [21712415, 21712452, 3726, 0.5, 493202403, 979], [21712415, 21712453, 3726, 0.5, 492628673, 979], [21712415, 21712454, 3726, 0.5, 702398920, 979], [21712415, 21712455, 3726, 0.5, 493012381, 979], [21712415, 21712456, 3726, 0.5, 492668766, 979], [21712415, 21712457, 3726, 0.5, 2107753024, 979], [21712415, 21712458, 3726, 0.5, 2107755527, 979], [21712415, 21712460, 3726, 0.5, 492777938, 979], [21712415, 21712461, 3726, 0.5, 2107752385, 979], [21712415, 21712462, 3726, 0.5, 2107753020, 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`=21712415 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','kraft','metal','cartonnette','environnement','papier','Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris')) 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`=21712415 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','kraft','metal','cartonnette','environnement','papier','Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21712415, 'sub_port_id': 21712450, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240934, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}, 'autre_refus': {'main_port_id': 21712415, 'sub_port_id': 21712451, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240935, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}, 'kraft': {'main_port_id': 21712415, 'sub_port_id': 21712452, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240936, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}, 'metal': {'main_port_id': 21712415, 'sub_port_id': 21712453, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240937, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}, 'cartonnette': {'main_port_id': 21712415, 'sub_port_id': 21712454, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240938, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}, 'environnement': {'main_port_id': 21712415, 'sub_port_id': 21712455, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240939, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}, 'papier': {'main_port_id': 21712415, 'sub_port_id': 21712456, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240940, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}, 'Carton_brun': {'main_port_id': 21712415, 'sub_port_id': 21712457, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240941, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}, 'mal_croppe': {'main_port_id': 21712415, 'sub_port_id': 21712458, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240942, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}, 'flou': {'main_port_id': 21712415, 'sub_port_id': 21712460, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240943, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 21712415, 'sub_port_id': 21712461, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240944, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}, 'Carton_gris': {'main_port_id': 21712415, 'sub_port_id': 21712462, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240945, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 27), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21712450 , 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=21712415 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 (21712450) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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 21712451 , 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=21712415 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 (21712451) result : ((1347325866,), (1347325867,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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 21712452 , 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=21712415 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 (21712452) result : ((1347325927,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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 21712453 , 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=21712415 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 (21712453) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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 21712454 , 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=21712415 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 (21712454) result : ((1347325885,), (1347325886,), (1347325888,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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 21712455 , 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=21712415 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 (21712455) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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 21712456 , 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=21712415 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 (21712456) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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 21712457 , 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=21712415 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 (21712457) result : ((1347325475,), (1347325913,), (1347325915,), (1347325916,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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 21712458 , 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=21712415 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 (21712458) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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 21712460 , 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=21712415 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 (21712460) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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 21712461 , 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=21712415 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 (21712461) result : ((1347325859,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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 21712462 , 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=21712415 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 (21712462) result : ((1347325466,), (1347325873,), (1347325874,), (1347325876,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21712415) result : ((1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) 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`=21712415 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','kraft','metal','cartonnette','environnement','papier','Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris')) 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`=21712415 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','kraft','metal','cartonnette','environnement','papier','Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_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__25032025_22_15_04_10172_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_22_15_04_10172_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__25032025_22_15_04_10172_4417_Carton_gris_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)[[21712415, 21712464, 4417, 0.5, 492725882, 979], [21712415, 21712465, 4417, 0.5, 2107752406, 979], [21712415, 21712466, 4417, 0.5, 493202403, 979], [21712415, 21712467, 4417, 0.5, 492628673, 979], [21712415, 21712468, 4417, 0.5, 702398920, 979], [21712415, 21712469, 4417, 0.5, 493012381, 979], [21712415, 21712470, 4417, 0.5, 492668766, 979], [21712415, 21712471, 4417, 0.5, 2107753024, 979], [21712415, 21712472, 4417, 0.5, 2107755527, 979], [21712415, 21712473, 4417, 0.5, 492777938, 979], [21712415, 21712474, 4417, 0.5, 2107752385, 979], [21712415, 21712475, 4417, 0.5, 2107753020, 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`=21712415 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','kraft','metal','cartonnette','environnement','papier','Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris')) 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`=21712415 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','autre_refus','kraft','metal','cartonnette','environnement','papier','Carton_brun','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21712415, 'sub_port_id': 21712464, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240946, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}, 'autre_refus': {'main_port_id': 21712415, 'sub_port_id': 21712465, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240947, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}, 'kraft': {'main_port_id': 21712415, 'sub_port_id': 21712466, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240948, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}, 'metal': {'main_port_id': 21712415, 'sub_port_id': 21712467, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240949, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}, 'cartonnette': {'main_port_id': 21712415, 'sub_port_id': 21712468, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240950, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}, 'environnement': {'main_port_id': 21712415, 'sub_port_id': 21712469, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240951, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}, 'papier': {'main_port_id': 21712415, 'sub_port_id': 21712470, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240952, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}, 'Carton_brun': {'main_port_id': 21712415, 'sub_port_id': 21712471, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240953, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}, 'mal_croppe': {'main_port_id': 21712415, 'sub_port_id': 21712472, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240954, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}, 'flou': {'main_port_id': 21712415, 'sub_port_id': 21712473, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240955, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 21712415, 'sub_port_id': 21712474, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240956, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}, 'Carton_gris': {'main_port_id': 21712415, 'sub_port_id': 21712475, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14240957, 'last_updated_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 22, 23, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 22, 23, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712464,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712450 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712465,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712451 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712466,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712452 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712467,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712453 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712468,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712454 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712455 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712456 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712457 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712460 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21712475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21712462 lien utilise dans velours : https://www.fotonower.com/velours/21712464,21712465,21712466,21712467,21712468,21712469,21712470,21712471,21712472,21712473,21712474,21712475?tags=plastique,autre_refus,kraft,metal,cartonnette,environnement,papier,Carton_brun,mal_croppe,flou,Teint_Dans_La_Masse,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21712415]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754] map_info['map_portfolio_photo'] : {21712415: [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754]} final : False mtd_id 4302 list_pids : [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754] Looping around the photos to save general results len do output : 1 /21712415. 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, '2690911') ('4302', '21712415', '1347325665', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325616', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325565', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325495', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325459', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325058', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325003', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324980', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324556', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324531', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324523', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324513', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324507', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324504', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324028', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323902', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323858', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323841', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323831', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323223', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323201', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322939', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322891', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322827', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322799', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322754', None, None, None, None, None, '2690911') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21712415', "{'plastique': 21712450, 'autre_refus': 21712451, 'kraft': 21712452, 'metal': 21712453, 'cartonnette': 21712454, 'environnement': 21712455, 'papier': 21712456, 'Carton_brun': 21712457, 'mal_croppe': 21712458, 'flou': 21712460, 'Teint_Dans_La_Masse': 21712461, 'Carton_gris': 21712462}", None, None, None, None, '2690911'), ('4302', '21712415', '1347325665', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325616', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325565', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325495', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325459', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325058', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325003', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324980', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324556', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324531', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324523', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324513', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324507', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324504', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324028', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323902', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323858', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323841', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323831', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323223', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323201', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322939', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322891', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322827', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322799', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322754', None, None, None, None, None, '2690911')] time used for this insertion : 0.01782965660095215 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.273324489593506 time spend to save output : 0.018239736557006836 total time spend for step 1 : 7.291564226150513 step2:final Tue Mar 25 22:23:33 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 (21712415) 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 21712415 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347322939,1347322891,1347322827,1347322799,1347322754,1347323223,1347323201,1347324028,1347323902,1347323858,1347323841,1347323831,1347324556,1347324531,1347324523,1347324513,1347324507,1347324504,1347325058,1347325003,1347324980,1347325665,1347325616,1347325565,1347325495,1347325459); 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([21712415]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} new output for save of step final : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754] map_info['map_portfolio_photo'] : {21712415: [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754]} final : False mtd_id 4302 list_pids : [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754] Looping around the photos to save general results len do output : 26 /1347325665.Didn't retrieve data . /1347325616.Didn't retrieve data . /1347325565.Didn't retrieve data . /1347325495.Didn't retrieve data . /1347325459.Didn't retrieve data . /1347325058.Didn't retrieve data . /1347325003.Didn't retrieve data . /1347324980.Didn't retrieve data . /1347324556.Didn't retrieve data . /1347324531.Didn't retrieve data . /1347324523.Didn't retrieve data . /1347324513.Didn't retrieve data . /1347324507.Didn't retrieve data . /1347324504.Didn't retrieve data . /1347324028.Didn't retrieve data . /1347323902.Didn't retrieve data . /1347323858.Didn't retrieve data . /1347323841.Didn't retrieve data . /1347323831.Didn't retrieve data . /1347323223.Didn't retrieve data . /1347323201.Didn't retrieve data . /1347322939.Didn't retrieve data . /1347322891.Didn't retrieve data . /1347322827.Didn't retrieve data . /1347322799.Didn't retrieve data . /1347322754.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, '2690911') ('4302', '21712415', '1347325665', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325616', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325565', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325495', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325459', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325058', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325003', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324980', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324556', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324531', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324523', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324513', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324507', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324504', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324028', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323902', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323858', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323841', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323831', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323223', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323201', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322939', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322891', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322827', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322799', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322754', None, None, None, None, None, '2690911') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 78 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21712415', '1347325665', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347325616', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347325565', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347325495', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347325459', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347325058', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347325003', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347324980', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347324556', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347324531', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347324523', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347324513', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347324507', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347324504', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347324028', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347323902', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347323858', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347323841', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347323831', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347323223', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347323201', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347322939', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347322891', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347322827', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347322799', '0.052321355064361856', None, None, None, None, '2690911'), ('4302', '21712415', '1347322754', '0.052321355064361856', None, None, None, None, '2690911')] time used for this insertion : 0.024343013763427734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.03245043754577637 time spend to save output : 0.025946617126464844 total time spend for step 2 : 0.05839705467224121 step3:velours_tree Tue Mar 25 22:23:33 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 : {21712415: [{'plastique': 21712450, 'autre_refus': 21712451, 'kraft': 21712452, 'metal': 21712453, 'cartonnette': 21712454, 'environnement': 21712455, 'papier': 21712456, 'Carton_brun': 21712457, 'mal_croppe': 21712458, 'flou': 21712460, 'Teint_Dans_La_Masse': 21712461, 'Carton_gris': 21712462}]} input_args_next_step : {21712415: ()} output_args : {21712415: [{'plastique': 21712450, 'autre_refus': 21712451, 'kraft': 21712452, 'metal': 21712453, 'cartonnette': 21712454, 'environnement': 21712455, 'papier': 21712456, 'Carton_brun': 21712457, 'mal_croppe': 21712458, 'flou': 21712460, 'Teint_Dans_La_Masse': 21712461, 'Carton_gris': 21712462}]} args : 21712415 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 : ({'plastique': 21712450, 'autre_refus': 21712451, 'kraft': 21712452, 'metal': 21712453, 'cartonnette': 21712454, 'environnement': 21712455, 'papier': 21712456, 'Carton_brun': 21712457, 'mal_croppe': 21712458, 'flou': 21712460, 'Teint_Dans_La_Masse': 21712461, 'Carton_gris': 21712462},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21712415) 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([21712415]) 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.3099524974822998 time spend to save output : 4.291534423828125e-05 total time spend for step 3 : 0.3099954128265381 step4:send_mail_cod Tue Mar 25 22:23:34 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 : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} input_args_next_step : {1347325665: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347325665 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347325616 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347325565 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347325495 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347325459 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347325058 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347325003 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347324980 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347324556 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347324531 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347324523 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347324513 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347324507 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347324504 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347324028 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347323902 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347323858 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347323841 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347323831 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347323223 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347323201 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347322939 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347322891 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347322827 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347322799 depend.output_id : 0 input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ()} output_args : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',)} args : 1347322754 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 : {21712415: [{'plastique': 21712450, 'autre_refus': 21712451, 'kraft': 21712452, 'metal': 21712453, 'cartonnette': 21712454, 'environnement': 21712455, 'papier': 21712456, 'Carton_brun': 21712457, 'mal_croppe': 21712458, 'flou': 21712460, 'Teint_Dans_La_Masse': 21712461, 'Carton_gris': 21712462}]} input_args_next_step : {1347325665: ('0.052321355064361856',), 1347325616: ('0.052321355064361856',), 1347325565: ('0.052321355064361856',), 1347325495: ('0.052321355064361856',), 1347325459: ('0.052321355064361856',), 1347325058: ('0.052321355064361856',), 1347325003: ('0.052321355064361856',), 1347324980: ('0.052321355064361856',), 1347324556: ('0.052321355064361856',), 1347324531: ('0.052321355064361856',), 1347324523: ('0.052321355064361856',), 1347324513: ('0.052321355064361856',), 1347324507: ('0.052321355064361856',), 1347324504: ('0.052321355064361856',), 1347324028: ('0.052321355064361856',), 1347323902: ('0.052321355064361856',), 1347323858: ('0.052321355064361856',), 1347323841: ('0.052321355064361856',), 1347323831: ('0.052321355064361856',), 1347323223: ('0.052321355064361856',), 1347323201: ('0.052321355064361856',), 1347322939: ('0.052321355064361856',), 1347322891: ('0.052321355064361856',), 1347322827: ('0.052321355064361856',), 1347322799: ('0.052321355064361856',), 1347322754: ('0.052321355064361856',), 21712415: ()} output_args : {21712415: [{'plastique': 21712450, 'autre_refus': 21712451, 'kraft': 21712452, 'metal': 21712453, 'cartonnette': 21712454, 'environnement': 21712455, 'papier': 21712456, 'Carton_brun': 21712457, 'mal_croppe': 21712458, 'flou': 21712460, 'Teint_Dans_La_Masse': 21712461, 'Carton_gris': 21712462}]} args : 21712415 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :27, first value : ('0.052321355064361856',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21712415) 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 (1347325665,1347325616,1347325565,1347325495,1347325459,1347325058,1347325003,1347324980,1347324556,1347324531,1347324523,1347324513,1347324507,1347324504,1347324028,1347323902,1347323858,1347323841,1347323831,1347323223,1347323201,1347322939,1347322891,1347322827,1347322799,1347322754) Found this number of photos: 26 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347322754 begin to download photo : 1347323223 begin to download photo : 1347324504 begin to download photo : 1347324980 begin to download photo : 1347325616 download finish for photo 1347324980 begin to download photo : 1347325003 download finish for photo 1347322754 begin to download photo : 1347322799 download finish for photo 1347323223 begin to download photo : 1347323831 download finish for photo 1347325616 begin to download photo : 1347325665 download finish for photo 1347324504 begin to download photo : 1347324507 download finish for photo 1347322799 begin to download photo : 1347322827 download finish for photo 1347325003 begin to download photo : 1347325058 download finish for photo 1347323831 begin to download photo : 1347323841 download finish for photo 1347325665 download finish for photo 1347324507 begin to download photo : 1347324513 download finish for photo 1347325058 begin to download photo : 1347325459 download finish for photo 1347322827 begin to download photo : 1347322891 download finish for photo 1347323841 begin to download photo : 1347323858 download finish for photo 1347324513 begin to download photo : 1347324523 download finish for photo 1347325459 begin to download photo : 1347325495 download finish for photo 1347324523 begin to download photo : 1347324531 download finish for photo 1347322891 begin to download photo : 1347322939 download finish for photo 1347323858 begin to download photo : 1347323902 download finish for photo 1347323902 begin to download photo : 1347324028 download finish for photo 1347324531 begin to download photo : 1347324556 download finish for photo 1347322939 begin to download photo : 1347323201 download finish for photo 1347325495 begin to download photo : 1347325565 download finish for photo 1347324028 download finish for photo 1347324556 download finish for photo 1347323201 download finish for photo 1347325565 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217124501742937814/ length of list_filenames : 26 ; length of list_pids : 26 ; length of list_args : 26 results_Auto_P21712415_25-03-2025_22_23_34.pdf 21712450 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=21712450 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217124501742937814 21712451 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=21712451 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347325866: '1742937712_1114061_1347322891_6be00ede5f9212806aa9f62e2da8ff4c_rle_crop_3730061274_0.png', 1347325867: '1742937712_1114061_1347322827_e73eeb99d51a0aad6ceabbb36cddd772_rle_crop_3730061286_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/8ed63b1d50147014b04a386c1388afea_21688713.png change filename to text .imagette217124511742937814/ imagette217124511742937814/1742937712_1114061_1347322827_e73eeb99d51a0aad6ceabbb36cddd772_rle_crop_3730061286_0.png.png imagette217124511742937814/1742937712_1114061_1347322891_6be00ede5f9212806aa9f62e2da8ff4c_rle_crop_3730061274_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5b45d2ce8058d5861ece6a9149db6946_43803032.png imagette217124511742937814 21712452 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=21712452 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347325927: '1742937712_1114061_1347323223_19dbffa36021558b43dcb84c77ce7774_rle_crop_3730061233_0.png'} change filename to text .imagette217124521742937814/ imagette217124521742937814/1742937712_1114061_1347323223_19dbffa36021558b43dcb84c77ce7774_rle_crop_3730061233_0.png.png imagette217124531742937815/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/405ff424ab02796e6c468f1dd33c0de2_77066766.png imagette217124521742937814 21712453 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=21712453 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217124531742937815 21712454 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=21712454 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347325885: '1742937712_1114061_1347323223_19dbffa36021558b43dcb84c77ce7774_rle_crop_3730061232_0.png', 1347325886: '1742937712_1114061_1347322891_6be00ede5f9212806aa9f62e2da8ff4c_rle_crop_3730061275_0.png', 1347325888: '1742937712_1114061_1347322827_e73eeb99d51a0aad6ceabbb36cddd772_rle_crop_3730061288_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5986f36aee646e586c27c8fcb58efdb5_91841025.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/25175bc79d7ae89883ad595d9b37c8b3_48248921.png change filename to text .imagette217124541742937815/ imagette217124541742937815/1742937712_1114061_1347322827_e73eeb99d51a0aad6ceabbb36cddd772_rle_crop_3730061288_0.png.png imagette217124541742937815/1742937712_1114061_1347322891_6be00ede5f9212806aa9f62e2da8ff4c_rle_crop_3730061275_0.png.png imagette217124541742937815/1742937712_1114061_1347323223_19dbffa36021558b43dcb84c77ce7774_rle_crop_3730061232_0.png.png imagette217124581742937815/ imagette217124601742937815/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/869539c1a2487d987ff9bf90280f5254_37790579.png imagette217124541742937815 21712458 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=21712458 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217124581742937815 21712460 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=21712460 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217124601742937815 21712457 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=21712457 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347325475: '1742937693_1113699_1347323201_8f5e66926d8505224e3002cda8507533_rle_crop_3730055484_0.png', 1347325913: '1742937712_1114061_1347323223_19dbffa36021558b43dcb84c77ce7774_rle_crop_3730061241_0.png', 1347325915: '1742937712_1114061_1347322827_e73eeb99d51a0aad6ceabbb36cddd772_rle_crop_3730061289_0.png', 1347325916: '1742937712_1114061_1347322754_6099f6066c49f12aac74a1aa9fe7421f_rle_crop_3730061318_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/e956f6ade7e6c7b60ef087277babaf7f_28537982.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/3e982ccd0e83cf596c769c3146e2157a_62457705.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/541f21aece6d4be8f65608f1cab7ce99_75788005.png change filename to text .imagette217124571742937815/ imagette217124571742937815/1742937712_1114061_1347322754_6099f6066c49f12aac74a1aa9fe7421f_rle_crop_3730061318_0.png.png imagette217124571742937815/1742937712_1114061_1347322827_e73eeb99d51a0aad6ceabbb36cddd772_rle_crop_3730061289_0.png.png imagette217124571742937815/1742937693_1113699_1347323201_8f5e66926d8505224e3002cda8507533_rle_crop_3730055484_0.png.png imagette217124571742937815/1742937712_1114061_1347323223_19dbffa36021558b43dcb84c77ce7774_rle_crop_3730061241_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d846a33ce08a22cca3e4279b6f3ce743_73018560.png imagette217124571742937815 21712461 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=21712461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347325859: '1742937712_1114061_1347322799_aeb681e721b8aa5bd8e0de699696b218_rle_crop_3730061300_0.png'} change filename to text .imagette217124611742937815/ imagette217124611742937815/1742937712_1114061_1347322799_aeb681e721b8aa5bd8e0de699696b218_rle_crop_3730061300_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c8b337e9536a9436b6862ad4abe37dae_7957272.png imagette217124611742937815 21712462 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=21712462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347325466: '1742937693_1113699_1347323201_8f5e66926d8505224e3002cda8507533_rle_crop_3730055486_0.png', 1347325873: '1742937712_1114061_1347323223_19dbffa36021558b43dcb84c77ce7774_rle_crop_3730061234_0.png', 1347325874: '1742937712_1114061_1347322799_aeb681e721b8aa5bd8e0de699696b218_rle_crop_3730061298_0.png', 1347325876: '1742937712_1114061_1347322754_6099f6066c49f12aac74a1aa9fe7421f_rle_crop_3730061310_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/9ad0d230a7312eac9cc173ced1f6e569_364433.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/531ca79fa38bdec5b639fc89d5c7c02e_83951019.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/77e31b2a541dd6f8223a374199ab9854_41921211.png change filename to text .imagette217124621742937815/ imagette217124621742937815/1742937712_1114061_1347322799_aeb681e721b8aa5bd8e0de699696b218_rle_crop_3730061298_0.png.png imagette217124621742937815/1742937712_1114061_1347323223_19dbffa36021558b43dcb84c77ce7774_rle_crop_3730061234_0.png.png imagette217124621742937815/1742937712_1114061_1347322754_6099f6066c49f12aac74a1aa9fe7421f_rle_crop_3730061310_0.png.png imagette217124621742937815/1742937693_1113699_1347323201_8f5e66926d8505224e3002cda8507533_rle_crop_3730055486_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/3b0caba70e491aa2c9b7fc00c5e16f7d_28062240.png imagette217124621742937815 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21712415 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21712464,21712465,21712466,21712467,21712468,21712469,21712470,21712471,21712472,21712473,21712474,21712475?tags=plastique,autre_refus,kraft,metal,cartonnette,environnement,papier,Carton_brun,mal_croppe,flou,Teint_Dans_La_Masse,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1347325665] : ('0.052321355064361856',) no score found for photo 1347325665 We are sending mail with results at report@fotonower.com args[1347325616] : ('0.052321355064361856',) no score found for photo 1347325616 We are sending mail with results at report@fotonower.com args[1347325565] : ('0.052321355064361856',) no score found for photo 1347325565 We are sending mail with results at report@fotonower.com args[1347325495] : ('0.052321355064361856',) no score found for photo 1347325495 We are sending mail with results at report@fotonower.com args[1347325459] : ('0.052321355064361856',) no score found for photo 1347325459 We are sending mail with results at report@fotonower.com args[1347325058] : ('0.052321355064361856',) no score found for photo 1347325058 We are sending mail with results at report@fotonower.com args[1347325003] : ('0.052321355064361856',) no score found for photo 1347325003 We are sending mail with results at report@fotonower.com args[1347324980] : ('0.052321355064361856',) no score found for photo 1347324980 We are sending mail with results at report@fotonower.com args[1347324556] : ('0.052321355064361856',) no score found for photo 1347324556 We are sending mail with results at report@fotonower.com args[1347324531] : ('0.052321355064361856',) no score found for photo 1347324531 We are sending mail with results at report@fotonower.com args[1347324523] : ('0.052321355064361856',) no score found for photo 1347324523 We are sending mail with results at report@fotonower.com args[1347324513] : ('0.052321355064361856',) no score found for photo 1347324513 We are sending mail with results at report@fotonower.com args[1347324507] : ('0.052321355064361856',) no score found for photo 1347324507 We are sending mail with results at report@fotonower.com args[1347324504] : ('0.052321355064361856',) no score found for photo 1347324504 We are sending mail with results at report@fotonower.com args[1347324028] : ('0.052321355064361856',) no score found for photo 1347324028 We are sending mail with results at report@fotonower.com args[1347323902] : ('0.052321355064361856',) no score found for photo 1347323902 We are sending mail with results at report@fotonower.com args[1347323858] : ('0.052321355064361856',) no score found for photo 1347323858 We are sending mail with results at report@fotonower.com args[1347323841] : ('0.052321355064361856',) no score found for photo 1347323841 We are sending mail with results at report@fotonower.com args[1347323831] : ('0.052321355064361856',) no score found for photo 1347323831 We are sending mail with results at report@fotonower.com args[1347323223] : ('0.052321355064361856',) no score found for photo 1347323223 We are sending mail with results at report@fotonower.com args[1347323201] : ('0.052321355064361856',) no score found for photo 1347323201 We are sending mail with results at report@fotonower.com args[1347322939] : ('0.052321355064361856',) no score found for photo 1347322939 We are sending mail with results at report@fotonower.com args[1347322891] : ('0.052321355064361856',) no score found for photo 1347322891 We are sending mail with results at report@fotonower.com args[1347322827] : ('0.052321355064361856',) no score found for photo 1347322827 We are sending mail with results at report@fotonower.com args[1347322799] : ('0.052321355064361856',) no score found for photo 1347322799 We are sending mail with results at report@fotonower.com args[1347322754] : ('0.052321355064361856',) no score found for photo 1347322754 We are sending mail with results at report@fotonower.com refus_total : 0.052321355064361856 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=21712415 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_P21712415_25-03-2025_22_23_34.pdf results_Auto_P21712415_25-03-2025_22_23_34.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21712415_25-03-2025_22_23_34.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','21712415','results_Auto_P21712415_25-03-2025_22_23_34.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21712415_25-03-2025_22_23_34.pdf','pdf','','0.24','0.052321355064361856') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21712415]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754] map_info['map_portfolio_photo'] : {21712415: [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754]} final : False mtd_id 4302 list_pids : [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754] 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, '2690911') ('4302', '21712415', '1347325665', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325616', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325565', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325495', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325459', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325058', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325003', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324980', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324556', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324531', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324523', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324513', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324507', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324504', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324028', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323902', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323858', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323841', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323831', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323223', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323201', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322939', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322891', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322827', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322799', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322754', None, None, None, None, None, '2690911') 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', '21712415', '1347325665', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325616', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325565', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325495', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325459', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325058', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325003', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324980', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324556', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324531', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324523', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324513', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324507', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324504', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324028', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323902', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323858', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323841', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323831', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323223', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323201', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322939', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322891', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322827', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322799', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322754', None, None, None, None, None, '2690911')] time used for this insertion : 0.01630234718322754 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.25211238861084 time spend to save output : 0.016652822494506836 total time spend for step 4 : 3.2687652111053467 step5:split_time_score Tue Mar 25 22:23:37 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21712415'] 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 : [('21712415',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21712415) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347325616: {'path': 'temp/1742937814_3817836_1347325616_35a63329f50a63ddb9f16dd6614a3190.jpg', 'extension': 'jpg'}, 1347325665: {'path': 'temp/1742937814_3817836_1347325665_1c108595338ce0aeb75fbf9a7fcab9db.jpg', 'extension': 'jpg'}, 1347323223: {'path': 'temp/1742937814_3817836_1347323223_19dbffa36021558b43dcb84c77ce7774.jpg', 'extension': 'jpg'}, 1347323831: {'path': 'temp/1742937814_3817836_1347323831_0c0ad2bd1ecb5115e2783db6d6ea16bc.jpg', 'extension': 'jpg'}, 1347323841: {'path': 'temp/1742937814_3817836_1347323841_acf105cb730c3d9566cd2dc7ccb765a8.jpg', 'extension': 'jpg'}, 1347323858: {'path': 'temp/1742937814_3817836_1347323858_6c62903f0980e7314cd34e3e4f1a3553.jpg', 'extension': 'jpg'}, 1347323902: {'path': 'temp/1742937814_3817836_1347323902_32f6459a22f0d94494fc1adbdb77f1ae.jpg', 'extension': 'jpg'}, 1347324028: {'path': 'temp/1742937814_3817836_1347324028_d9c435520bd6f693d32e718a0a644add.jpg', 'extension': 'jpg'}, 1347324504: {'path': 'temp/1742937814_3817836_1347324504_f881d4d5c5085347903e1a35a879f408.jpg', 'extension': 'jpg'}, 1347324507: {'path': 'temp/1742937814_3817836_1347324507_66f053b2ba3fc9a831339b1162654a6b.jpg', 'extension': 'jpg'}, 1347324513: {'path': 'temp/1742937814_3817836_1347324513_18b6c7a0e68e3f11ada62c283a27ad1c.jpg', 'extension': 'jpg'}, 1347324523: {'path': 'temp/1742937814_3817836_1347324523_346c29f2632d68fea5616f154470e037.jpg', 'extension': 'jpg'}, 1347324531: {'path': 'temp/1742937814_3817836_1347324531_d94356450810527ae75bc7d0ee440a99.jpg', 'extension': 'jpg'}, 1347324556: {'path': 'temp/1742937814_3817836_1347324556_37e09526ca28dddb6b3daee7dfac5520.jpg', 'extension': 'jpg'}, 1347322754: {'path': 'temp/1742937814_3817836_1347322754_6099f6066c49f12aac74a1aa9fe7421f.jpg', 'extension': 'jpg'}, 1347322799: {'path': 'temp/1742937814_3817836_1347322799_aeb681e721b8aa5bd8e0de699696b218.jpg', 'extension': 'jpg'}, 1347322827: {'path': 'temp/1742937814_3817836_1347322827_e73eeb99d51a0aad6ceabbb36cddd772.jpg', 'extension': 'jpg'}, 1347322891: {'path': 'temp/1742937814_3817836_1347322891_6be00ede5f9212806aa9f62e2da8ff4c.jpg', 'extension': 'jpg'}, 1347322939: {'path': 'temp/1742937814_3817836_1347322939_58249ee55abc39e39c44ab88a6ad6462.jpg', 'extension': 'jpg'}, 1347323201: {'path': 'temp/1742937814_3817836_1347323201_8f5e66926d8505224e3002cda8507533.jpg', 'extension': 'jpg'}, 1347324980: {'path': 'temp/1742937814_3817836_1347324980_c657a446cebded0fc961dfb29abce952.jpg', 'extension': 'jpg'}, 1347325003: {'path': 'temp/1742937814_3817836_1347325003_3f21af97d09aa7aa3d42f61eee87e6be.jpg', 'extension': 'jpg'}, 1347325058: {'path': 'temp/1742937814_3817836_1347325058_db67d9674e91157fdb5653cc1bb6711d.jpg', 'extension': 'jpg'}, 1347325459: {'path': 'temp/1742937814_3817836_1347325459_96805c3049e8e1ea70c894f55ebd2df4.jpg', 'extension': 'jpg'}, 1347325495: {'path': 'temp/1742937814_3817836_1347325495_420677c28909aa29eb64dfd671cb944d.jpg', 'extension': 'jpg'}, 1347325565: {'path': 'temp/1742937814_3817836_1347325565_0139c24ab48a9a898ae643705ee44427.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 = 21712415; (('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 = 21712415 group by h (('22', 26),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21712415 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 (21712415) 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 (21712415) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25032025 21712415 Nombre de photos uploadées : 26 / 23040 (0%) 25032025 21712415 Nombre de photos taguées (types de déchets): 0 / 26 (0%) 25032025 21712415 Nombre de photos taguées (volume) : 0 / 26 (0%) [{'photo_id': 1347322939, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/58249ee55abc39e39c44ab88a6ad6462.jpg', 'username': None, 'uploaded_at': 1742937432, 'text': 'image_25032025_22_15_04_10170.jpg'}, {'photo_id': 1347322891, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/6be00ede5f9212806aa9f62e2da8ff4c.jpg', 'username': None, 'uploaded_at': 1742937432, 'text': 'image_25032025_22_15_14_10136.jpg'}, {'photo_id': 1347322827, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/e73eeb99d51a0aad6ceabbb36cddd772.jpg', 'username': None, 'uploaded_at': 1742937432, 'text': 'image_25032025_22_15_24_10133.jpg'}, {'photo_id': 1347322799, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/aeb681e721b8aa5bd8e0de699696b218.jpg', 'username': None, 'uploaded_at': 1742937432, 'text': 'image_25032025_22_15_34_10144.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.00218963623046875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21712415, '2025-03-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1685799,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02837824821472168 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= 1685799 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696484, 'mtr_portfolio_id': 21710365, 'dashboard_result_id': 9624787, '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_P21710365_25-03-2025_21_48_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710377, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696484, 'mtr_portfolio_id': 21710866, 'dashboard_result_id': 9624788, '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_P21710866_25-03-2025_22_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710878, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696484, 'mtr_portfolio_id': 21711534, 'dashboard_result_id': 9624789, '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_P21711534_25-03-2025_22_18_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21711535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21711536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21711537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21711538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21711539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21711540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21711541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21711542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21711543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21711544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21711545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21711546, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696484, 'mtr_portfolio_id': 21712415, 'dashboard_result_id': 9624790, '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 = 21710365 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': 2690723, 'mtr_portfolio_id': 21710365, 'created_at': datetime.datetime(2025, 3, 25, 21, 48), 'result': '0.05375270878866383', 'result_long': None, 'result_double': None}] Qualite : 0.05375270878866383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21710365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710365_25-03-2025_21_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21710365 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_P21710365_25-03-2025_21_48_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710377, 'pht': 3726}}" where mtr_portfolio_id = 21710365 and dashboard_run_id = 1696484 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`=21710365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9624787, 0.05375270878866383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710365_25-03-2025_21_48_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710368, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710377, '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 = 21710866 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': 2690760, 'mtr_portfolio_id': 21710866, 'created_at': datetime.datetime(2025, 3, 25, 22, 3, 59), 'result': '0.05562681950865728', 'result_long': None, 'result_double': None}] Qualite : 0.05562681950865728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21710866 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710866_25-03-2025_22_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21710866 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_P21710866_25-03-2025_22_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710878, 'pht': 3726}}" where mtr_portfolio_id = 21710866 and dashboard_run_id = 1696484 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`=21710866 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9624788, 0.05562681950865728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21710866_25-03-2025_22_04_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21710867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21710868, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21710869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21710870, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21710871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21710872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21710873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21710874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21710875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21710876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21710877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21710878, '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 = 21711534 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': 2690864, 'mtr_portfolio_id': 21711534, 'created_at': datetime.datetime(2025, 3, 25, 22, 18, 2), 'result': '0.07301631710143765', 'result_long': None, 'result_double': None}] Qualite : 0.07301631710143765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21711534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21711534_25-03-2025_22_18_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21711534 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_P21711534_25-03-2025_22_18_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21711535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21711536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21711537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21711538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21711539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21711540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21711541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21711542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21711543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21711544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21711545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21711546, 'pht': 3726}}" where mtr_portfolio_id = 21711534 and dashboard_run_id = 1696484 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`=21711534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9624789, 0.07301631710143765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21711534_25-03-2025_22_18_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21711535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21711536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21711537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21711538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21711539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21711540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21711541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21711542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21711543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21711544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21711545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21711546, '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 = 21712415 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': 2690911, 'mtr_portfolio_id': 21712415, 'created_at': datetime.datetime(2025, 3, 25, 22, 23, 33), 'result': '0.052321355064361856', 'result_long': None, 'result_double': None}] Qualite : 0.052321355064361856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21712415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21712415_25-03-2025_22_23_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21712415 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_P21712415_25-03-2025_22_23_34.pdf'}" where mtr_portfolio_id = 21712415 and dashboard_run_id = 1696484 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`=21712415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9624790, 0.052321355064361856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21712415_25-03-2025_22_23_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21712450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21712451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21712452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21712453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21712454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21712455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21712456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21712457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21712458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21712460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21712461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21712462, '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 (21710365,21710866,21711534,21712415) result : ((1347309401,), (1347309404,), (1347309613,), (1347309762,), (1347309768,), (1347309775,), (1347309812,), (1347310018,), (1347310022,), (1347310113,), (1347310120,), (1347310127,), (1347310259,), (1347310262,), (1347310265,), (1347310269,), (1347310273,), (1347310308,), (1347310311,), (1347310317,), (1347310320,), (1347310334,), (1347310433,), (1347310437,), (1347310440,), (1347310467,), (1347310579,), (1347310584,), (1347310686,), (1347310690,), (1347310693,), (1347310696,), (1347310746,), (1347310751,), (1347310756,), (1347310764,), (1347310766,), (1347310813,), (1347310816,), (1347310819,), (1347310940,), (1347310946,), (1347310948,), (1347311075,), (1347311079,), (1347311083,), (1347311086,), (1347311088,), (1347311091,), (1347311115,), (1347311117,), (1347311121,), (1347311124,), (1347311160,), (1347311164,), (1347311174,), (1347311182,), (1347311185,), (1347311246,), (1347311224,), (1347311226,), (1347311229,), (1347311236,), (1347311296,), (1347311331,), (1347311341,), (1347311348,), (1347311352,), (1347311356,), (1347311418,), (1347311421,), (1347311425,), (1347311429,), (1347311432,), (1347311602,), (1347311607,), (1347311611,), (1347311666,), (1347311668,), (1347311670,), (1347311672,), (1347311673,), (1347311803,), (1347311922,), (1347311924,), (1347311926,), (1347311954,), (1347311958,), (1347311974,), (1347311988,), (1347311995,), (1347312021,), (1347312025,), (1347312030,), (1347312036,), (1347312046,), (1347312084,), (1347312090,), (1347312094,), (1347312101,), (1347312120,), (1347312124,), (1347312129,), (1347312137,), (1347312142,), (1347312180,), (1347312186,), (1347312199,), (1347312202,), (1347312206,), (1347312219,), (1347312291,), (1347312295,), (1347312320,), (1347312350,), (1347312381,), (1347312728,), (1347312745,), (1347312750,), (1347313527,), (1347313558,), (1347313585,), (1347313613,), (1347313646,), (1347313652,), (1347313687,), (1347313695,), (1347313719,), (1347313837,), (1347313796,), (1347313822,), (1347314525,), (1347314634,), (1347314761,), (1347314831,), (1347314866,), (1347314979,), (1347314981,), (1347314983,), (1347314987,), (1347314995,), (1347315070,), (1347315076,), (1347315126,), (1347315203,), (1347315261,), (1347315319,), (1347315736,), (1347315765,), (1347316162,), (1347316168,), (1347316196,), (1347316246,), (1347316276,), (1347316496,), (1347316538,), (1347316589,), (1347316626,), (1347316903,), (1347316942,), (1347316969,), (1347316997,), (1347318108,), (1347318377,), (1347319408,), (1347319424,), (1347319440,), (1347319459,), (1347319797,), (1347319841,), (1347319887,), (1347319908,), (1347319942,), (1347320647,), (1347320670,), (1347320724,), (1347320768,), (1347320785,), (1347320837,), (1347321265,), (1347321294,), (1347321317,), (1347321334,), (1347321639,), (1347321666,), (1347321691,), (1347321709,), (1347322125,), (1347322142,), (1347322192,), (1347322248,), (1347322962,), (1347322754,), (1347322799,), (1347322827,), (1347322891,), (1347322939,), (1347323201,), (1347323223,), (1347323831,), (1347323841,), (1347323858,), (1347323902,), (1347324028,), (1347324504,), (1347324507,), (1347324513,), (1347324523,), (1347324531,), (1347324556,), (1347324980,), (1347325003,), (1347325058,), (1347325459,), (1347325495,), (1347325565,), (1347325616,), (1347325665,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25032025': {'nb_upload': 26, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21712415]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754] map_info['map_portfolio_photo'] : {21712415: [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754]} final : True mtd_id 4302 list_pids : [1347325665, 1347325616, 1347325565, 1347325495, 1347325459, 1347325058, 1347325003, 1347324980, 1347324556, 1347324531, 1347324523, 1347324513, 1347324507, 1347324504, 1347324028, 1347323902, 1347323858, 1347323841, 1347323831, 1347323223, 1347323201, 1347322939, 1347322891, 1347322827, 1347322799, 1347322754] Looping around the photos to save general results len do output : 1 /21712415Didn'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, '2690911') ('4302', '21712415', '1347325665', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325616', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325565', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325495', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325459', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325058', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347325003', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324980', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324556', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324531', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324523', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324513', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324507', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324504', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347324028', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323902', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323858', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323841', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323831', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323223', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347323201', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322939', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322891', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322827', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322799', None, None, None, None, None, '2690911') ('4302', None, None, None, None, None, None, None, '2690911') ('4302', '21712415', '1347322754', None, None, None, None, None, '2690911') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21712415', 'None', None, None, None, None, '2690911'), ('4302', '21712415', '1347325665', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325616', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325565', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325495', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325459', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325058', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347325003', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324980', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324556', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324531', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324523', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324513', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324507', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324504', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347324028', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323902', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323858', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323841', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323831', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323223', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347323201', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322939', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322891', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322827', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322799', None, None, None, None, None, '2690911'), ('4302', '21712415', '1347322754', None, None, None, None, None, '2690911')] time used for this insertion : 0.01758742332458496 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4273853302001953 time spend to save output : 0.01789093017578125 total time spend for step 5 : 0.44527626037597656 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 (2690911) 2.56user 1.83system 0:13.74elapsed 31%CPU (0avgtext+0avgdata 166288maxresident)k 1768inputs+15168outputs (24major+90636minor)pagefaults 0swaps