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 : 4193785 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 (2617453) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2617453) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852478 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2617453'] with mtr_portfolio_ids : ['20852478'] and first list_photo_ids : [] new path : /proc/4193785/ Name: python3 Umask: 0002 State: R (running) Tgid: 4193785 Ngid: 0 Pid: 4193785 PPid: 4193784 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4193785 NSpid: 4193785 NSpgid: 4192813 NSsid: 4192813 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98904 kB VmRSS: 98904 kB RssAnon: 59764 kB RssFile: 39140 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 102 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4193785', 'Ngid': '0', 'Pid': '4193785', 'PPid': '4193784', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4193785', 'NSpid': '4193785', 'NSpgid': '4192813', 'NSsid': '4192813', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98904 kB', 'VmRSS': '98904 kB', 'RssAnon': '59764 kB', 'RssFile': '39140 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '102'} ('datou_batch_current', '4193785', '1106936', '0', '1106936', '865684', '98904', b'', 'marlene', '2617453') 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 (20852478) 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 (2617453 ) ) 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 (20852478) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339781558, 'portfolio_id': 20852478}, {'photo_id': 1339781555, 'portfolio_id': 20852478}, {'photo_id': 1339781552, 'portfolio_id': 20852478}, {'photo_id': 1339781549, 'portfolio_id': 20852478}, {'photo_id': 1339781480, 'portfolio_id': 20852478}, {'photo_id': 1339781465, 'portfolio_id': 20852478}, {'photo_id': 1339781463, 'portfolio_id': 20852478}, {'photo_id': 1339781448, 'portfolio_id': 20852478}, {'photo_id': 1339781422, 'portfolio_id': 20852478}, {'photo_id': 1339781412, 'portfolio_id': 20852478}, {'photo_id': 1339781364, 'portfolio_id': 20852478}, {'photo_id': 1339781361, 'portfolio_id': 20852478}, {'photo_id': 1339781357, 'portfolio_id': 20852478}, {'photo_id': 1339781353, 'portfolio_id': 20852478}, {'photo_id': 1339781283, 'portfolio_id': 20852478}, {'photo_id': 1339781282, 'portfolio_id': 20852478}, {'photo_id': 1339781280, 'portfolio_id': 20852478}, {'photo_id': 1339781276, 'portfolio_id': 20852478}, {'photo_id': 1339781256, 'portfolio_id': 20852478}, {'photo_id': 1339781252, 'portfolio_id': 20852478}, {'photo_id': 1339781233, 'portfolio_id': 20852478}, {'photo_id': 1339781229, 'portfolio_id': 20852478}, {'photo_id': 1339781225, 'portfolio_id': 20852478}, {'photo_id': 1339781220, 'portfolio_id': 20852478}, {'photo_id': 1339781083, 'portfolio_id': 20852478}, {'photo_id': 1339781079, 'portfolio_id': 20852478}] map_portfolio_id_photo_id: {20852478: [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079]} ##### 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.01438283920288086 #### 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 Wed Feb 26 19:53:28 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 (20852478) 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 : 20852478 get user id for portfolio 20852478 get sub ptf for main ptf 20852478, type 3726 and hashtags ['metal', 'Teint_Dans_La_Masse', 'autre_refus', 'papier', 'plastique', 'Carton_gris', 'Carton_brun', 'mal_croppe', 'flou', 'environnement', 'kraft', 'cartonnette'] 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`=20852478 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_gris','Carton_brun','mal_croppe','flou','environnement','kraft','cartonnette')) 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`=20852478 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_gris','Carton_brun','mal_croppe','flou','environnement','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_3726_cartonnette_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)[[20852478, 20852479, 3726, 0.5, 492628673, 979], [20852478, 20852480, 3726, 0.5, 2107752385, 979], [20852478, 20852481, 3726, 0.5, 2107752406, 979], [20852478, 20852482, 3726, 0.5, 492668766, 979], [20852478, 20852483, 3726, 0.5, 492725882, 979], [20852478, 20852484, 3726, 0.5, 2107753020, 979], [20852478, 20852485, 3726, 0.5, 2107753024, 979], [20852478, 20852486, 3726, 0.5, 2107755527, 979], [20852478, 20852487, 3726, 0.5, 492777938, 979], [20852478, 20852488, 3726, 0.5, 493012381, 979], [20852478, 20852489, 3726, 0.5, 493202403, 979], [20852478, 20852490, 3726, 0.5, 702398920, 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`=20852478 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_gris','Carton_brun','mal_croppe','flou','environnement','kraft','cartonnette')) 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`=20852478 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_gris','Carton_brun','mal_croppe','flou','environnement','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20852478, 'sub_port_id': 20852479, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485277, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20852478, 'sub_port_id': 20852480, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485278, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}, 'autre_refus': {'main_port_id': 20852478, 'sub_port_id': 20852481, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485279, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}, 'papier': {'main_port_id': 20852478, 'sub_port_id': 20852482, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485280, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}, 'plastique': {'main_port_id': 20852478, 'sub_port_id': 20852483, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485281, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}, 'Carton_gris': {'main_port_id': 20852478, 'sub_port_id': 20852484, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485282, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}, 'Carton_brun': {'main_port_id': 20852478, 'sub_port_id': 20852485, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485283, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}, 'mal_croppe': {'main_port_id': 20852478, 'sub_port_id': 20852486, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485284, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}, 'flou': {'main_port_id': 20852478, 'sub_port_id': 20852487, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485285, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}, 'environnement': {'main_port_id': 20852478, 'sub_port_id': 20852488, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485286, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}, 'kraft': {'main_port_id': 20852478, 'sub_port_id': 20852489, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485287, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}, 'cartonnette': {'main_port_id': 20852478, 'sub_port_id': 20852490, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485288, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 28), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20852479 , 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=20852478 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 (20852479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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 20852480 , 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=20852478 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 (20852480) result : ((1339781395,), (1339781396,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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 20852481 , 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=20852478 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 (20852481) result : ((1339781397,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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 20852482 , 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=20852478 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 (20852482) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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 20852483 , 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=20852478 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 (20852483) result : ((1339781409,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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 20852484 , 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=20852478 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 (20852484) result : ((1339781403,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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 20852485 , 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=20852478 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 (20852485) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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 20852486 , 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=20852478 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 (20852486) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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 20852487 , 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=20852478 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 (20852487) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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 20852488 , 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=20852478 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 (20852488) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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 20852489 , 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=20852478 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 (20852489) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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 20852490 , 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=20852478 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 (20852490) result : ((1339781406,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20852478) result : ((1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) 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`=20852478 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_gris','Carton_brun','mal_croppe','flou','environnement','kraft','cartonnette')) 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`=20852478 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_gris','Carton_brun','mal_croppe','flou','environnement','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_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__26022025_19_45_14_10140_4417_cartonnette_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)[[20852478, 20852491, 4417, 0.5, 492628673, 979], [20852478, 20852492, 4417, 0.5, 2107752385, 979], [20852478, 20852493, 4417, 0.5, 2107752406, 979], [20852478, 20852494, 4417, 0.5, 492668766, 979], [20852478, 20852495, 4417, 0.5, 492725882, 979], [20852478, 20852496, 4417, 0.5, 2107753020, 979], [20852478, 20852497, 4417, 0.5, 2107753024, 979], [20852478, 20852498, 4417, 0.5, 2107755527, 979], [20852478, 20852499, 4417, 0.5, 492777938, 979], [20852478, 20852500, 4417, 0.5, 493012381, 979], [20852478, 20852501, 4417, 0.5, 493202403, 979], [20852478, 20852502, 4417, 0.5, 702398920, 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`=20852478 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_gris','Carton_brun','mal_croppe','flou','environnement','kraft','cartonnette')) 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`=20852478 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','autre_refus','papier','plastique','Carton_gris','Carton_brun','mal_croppe','flou','environnement','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 20852478, 'sub_port_id': 20852491, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485289, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20852478, 'sub_port_id': 20852492, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485290, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}, 'autre_refus': {'main_port_id': 20852478, 'sub_port_id': 20852493, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485291, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}, 'papier': {'main_port_id': 20852478, 'sub_port_id': 20852494, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485292, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}, 'plastique': {'main_port_id': 20852478, 'sub_port_id': 20852495, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485293, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}, 'Carton_gris': {'main_port_id': 20852478, 'sub_port_id': 20852496, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485294, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}, 'Carton_brun': {'main_port_id': 20852478, 'sub_port_id': 20852497, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485295, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}, 'mal_croppe': {'main_port_id': 20852478, 'sub_port_id': 20852498, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485296, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}, 'flou': {'main_port_id': 20852478, 'sub_port_id': 20852499, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485297, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}, 'environnement': {'main_port_id': 20852478, 'sub_port_id': 20852500, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485298, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}, 'kraft': {'main_port_id': 20852478, 'sub_port_id': 20852501, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485299, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}, 'cartonnette': {'main_port_id': 20852478, 'sub_port_id': 20852502, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13485300, 'last_updated_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 19, 53, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 19, 53, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852486 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852487 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852500,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852488 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852489 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20852502,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20852490 lien utilise dans velours : https://www.fotonower.com/velours/20852491,20852492,20852493,20852494,20852495,20852496,20852497,20852498,20852499,20852500,20852501,20852502?tags=metal,Teint_Dans_La_Masse,autre_refus,papier,plastique,Carton_gris,Carton_brun,mal_croppe,flou,environnement,kraft,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20852478]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079] map_info['map_portfolio_photo'] : {20852478: [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079]} final : False mtd_id 4302 list_pids : [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079] Looping around the photos to save general results len do output : 1 /20852478. 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, '2617453') ('4302', '20852478', '1339781558', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781555', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781552', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781549', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781480', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781465', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781463', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781448', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781422', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781412', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781364', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781361', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781357', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781353', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781283', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781282', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781280', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781276', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781256', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781252', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781233', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781229', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781225', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781220', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781083', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781079', None, None, None, None, None, '2617453') 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, '20852478', "{'metal': 20852479, 'Teint_Dans_La_Masse': 20852480, 'autre_refus': 20852481, 'papier': 20852482, 'plastique': 20852483, 'Carton_gris': 20852484, 'Carton_brun': 20852485, 'mal_croppe': 20852486, 'flou': 20852487, 'environnement': 20852488, 'kraft': 20852489, 'cartonnette': 20852490}", None, None, None, None, '2617453'), ('4302', '20852478', '1339781558', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781555', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781552', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781549', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781480', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781465', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781463', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781448', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781422', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781412', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781364', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781361', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781357', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781353', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781283', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781282', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781280', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781276', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781256', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781252', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781233', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781229', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781225', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781220', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781083', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781079', None, None, None, None, None, '2617453')] time used for this insertion : 0.01677703857421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.3967950344085693 time spend to save output : 0.017191171646118164 total time spend for step 1 : 2.4139862060546875 step2:final Wed Feb 26 19:53:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (20852478) 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 20852478 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339781083,1339781079,1339781233,1339781229,1339781225,1339781220,1339781283,1339781282,1339781280,1339781276,1339781256,1339781252,1339781364,1339781361,1339781357,1339781353,1339781480,1339781465,1339781463,1339781448,1339781422,1339781412,1339781558,1339781555,1339781552,1339781549); 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([20852478]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} new output for save of step final : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079] map_info['map_portfolio_photo'] : {20852478: [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079]} final : False mtd_id 4302 list_pids : [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079] Looping around the photos to save general results len do output : 26 /1339781558.Didn't retrieve data . /1339781555.Didn't retrieve data . /1339781552.Didn't retrieve data . /1339781549.Didn't retrieve data . /1339781480.Didn't retrieve data . /1339781465.Didn't retrieve data . /1339781463.Didn't retrieve data . /1339781448.Didn't retrieve data . /1339781422.Didn't retrieve data . /1339781412.Didn't retrieve data . /1339781364.Didn't retrieve data . /1339781361.Didn't retrieve data . /1339781357.Didn't retrieve data . /1339781353.Didn't retrieve data . /1339781283.Didn't retrieve data . /1339781282.Didn't retrieve data . /1339781280.Didn't retrieve data . /1339781276.Didn't retrieve data . /1339781256.Didn't retrieve data . /1339781252.Didn't retrieve data . /1339781233.Didn't retrieve data . /1339781229.Didn't retrieve data . /1339781225.Didn't retrieve data . /1339781220.Didn't retrieve data . /1339781083.Didn't retrieve data . /1339781079.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, '2617453') ('4302', '20852478', '1339781558', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781555', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781552', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781549', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781480', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781465', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781463', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781448', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781422', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781412', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781364', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781361', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781357', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781353', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781283', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781282', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781280', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781276', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781256', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781252', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781233', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781229', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781225', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781220', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781083', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781079', None, None, None, None, None, '2617453') 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', '20852478', '1339781558', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781555', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781552', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781549', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781480', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781465', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781463', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781448', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781422', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781412', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781364', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781361', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781357', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781353', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781283', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781282', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781280', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781276', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781256', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781252', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781233', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781229', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781225', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781220', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781083', '0.08734948947900596', None, None, None, None, '2617453'), ('4302', '20852478', '1339781079', '0.08734948947900596', None, None, None, None, '2617453')] time used for this insertion : 0.021099328994750977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.026813507080078125 time spend to save output : 0.022177934646606445 total time spend for step 2 : 0.04899144172668457 step3:velours_tree Wed Feb 26 19:53:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {20852478: [{'metal': 20852479, 'Teint_Dans_La_Masse': 20852480, 'autre_refus': 20852481, 'papier': 20852482, 'plastique': 20852483, 'Carton_gris': 20852484, 'Carton_brun': 20852485, 'mal_croppe': 20852486, 'flou': 20852487, 'environnement': 20852488, 'kraft': 20852489, 'cartonnette': 20852490}]} input_args_next_step : {20852478: ()} output_args : {20852478: [{'metal': 20852479, 'Teint_Dans_La_Masse': 20852480, 'autre_refus': 20852481, 'papier': 20852482, 'plastique': 20852483, 'Carton_gris': 20852484, 'Carton_brun': 20852485, 'mal_croppe': 20852486, 'flou': 20852487, 'environnement': 20852488, 'kraft': 20852489, 'cartonnette': 20852490}]} args : 20852478 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 : ({'metal': 20852479, 'Teint_Dans_La_Masse': 20852480, 'autre_refus': 20852481, 'papier': 20852482, 'plastique': 20852483, 'Carton_gris': 20852484, 'Carton_brun': 20852485, 'mal_croppe': 20852486, 'flou': 20852487, 'environnement': 20852488, 'kraft': 20852489, 'cartonnette': 20852490},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20852478) 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([20852478]) 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.32560300827026367 time spend to save output : 4.363059997558594e-05 total time spend for step 3 : 0.32564663887023926 step4:send_mail_cod Wed Feb 26 19:53:31 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 : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} input_args_next_step : {1339781558: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781558 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781555 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781552 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781549 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781480 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781465 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781463 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781448 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781422 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781412 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781364 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781361 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781357 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781353 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781283 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781282 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781280 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781276 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781256 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781252 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781233 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781229 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781225 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781220 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781083 depend.output_id : 0 input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ()} output_args : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',)} args : 1339781079 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 : {20852478: [{'metal': 20852479, 'Teint_Dans_La_Masse': 20852480, 'autre_refus': 20852481, 'papier': 20852482, 'plastique': 20852483, 'Carton_gris': 20852484, 'Carton_brun': 20852485, 'mal_croppe': 20852486, 'flou': 20852487, 'environnement': 20852488, 'kraft': 20852489, 'cartonnette': 20852490}]} input_args_next_step : {1339781558: ('0.08734948947900596',), 1339781555: ('0.08734948947900596',), 1339781552: ('0.08734948947900596',), 1339781549: ('0.08734948947900596',), 1339781480: ('0.08734948947900596',), 1339781465: ('0.08734948947900596',), 1339781463: ('0.08734948947900596',), 1339781448: ('0.08734948947900596',), 1339781422: ('0.08734948947900596',), 1339781412: ('0.08734948947900596',), 1339781364: ('0.08734948947900596',), 1339781361: ('0.08734948947900596',), 1339781357: ('0.08734948947900596',), 1339781353: ('0.08734948947900596',), 1339781283: ('0.08734948947900596',), 1339781282: ('0.08734948947900596',), 1339781280: ('0.08734948947900596',), 1339781276: ('0.08734948947900596',), 1339781256: ('0.08734948947900596',), 1339781252: ('0.08734948947900596',), 1339781233: ('0.08734948947900596',), 1339781229: ('0.08734948947900596',), 1339781225: ('0.08734948947900596',), 1339781220: ('0.08734948947900596',), 1339781083: ('0.08734948947900596',), 1339781079: ('0.08734948947900596',), 20852478: ()} output_args : {20852478: [{'metal': 20852479, 'Teint_Dans_La_Masse': 20852480, 'autre_refus': 20852481, 'papier': 20852482, 'plastique': 20852483, 'Carton_gris': 20852484, 'Carton_brun': 20852485, 'mal_croppe': 20852486, 'flou': 20852487, 'environnement': 20852488, 'kraft': 20852489, 'cartonnette': 20852490}]} args : 20852478 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.08734948947900596',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20852478) 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 (1339781558,1339781555,1339781552,1339781549,1339781480,1339781465,1339781463,1339781448,1339781422,1339781412,1339781364,1339781361,1339781357,1339781353,1339781283,1339781282,1339781280,1339781276,1339781256,1339781252,1339781233,1339781229,1339781225,1339781220,1339781083,1339781079) Found this number of photos: 26 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339781079 begin to download photo : 1339781252 begin to download photo : 1339781353 begin to download photo : 1339781448 begin to download photo : 1339781555 download finish for photo 1339781353 begin to download photo : 1339781357 download finish for photo 1339781252 begin to download photo : 1339781256 download finish for photo 1339781555 begin to download photo : 1339781558 download finish for photo 1339781448 begin to download photo : 1339781463 download finish for photo 1339781079 begin to download photo : 1339781083 download finish for photo 1339781357 begin to download photo : 1339781361 download finish for photo 1339781558 download finish for photo 1339781256 begin to download photo : 1339781276 download finish for photo 1339781463 begin to download photo : 1339781465 download finish for photo 1339781083 begin to download photo : 1339781220 download finish for photo 1339781361 begin to download photo : 1339781364 download finish for photo 1339781465 begin to download photo : 1339781480 download finish for photo 1339781276 begin to download photo : 1339781280 download finish for photo 1339781364 begin to download photo : 1339781412 download finish for photo 1339781220 begin to download photo : 1339781225 download finish for photo 1339781480 begin to download photo : 1339781549 download finish for photo 1339781280 begin to download photo : 1339781282 download finish for photo 1339781225 begin to download photo : 1339781229 download finish for photo 1339781412 begin to download photo : 1339781422 download finish for photo 1339781549 begin to download photo : 1339781552 download finish for photo 1339781282 begin to download photo : 1339781283 download finish for photo 1339781229 begin to download photo : 1339781233 download finish for photo 1339781422 download finish for photo 1339781552 download finish for photo 1339781233 download finish for photo 1339781283 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette208524791740596011/ length of list_filenames : 26 ; length of list_pids : 26 ; length of list_args : 26 results_Auto_P20852478_26-02-2025_19_53_31.pdf 20852479 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=20852479 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208524791740596011 20852481 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=20852481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339781397: '1740595732_3964484_1339781083_6dfb27d0e11e9bd922e1c1329ba993c3_rle_crop_3687832902_0.png'} change filename to text .imagette208524811740596011/ imagette208524811740596011/1740595732_3964484_1339781083_6dfb27d0e11e9bd922e1c1329ba993c3_rle_crop_3687832902_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/9ff3b714db3d78f0ee44c85b666e1971_64654516.png imagette208524811740596011 20852483 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=20852483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339781409: '1740595732_3964484_1339781083_6dfb27d0e11e9bd922e1c1329ba993c3_rle_crop_3687832904_0.png'} change filename to text .imagette208524831740596011/ imagette208524831740596011/1740595732_3964484_1339781083_6dfb27d0e11e9bd922e1c1329ba993c3_rle_crop_3687832904_0.png.png imagette208524861740596011/ imagette208524871740596011/ imagette208524891740596011/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e1c89e1eb7cfc31159037c0003bd47e5_65240728.png imagette208524831740596011 20852486 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=20852486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208524861740596011 20852487 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=20852487 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208524871740596011 20852489 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=20852489 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208524891740596011 20852490 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=20852490 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339781406: '1740595732_3964484_1339781079_86ad5d547023ef10841795b487461ab9_rle_crop_3687833014_0.png'} change filename to text .imagette208524901740596011/ imagette208524901740596011/1740595732_3964484_1339781079_86ad5d547023ef10841795b487461ab9_rle_crop_3687833014_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/b3a029292658e3b87139a99d3a75f067_77348935.png imagette208524901740596011 20852480 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=20852480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339781395: '1740595732_3964484_1339781083_6dfb27d0e11e9bd922e1c1329ba993c3_rle_crop_3687832908_0.png', 1339781396: '1740595732_3964484_1339781079_86ad5d547023ef10841795b487461ab9_rle_crop_3687833016_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/d820d54ade2495132979ac464017d5c6_84854956.png change filename to text .imagette208524801740596012/ imagette208524801740596012/1740595732_3964484_1339781079_86ad5d547023ef10841795b487461ab9_rle_crop_3687833016_0.png.png imagette208524801740596012/1740595732_3964484_1339781083_6dfb27d0e11e9bd922e1c1329ba993c3_rle_crop_3687832908_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/7b677017df72173bcd3a110623973256_79574158.png imagette208524801740596012 20852484 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=20852484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339781403: '1740595732_3964484_1339781079_86ad5d547023ef10841795b487461ab9_rle_crop_3687833012_0.png'} change filename to text .imagette208524841740596012/ imagette208524841740596012/1740595732_3964484_1339781079_86ad5d547023ef10841795b487461ab9_rle_crop_3687833012_0.png.png imagette208524851740596012/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/514de5066b34ff41aa17221277e19d19_37854284.png imagette208524841740596012 20852485 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=20852485 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208524851740596012 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20852478 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20852491,20852492,20852493,20852494,20852495,20852496,20852497,20852498,20852499,20852500,20852501,20852502?tags=metal,Teint_Dans_La_Masse,autre_refus,papier,plastique,Carton_gris,Carton_brun,mal_croppe,flou,environnement,kraft,cartonnette your option no_mail is active, we will not send the real mail to your client args[1339781558] : ('0.08734948947900596',) no score found for photo 1339781558 We are sending mail with results at report@fotonower.com args[1339781555] : ('0.08734948947900596',) no score found for photo 1339781555 We are sending mail with results at report@fotonower.com args[1339781552] : ('0.08734948947900596',) no score found for photo 1339781552 We are sending mail with results at report@fotonower.com args[1339781549] : ('0.08734948947900596',) no score found for photo 1339781549 We are sending mail with results at report@fotonower.com args[1339781480] : ('0.08734948947900596',) no score found for photo 1339781480 We are sending mail with results at report@fotonower.com args[1339781465] : ('0.08734948947900596',) no score found for photo 1339781465 We are sending mail with results at report@fotonower.com args[1339781463] : ('0.08734948947900596',) no score found for photo 1339781463 We are sending mail with results at report@fotonower.com args[1339781448] : ('0.08734948947900596',) no score found for photo 1339781448 We are sending mail with results at report@fotonower.com args[1339781422] : ('0.08734948947900596',) no score found for photo 1339781422 We are sending mail with results at report@fotonower.com args[1339781412] : ('0.08734948947900596',) no score found for photo 1339781412 We are sending mail with results at report@fotonower.com args[1339781364] : ('0.08734948947900596',) no score found for photo 1339781364 We are sending mail with results at report@fotonower.com args[1339781361] : ('0.08734948947900596',) no score found for photo 1339781361 We are sending mail with results at report@fotonower.com args[1339781357] : ('0.08734948947900596',) no score found for photo 1339781357 We are sending mail with results at report@fotonower.com args[1339781353] : ('0.08734948947900596',) no score found for photo 1339781353 We are sending mail with results at report@fotonower.com args[1339781283] : ('0.08734948947900596',) no score found for photo 1339781283 We are sending mail with results at report@fotonower.com args[1339781282] : ('0.08734948947900596',) no score found for photo 1339781282 We are sending mail with results at report@fotonower.com args[1339781280] : ('0.08734948947900596',) no score found for photo 1339781280 We are sending mail with results at report@fotonower.com args[1339781276] : ('0.08734948947900596',) no score found for photo 1339781276 We are sending mail with results at report@fotonower.com args[1339781256] : ('0.08734948947900596',) no score found for photo 1339781256 We are sending mail with results at report@fotonower.com args[1339781252] : ('0.08734948947900596',) no score found for photo 1339781252 We are sending mail with results at report@fotonower.com args[1339781233] : ('0.08734948947900596',) no score found for photo 1339781233 We are sending mail with results at report@fotonower.com args[1339781229] : ('0.08734948947900596',) no score found for photo 1339781229 We are sending mail with results at report@fotonower.com args[1339781225] : ('0.08734948947900596',) no score found for photo 1339781225 We are sending mail with results at report@fotonower.com args[1339781220] : ('0.08734948947900596',) no score found for photo 1339781220 We are sending mail with results at report@fotonower.com args[1339781083] : ('0.08734948947900596',) no score found for photo 1339781083 We are sending mail with results at report@fotonower.com args[1339781079] : ('0.08734948947900596',) no score found for photo 1339781079 We are sending mail with results at report@fotonower.com refus_total : 0.08734948947900596 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=20852478 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_P20852478_26-02-2025_19_53_31.pdf results_Auto_P20852478_26-02-2025_19_53_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852478_26-02-2025_19_53_31.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','20852478','results_Auto_P20852478_26-02-2025_19_53_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852478_26-02-2025_19_53_31.pdf','pdf','','0.23','0.08734948947900596') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20852478]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079] map_info['map_portfolio_photo'] : {20852478: [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079]} final : False mtd_id 4302 list_pids : [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079] 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, '2617453') ('4302', '20852478', '1339781558', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781555', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781552', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781549', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781480', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781465', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781463', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781448', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781422', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781412', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781364', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781361', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781357', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781353', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781283', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781282', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781280', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781276', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781256', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781252', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781233', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781229', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781225', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781220', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781083', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781079', None, None, None, None, None, '2617453') 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', '20852478', '1339781558', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781555', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781552', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781549', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781480', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781465', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781463', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781448', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781422', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781412', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781364', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781361', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781357', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781353', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781283', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781282', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781280', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781276', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781256', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781252', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781233', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781229', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781225', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781220', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781083', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781079', None, None, None, None, None, '2617453')] time used for this insertion : 0.016566753387451172 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.581362009048462 time spend to save output : 0.01702141761779785 total time spend for step 4 : 2.5983834266662598 step5:split_time_score Wed Feb 26 19:53: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 : ['20852478'] 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 : [('20852478',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20852478) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339781555: {'path': 'temp/1740596011_4193785_1339781555_92358e925cfb14d92823dd397cb61816.jpg', 'extension': 'jpg'}, 1339781558: {'path': 'temp/1740596011_4193785_1339781558_ba5c51e3245b35a23e55082ea5e55697.jpg', 'extension': 'jpg'}, 1339781353: {'path': 'temp/1740596011_4193785_1339781353_ff0711428216ba41a3710d26232f488e.jpg', 'extension': 'jpg'}, 1339781357: {'path': 'temp/1740596011_4193785_1339781357_0cd1ef5b7b85cc6773debde4f6e91b92.jpg', 'extension': 'jpg'}, 1339781361: {'path': 'temp/1740596011_4193785_1339781361_c1c4758e5c528329c4c982083f608517.jpg', 'extension': 'jpg'}, 1339781364: {'path': 'temp/1740596011_4193785_1339781364_c5d9ecea81b932db08c102b6bd70cc5e.jpg', 'extension': 'jpg'}, 1339781412: {'path': 'temp/1740596011_4193785_1339781412_9febef5db5b21e9b0324e6996a7dea3e.jpg', 'extension': 'jpg'}, 1339781422: {'path': 'temp/1740596011_4193785_1339781422_31bdcc60993b43f82114c465bbaa5ffd.jpg', 'extension': 'jpg'}, 1339781448: {'path': 'temp/1740596011_4193785_1339781448_2c1c323ff9e738ad76c5b7574d2d2fdd.jpg', 'extension': 'jpg'}, 1339781463: {'path': 'temp/1740596011_4193785_1339781463_0666590c1295e347f1b182c0d95062f0.jpg', 'extension': 'jpg'}, 1339781465: {'path': 'temp/1740596011_4193785_1339781465_6ec2d162898756de6211cb9e261e9e55.jpg', 'extension': 'jpg'}, 1339781480: {'path': 'temp/1740596011_4193785_1339781480_b08d3778583804cbfa1a2a4712f4ae88.jpg', 'extension': 'jpg'}, 1339781549: {'path': 'temp/1740596011_4193785_1339781549_9547e7f5415b44ce0d8c9332055a545e.jpg', 'extension': 'jpg'}, 1339781552: {'path': 'temp/1740596011_4193785_1339781552_14f783b6e4952112bef8a0268d866b9f.jpg', 'extension': 'jpg'}, 1339781079: {'path': 'temp/1740596011_4193785_1339781079_86ad5d547023ef10841795b487461ab9.jpg', 'extension': 'jpg'}, 1339781083: {'path': 'temp/1740596011_4193785_1339781083_6dfb27d0e11e9bd922e1c1329ba993c3.jpg', 'extension': 'jpg'}, 1339781220: {'path': 'temp/1740596011_4193785_1339781220_15df342bc840c21fedca6d0aa704c672.jpg', 'extension': 'jpg'}, 1339781225: {'path': 'temp/1740596011_4193785_1339781225_f2ad00655fbc4f251dbb06a694541548.jpg', 'extension': 'jpg'}, 1339781229: {'path': 'temp/1740596011_4193785_1339781229_5b13e23466384fcbba6d50ccdcc5fab0.jpg', 'extension': 'jpg'}, 1339781233: {'path': 'temp/1740596011_4193785_1339781233_0a3262db64cb5eb9f8a869e8d92ca31a.jpg', 'extension': 'jpg'}, 1339781252: {'path': 'temp/1740596011_4193785_1339781252_b8a19f50e15e941431fa4b017ea162c4.jpg', 'extension': 'jpg'}, 1339781256: {'path': 'temp/1740596011_4193785_1339781256_cac93065ba6d7e73124ab72f9ee09e42.jpg', 'extension': 'jpg'}, 1339781276: {'path': 'temp/1740596011_4193785_1339781276_d8d551b5dfcc67db5552b0c88579eb19.jpg', 'extension': 'jpg'}, 1339781280: {'path': 'temp/1740596011_4193785_1339781280_a2bed3522044aff582df3ff2250c14be.jpg', 'extension': 'jpg'}, 1339781282: {'path': 'temp/1740596011_4193785_1339781282_a20682cd385a9ab4fb5287d7c1ca23fb.jpg', 'extension': 'jpg'}, 1339781283: {'path': 'temp/1740596011_4193785_1339781283_c8a122d539a2fba7253db0bf432856cb.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 = 20852478; (('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 = 20852478 group by h (('19', 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=20852478 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 (20852478) 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 (20852478) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26022025 20852478 Nombre de photos uploadées : 26 / 23040 (0%) 26022025 20852478 Nombre de photos taguées (types de déchets): 0 / 26 (0%) 26022025 20852478 Nombre de photos taguées (volume) : 0 / 26 (0%) [{'photo_id': 1339781083, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/6dfb27d0e11e9bd922e1c1329ba993c3.jpg', 'username': None, 'uploaded_at': 1740595597, 'text': 'image_26022025_19_45_14_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339781079, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/86ad5d547023ef10841795b487461ab9.jpg', 'username': None, 'uploaded_at': 1740595597, 'text': 'image_26022025_19_45_34_010138m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1339781233, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/0a3262db64cb5eb9f8a869e8d92ca31a.jpg', 'username': None, 'uploaded_at': 1740595656, 'text': 'image_26022025_19_45_45_10139.jpg'}, {'photo_id': 1339781229, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5b13e23466384fcbba6d50ccdcc5fab0.jpg', 'username': None, 'uploaded_at': 1740595656, 'text': 'image_26022025_19_46_24_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 1.2159347534179688e-05 ?????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024018287658691406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20852478, '2025-02-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1624425,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024687767028808594 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= 1624425 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634031, 'mtr_portfolio_id': 20850765, 'dashboard_result_id': 9082058, '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_P20850765_26-02-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20850826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20850827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20850829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20850830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20850831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20850832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20850833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20850834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20850835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20850836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20850837, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634031, 'mtr_portfolio_id': 20851198, 'dashboard_result_id': 9082059, '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_P20851198_26-02-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851270, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634031, 'mtr_portfolio_id': 20851819, 'dashboard_result_id': 9082060, '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_P20851819_26-02-2025_19_52_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851831, 'pht': 3726}}"}, {'dashboat_entry_day': 1624425, 'dashboard_run_id': 1634031, 'mtr_portfolio_id': 20852478, 'dashboard_result_id': 9082062, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20850765 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': 2617250, 'mtr_portfolio_id': 20850765, 'created_at': datetime.datetime(2025, 2, 26, 19, 18, 59), 'result': '0.10272645502208905', 'result_long': None, 'result_double': None}] Qualite : 0.10272645502208905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20850765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20850765_26-02-2025_19_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20850765 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_P20850765_26-02-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20850826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20850827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20850829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20850830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20850831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20850832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20850833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20850834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20850835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20850836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20850837, 'pht': 3726}}" where mtr_portfolio_id = 20850765 and dashboard_run_id = 1634031 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`=20850765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9082058, 0.10272645502208905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20850765_26-02-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20850826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20850827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20850828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20850829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20850830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20850831, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20850832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20850833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20850834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20850835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20850836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20850837, '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 = 20851198 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': 2617296, 'mtr_portfolio_id': 20851198, 'created_at': datetime.datetime(2025, 2, 26, 19, 32, 58), 'result': '0.09350744993343718', 'result_long': None, 'result_double': None}] Qualite : 0.09350744993343718 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20851198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851198_26-02-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20851198 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_P20851198_26-02-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851270, 'pht': 3726}}" where mtr_portfolio_id = 20851198 and dashboard_run_id = 1634031 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`=20851198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9082059, 0.09350744993343718, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851198_26-02-2025_19_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851270, '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 = 20851819 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': 2617385, 'mtr_portfolio_id': 20851819, 'created_at': datetime.datetime(2025, 2, 26, 19, 52, 56), 'result': '0.10541526736032698', 'result_long': None, 'result_double': None}] Qualite : 0.10541526736032698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20851819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851819_26-02-2025_19_52_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20851819 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_P20851819_26-02-2025_19_52_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851831, 'pht': 3726}}" where mtr_portfolio_id = 20851819 and dashboard_run_id = 1634031 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`=20851819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9082060, 0.10541526736032698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20851819_26-02-2025_19_52_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20851820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20851821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20851822, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20851823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20851824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20851825, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20851826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20851827, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20851828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20851829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20851830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20851831, '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 = 20852478 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': 2617453, 'mtr_portfolio_id': 20852478, 'created_at': datetime.datetime(2025, 2, 26, 19, 53, 30), 'result': '0.08734948947900596', 'result_long': None, 'result_double': None}] Qualite : 0.08734948947900596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20852478 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852478_26-02-2025_19_53_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20852478 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_P20852478_26-02-2025_19_53_31.pdf'}" where mtr_portfolio_id = 20852478 and dashboard_run_id = 1634031 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`=20852478 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9082062, 0.08734948947900596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20852478_26-02-2025_19_53_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20852479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20852480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20852481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20852482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20852483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20852484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20852485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20852486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20852487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20852488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20852489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20852490, '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 (20850765,20851198,20851819,20852478) result : ((1339773363,), (1339773371,), (1339773374,), (1339773376,), (1339773399,), (1339773403,), (1339773405,), (1339773487,), (1339773491,), (1339773492,), (1339773494,), (1339773495,), (1339773496,), (1339773515,), (1339773518,), (1339773521,), (1339773523,), (1339773524,), (1339774040,), (1339774047,), (1339774051,), (1339774112,), (1339774145,), (1339774256,), (1339774260,), (1339774262,), (1339774264,), (1339774266,), (1339774272,), (1339774308,), (1339774311,), (1339774315,), (1339774319,), (1339774322,), (1339774341,), (1339774344,), (1339774347,), (1339774350,), (1339774352,), (1339774356,), (1339774372,), (1339774378,), (1339774382,), (1339774386,), (1339774447,), (1339774454,), (1339774462,), (1339774464,), (1339774473,), (1339774500,), (1339774504,), (1339774507,), (1339774510,), (1339774512,), (1339774514,), (1339774529,), (1339774533,), (1339774536,), (1339774594,), (1339774598,), (1339774602,), (1339774610,), (1339774612,), (1339774614,), (1339774628,), (1339774633,), (1339774636,), (1339774641,), (1339774648,), (1339774653,), (1339774669,), (1339774673,), (1339774678,), (1339774683,), (1339774724,), (1339774700,), (1339774705,), (1339774713,), (1339774718,), (1339774721,), (1339775048,), (1339775053,), (1339775055,), (1339775068,), (1339775177,), (1339775312,), (1339775429,), (1339775542,), (1339775553,), (1339775568,), (1339775724,), (1339775766,), (1339775770,), (1339775773,), (1339775776,), (1339775778,), (1339775793,), (1339775798,), (1339775803,), (1339775806,), (1339775810,), (1339775834,), (1339775839,), (1339775842,), (1339775846,), (1339775850,), (1339775860,), (1339776210,), (1339776440,), (1339776444,), (1339776449,), (1339776468,), (1339776478,), (1339776482,), (1339776486,), (1339776490,), (1339776494,), (1339776538,), (1339776542,), (1339776546,), (1339776550,), (1339776556,), (1339776698,), (1339776708,), (1339776719,), (1339776723,), (1339776726,), (1339776760,), (1339776793,), (1339776798,), (1339776803,), (1339776810,), (1339776815,), (1339777583,), (1339777677,), (1339777789,), (1339777878,), (1339777960,), (1339777981,), (1339777998,), (1339778001,), (1339778039,), (1339778150,), (1339778153,), (1339778180,), (1339778184,), (1339778188,), (1339778191,), (1339778192,), (1339778193,), (1339778217,), (1339778222,), (1339778225,), (1339778230,), (1339778273,), (1339778260,), (1339778264,), (1339778267,), (1339778270,), (1339778272,), (1339778301,), (1339778305,), (1339778308,), (1339778311,), (1339778313,), (1339778339,), (1339778344,), (1339778347,), (1339778351,), (1339778354,), (1339778356,), (1339778372,), (1339778384,), (1339778390,), (1339778396,), (1339778417,), (1339778422,), (1339778426,), (1339778474,), (1339778477,), (1339778479,), (1339778492,), (1339778497,), (1339778517,), (1339778532,), (1339778587,), (1339778597,), (1339778602,), (1339778606,), (1339778608,), (1339778611,), (1339778635,), (1339778641,), (1339778646,), (1339778654,), (1339778659,), (1339778660,), (1339778686,), (1339778691,), (1339778696,), (1339778701,), (1339778706,), (1339778774,), (1339778782,), (1339778818,), (1339779121,), (1339779413,), (1339779658,), (1339779663,), (1339779666,), (1339779670,), (1339779979,), (1339780250,), (1339780300,), (1339780322,), (1339780331,), (1339780510,), (1339780517,), (1339780522,), (1339780531,), (1339780539,), (1339780544,), (1339780574,), (1339780581,), (1339780589,), (1339780595,), (1339781017,), (1339781022,), (1339781030,), (1339781044,), (1339781059,), (1339781060,), (1339781087,), (1339781079,), (1339781083,), (1339781220,), (1339781225,), (1339781229,), (1339781233,), (1339781252,), (1339781256,), (1339781276,), (1339781280,), (1339781282,), (1339781283,), (1339781353,), (1339781357,), (1339781361,), (1339781364,), (1339781412,), (1339781422,), (1339781448,), (1339781463,), (1339781465,), (1339781480,), (1339781549,), (1339781552,), (1339781555,), (1339781558,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26022025': {'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([20852478]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079] map_info['map_portfolio_photo'] : {20852478: [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079]} final : True mtd_id 4302 list_pids : [1339781558, 1339781555, 1339781552, 1339781549, 1339781480, 1339781465, 1339781463, 1339781448, 1339781422, 1339781412, 1339781364, 1339781361, 1339781357, 1339781353, 1339781283, 1339781282, 1339781280, 1339781276, 1339781256, 1339781252, 1339781233, 1339781229, 1339781225, 1339781220, 1339781083, 1339781079] Looping around the photos to save general results len do output : 1 /20852478Didn'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, '2617453') ('4302', '20852478', '1339781558', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781555', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781552', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781549', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781480', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781465', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781463', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781448', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781422', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781412', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781364', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781361', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781357', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781353', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781283', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781282', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781280', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781276', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781256', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781252', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781233', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781229', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781225', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781220', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781083', None, None, None, None, None, '2617453') ('4302', None, None, None, None, None, None, None, '2617453') ('4302', '20852478', '1339781079', None, None, None, None, None, '2617453') 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, '20852478', 'None', None, None, None, None, '2617453'), ('4302', '20852478', '1339781558', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781555', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781552', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781549', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781480', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781465', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781463', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781448', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781422', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781412', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781364', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781361', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781357', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781353', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781283', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781282', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781280', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781276', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781256', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781252', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781233', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781229', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781225', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781220', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781083', None, None, None, None, None, '2617453'), ('4302', '20852478', '1339781079', None, None, None, None, None, '2617453')] time used for this insertion : 0.01738715171813965 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8283984661102295 time spend to save output : 0.0178067684173584 total time spend for step 5 : 0.8462052345275879 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 (2617453) 2.58user 2.72system 0:10.15elapsed 52%CPU (0avgtext+0avgdata 161492maxresident)k 952inputs+16216outputs (1major+76685minor)pagefaults 0swaps