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 : 2252525 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 (2613580) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2613580) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813591 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2613580'] with mtr_portfolio_ids : ['20813591'] and first list_photo_ids : [] new path : /proc/2252525/ Name: python3 Umask: 0002 State: R (running) Tgid: 2252525 Ngid: 0 Pid: 2252525 PPid: 2252524 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2252525 NSpid: 2252525 NSpgid: 2249735 NSsid: 2249735 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99384 kB VmRSS: 99384 kB RssAnon: 59752 kB RssFile: 39632 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 83 nonvoluntary_ctxt_switches: 108 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2252525', 'Ngid': '0', 'Pid': '2252525', 'PPid': '2252524', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2252525', 'NSpid': '2252525', 'NSpgid': '2249735', 'NSsid': '2249735', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99384 kB', 'VmRSS': '99384 kB', 'RssAnon': '59752 kB', 'RssFile': '39632 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '83', 'nonvoluntary_ctxt_switches': '108'} ('datou_batch_current', '2252525', '1106844', '0', '1106844', '865592', '99384', b'', 'marlene', '2613580') 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 (20813591) 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 (2613580 ) ) 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 (20813591) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339578237, 'portfolio_id': 20813591}, {'photo_id': 1339578234, 'portfolio_id': 20813591}, {'photo_id': 1339578230, 'portfolio_id': 20813591}, {'photo_id': 1339578226, 'portfolio_id': 20813591}, {'photo_id': 1339578224, 'portfolio_id': 20813591}, {'photo_id': 1339578221, 'portfolio_id': 20813591}, {'photo_id': 1339578196, 'portfolio_id': 20813591}, {'photo_id': 1339578193, 'portfolio_id': 20813591}, {'photo_id': 1339578188, 'portfolio_id': 20813591}, {'photo_id': 1339578181, 'portfolio_id': 20813591}, {'photo_id': 1339578176, 'portfolio_id': 20813591}, {'photo_id': 1339577952, 'portfolio_id': 20813591}, {'photo_id': 1339577949, 'portfolio_id': 20813591}, {'photo_id': 1339577945, 'portfolio_id': 20813591}, {'photo_id': 1339577942, 'portfolio_id': 20813591}, {'photo_id': 1339577917, 'portfolio_id': 20813591}, {'photo_id': 1339577913, 'portfolio_id': 20813591}, {'photo_id': 1339577909, 'portfolio_id': 20813591}, {'photo_id': 1339577905, 'portfolio_id': 20813591}, {'photo_id': 1339577888, 'portfolio_id': 20813591}, {'photo_id': 1339577884, 'portfolio_id': 20813591}, {'photo_id': 1339577880, 'portfolio_id': 20813591}, {'photo_id': 1339577877, 'portfolio_id': 20813591}, {'photo_id': 1339577875, 'portfolio_id': 20813591}, {'photo_id': 1339577835, 'portfolio_id': 20813591}, {'photo_id': 1339577832, 'portfolio_id': 20813591}, {'photo_id': 1339577828, 'portfolio_id': 20813591}, {'photo_id': 1339577802, 'portfolio_id': 20813591}, {'photo_id': 1339577798, 'portfolio_id': 20813591}, {'photo_id': 1339577791, 'portfolio_id': 20813591}, {'photo_id': 1339577772, 'portfolio_id': 20813591}, {'photo_id': 1339577740, 'portfolio_id': 20813591}, {'photo_id': 1339577734, 'portfolio_id': 20813591}, {'photo_id': 1339577731, 'portfolio_id': 20813591}, {'photo_id': 1339577727, 'portfolio_id': 20813591}] map_portfolio_id_photo_id: {20813591: [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905, 1339577888, 1339577884, 1339577880, 1339577877, 1339577875, 1339577835, 1339577832, 1339577828, 1339577802, 1339577798, 1339577791, 1339577772, 1339577740, 1339577734, 1339577731, 1339577727]} ##### 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.01513218879699707 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 25 18:54:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20813591) 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 : 20813591 get user id for portfolio 20813591 get sub ptf for main ptf 20813591, type 3726 and hashtags ['cartonnette', 'plastique', 'kraft', 'autre_refus', 'Teint_Dans_La_Masse', 'Carton_brun', 'environnement', 'metal', 'mal_croppe', 'flou', 'Carton_gris', 'papier'] 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`=20813591 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','kraft','autre_refus','Teint_Dans_La_Masse','Carton_brun','environnement','metal','mal_croppe','flou','Carton_gris','papier')) 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`=20813591 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','kraft','autre_refus','Teint_Dans_La_Masse','Carton_brun','environnement','metal','mal_croppe','flou','Carton_gris','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20813591, 'sub_port_id': 20813666, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450707, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}, 'flou': {'main_port_id': 20813591, 'sub_port_id': 20813667, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450708, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}, 'Carton_gris': {'main_port_id': 20813591, 'sub_port_id': 20813668, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450709, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}, 'environnement': {'main_port_id': 20813591, 'sub_port_id': 20813669, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450710, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}, 'plastique': {'main_port_id': 20813591, 'sub_port_id': 20813670, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450711, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}, 'kraft': {'main_port_id': 20813591, 'sub_port_id': 20813671, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450712, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}, 'mal_croppe': {'main_port_id': 20813591, 'sub_port_id': 20813672, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450713, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}, 'cartonnette': {'main_port_id': 20813591, 'sub_port_id': 20813673, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450714, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}, 'autre_refus': {'main_port_id': 20813591, 'sub_port_id': 20813674, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450715, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}, 'metal': {'main_port_id': 20813591, 'sub_port_id': 20813675, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450716, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20813591, 'sub_port_id': 20813676, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450717, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}, 'papier': {'main_port_id': 20813591, 'sub_port_id': 20813677, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450718, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 49, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20813666 , 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=20813591 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 (20813666) result : ((1339577934,), (1339578214,), (1339578215,), (1339578482,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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 20813667 , 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=20813591 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 (20813667) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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 20813668 , 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=20813591 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 (20813668) result : ((1339577848,), (1339577932,), (1339577933,), (1339578477,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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 20813669 , 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=20813591 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 (20813669) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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 20813670 , 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=20813591 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 (20813670) result : ((1339577855,), (1339577856,), (1339577857,), (1339577936,), (1339577937,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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 20813671 , 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=20813591 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 (20813671) result : ((1339577938,), (1339578216,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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 20813672 , 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=20813591 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 (20813672) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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 20813673 , 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=20813591 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 (20813673) result : ((1339577850,), (1339577851,), (1339577852,), (1339577853,), (1339578183,), (1339578213,), (1339578480,), (1339578481,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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 20813674 , 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=20813591 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 (20813674) result : ((1339577929,), (1339578182,), (1339578210,), (1339578211,), (1339578212,), (1339578476,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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 20813675 , 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=20813591 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 (20813675) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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 20813676 , 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=20813591 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 (20813676) result : ((1339577847,), (1339577927,), (1339577928,), (1339578205,), (1339578206,), (1339578207,), (1339578208,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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 20813677 , 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=20813591 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 (20813677) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20813591) result : ((1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) 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`=20813591 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','kraft','autre_refus','Teint_Dans_La_Masse','Carton_brun','environnement','metal','mal_croppe','flou','Carton_gris','papier')) 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`=20813591 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','plastique','kraft','autre_refus','Teint_Dans_La_Masse','Carton_brun','environnement','metal','mal_croppe','flou','Carton_gris','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20813591, 'sub_port_id': 20813678, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450719, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}, 'flou': {'main_port_id': 20813591, 'sub_port_id': 20813679, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450720, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}, 'Carton_gris': {'main_port_id': 20813591, 'sub_port_id': 20813680, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450721, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}, 'environnement': {'main_port_id': 20813591, 'sub_port_id': 20813681, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450722, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}, 'plastique': {'main_port_id': 20813591, 'sub_port_id': 20813682, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450723, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}, 'kraft': {'main_port_id': 20813591, 'sub_port_id': 20813683, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450724, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}, 'mal_croppe': {'main_port_id': 20813591, 'sub_port_id': 20813684, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450725, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}, 'cartonnette': {'main_port_id': 20813591, 'sub_port_id': 20813685, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450726, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}, 'autre_refus': {'main_port_id': 20813591, 'sub_port_id': 20813686, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450727, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}, 'metal': {'main_port_id': 20813591, 'sub_port_id': 20813687, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450728, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}, 'Teint_Dans_La_Masse': {'main_port_id': 20813591, 'sub_port_id': 20813688, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450729, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}, 'papier': {'main_port_id': 20813591, 'sub_port_id': 20813689, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13450730, 'last_updated_at': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 18, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 18, 50)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813685,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813673 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813686,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813674 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813687,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813675 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813688,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813676 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20813689,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20813677 lien utilise dans velours : https://www.fotonower.com/velours/20813678,20813679,20813680,20813681,20813682,20813683,20813684,20813685,20813686,20813687,20813688,20813689?tags=Carton_brun,flou,Carton_gris,environnement,plastique,kraft,mal_croppe,cartonnette,autre_refus,metal,Teint_Dans_La_Masse,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20813591]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905] map_info['map_portfolio_photo'] : {20813591: [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905, 1339577888, 1339577884, 1339577880, 1339577877, 1339577875, 1339577835, 1339577832, 1339577828, 1339577802, 1339577798, 1339577791, 1339577772, 1339577740, 1339577734, 1339577731, 1339577727]} final : False mtd_id 4302 list_pids : [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905] Looping around the photos to save general results len do output : 1 /20813591. 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, '2613580') ('4302', '20813591', '1339578237', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578234', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578230', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578226', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578224', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578221', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578196', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578193', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578188', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578181', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578176', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577952', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577949', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577945', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577942', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577917', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577913', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577909', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577905', None, None, None, None, None, '2613580') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '20813591', "{'Carton_brun': 20813666, 'flou': 20813667, 'Carton_gris': 20813668, 'environnement': 20813669, 'plastique': 20813670, 'kraft': 20813671, 'mal_croppe': 20813672, 'cartonnette': 20813673, 'autre_refus': 20813674, 'metal': 20813675, 'Teint_Dans_La_Masse': 20813676, 'papier': 20813677}", None, None, None, None, '2613580'), ('4302', '20813591', '1339578237', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578234', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578230', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578226', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578224', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578221', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578196', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578193', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578188', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578181', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578176', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577952', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577949', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577945', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577942', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577917', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577913', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577909', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577905', None, None, None, None, None, '2613580')] time used for this insertion : 0.014662504196166992 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4352173805236816 time spend to save output : 0.015072345733642578 total time spend for step 1 : 1.4502897262573242 step2:final Tue Feb 25 18:54:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (20813591) 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 20813591 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339577740,1339577734,1339577731,1339577727,1339577802,1339577798,1339577791,1339577772,1339577835,1339577832,1339577828,1339577888,1339577884,1339577880,1339577877,1339577875,1339577917,1339577913,1339577909,1339577905,1339577952,1339577949,1339577945,1339577942,1339578196,1339578193,1339578188,1339578181,1339578176,1339578237,1339578234,1339578230,1339578226,1339578224,1339578221); 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([20813591]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} new output for save of step final : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905] map_info['map_portfolio_photo'] : {20813591: [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905, 1339577888, 1339577884, 1339577880, 1339577877, 1339577875, 1339577835, 1339577832, 1339577828, 1339577802, 1339577798, 1339577791, 1339577772, 1339577740, 1339577734, 1339577731, 1339577727]} final : False mtd_id 4302 list_pids : [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905] Looping around the photos to save general results len do output : 19 /1339578237.Didn't retrieve data . /1339578234.Didn't retrieve data . /1339578230.Didn't retrieve data . /1339578226.Didn't retrieve data . /1339578224.Didn't retrieve data . /1339578221.Didn't retrieve data . /1339578196.Didn't retrieve data . /1339578193.Didn't retrieve data . /1339578188.Didn't retrieve data . /1339578181.Didn't retrieve data . /1339578176.Didn't retrieve data . /1339577952.Didn't retrieve data . /1339577949.Didn't retrieve data . /1339577945.Didn't retrieve data . /1339577942.Didn't retrieve data . /1339577917.Didn't retrieve data . /1339577913.Didn't retrieve data . /1339577909.Didn't retrieve data . /1339577905.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, '2613580') ('4302', '20813591', '1339578237', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578234', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578230', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578226', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578224', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578221', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578196', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578193', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578188', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578181', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578176', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577952', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577949', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577945', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577942', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577917', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577913', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577909', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577905', None, None, None, None, None, '2613580') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 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', '20813591', '1339578237', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339578234', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339578230', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339578226', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339578224', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339578221', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339578196', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339578193', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339578188', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339578181', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339578176', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339577952', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339577949', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339577945', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339577942', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339577917', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339577913', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339577909', '0.10531627256561588', None, None, None, None, '2613580'), ('4302', '20813591', '1339577905', '0.10531627256561588', None, None, None, None, '2613580')] time used for this insertion : 0.01418161392211914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06500482559204102 time spend to save output : 0.01502847671508789 total time spend for step 2 : 0.0800333023071289 step3:velours_tree Tue Feb 25 18:54:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {20813591: [{'Carton_brun': 20813666, 'flou': 20813667, 'Carton_gris': 20813668, 'environnement': 20813669, 'plastique': 20813670, 'kraft': 20813671, 'mal_croppe': 20813672, 'cartonnette': 20813673, 'autre_refus': 20813674, 'metal': 20813675, 'Teint_Dans_La_Masse': 20813676, 'papier': 20813677}]} input_args_next_step : {20813591: ()} output_args : {20813591: [{'Carton_brun': 20813666, 'flou': 20813667, 'Carton_gris': 20813668, 'environnement': 20813669, 'plastique': 20813670, 'kraft': 20813671, 'mal_croppe': 20813672, 'cartonnette': 20813673, 'autre_refus': 20813674, 'metal': 20813675, 'Teint_Dans_La_Masse': 20813676, 'papier': 20813677}]} args : 20813591 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 : ({'Carton_brun': 20813666, 'flou': 20813667, 'Carton_gris': 20813668, 'environnement': 20813669, 'plastique': 20813670, 'kraft': 20813671, 'mal_croppe': 20813672, 'cartonnette': 20813673, 'autre_refus': 20813674, 'metal': 20813675, 'Teint_Dans_La_Masse': 20813676, 'papier': 20813677},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20813591) 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([20813591]) 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.3105132579803467 time spend to save output : 8.7738037109375e-05 total time spend for step 3 : 0.31060099601745605 step4:send_mail_cod Tue Feb 25 18:54:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} input_args_next_step : {1339578237: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339578237 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339578234 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339578230 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339578226 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339578224 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339578221 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339578196 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339578193 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339578188 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339578181 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339578176 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339577952 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339577949 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339577945 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339577942 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339577917 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339577913 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339577909 depend.output_id : 0 input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ()} output_args : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',)} args : 1339577905 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 : {20813591: [{'Carton_brun': 20813666, 'flou': 20813667, 'Carton_gris': 20813668, 'environnement': 20813669, 'plastique': 20813670, 'kraft': 20813671, 'mal_croppe': 20813672, 'cartonnette': 20813673, 'autre_refus': 20813674, 'metal': 20813675, 'Teint_Dans_La_Masse': 20813676, 'papier': 20813677}]} input_args_next_step : {1339578237: ('0.10531627256561588',), 1339578234: ('0.10531627256561588',), 1339578230: ('0.10531627256561588',), 1339578226: ('0.10531627256561588',), 1339578224: ('0.10531627256561588',), 1339578221: ('0.10531627256561588',), 1339578196: ('0.10531627256561588',), 1339578193: ('0.10531627256561588',), 1339578188: ('0.10531627256561588',), 1339578181: ('0.10531627256561588',), 1339578176: ('0.10531627256561588',), 1339577952: ('0.10531627256561588',), 1339577949: ('0.10531627256561588',), 1339577945: ('0.10531627256561588',), 1339577942: ('0.10531627256561588',), 1339577917: ('0.10531627256561588',), 1339577913: ('0.10531627256561588',), 1339577909: ('0.10531627256561588',), 1339577905: ('0.10531627256561588',), 20813591: ()} output_args : {20813591: [{'Carton_brun': 20813666, 'flou': 20813667, 'Carton_gris': 20813668, 'environnement': 20813669, 'plastique': 20813670, 'kraft': 20813671, 'mal_croppe': 20813672, 'cartonnette': 20813673, 'autre_refus': 20813674, 'metal': 20813675, 'Teint_Dans_La_Masse': 20813676, 'papier': 20813677}]} args : 20813591 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 :20, first value : ('0.10531627256561588',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20813591) 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 (1339578237,1339578234,1339578230,1339578226,1339578224,1339578221,1339578196,1339578193,1339578188,1339578181,1339578176,1339577952,1339577949,1339577945,1339577942,1339577917,1339577913,1339577909,1339577905) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339577905 begin to download photo : 1339577942 begin to download photo : 1339578176 begin to download photo : 1339578196 begin to download photo : 1339578230 download finish for photo 1339578196 begin to download photo : 1339578221 download finish for photo 1339577942 begin to download photo : 1339577945 download finish for photo 1339578230 begin to download photo : 1339578234 download finish for photo 1339577905 begin to download photo : 1339577909 download finish for photo 1339578176 begin to download photo : 1339578181 download finish for photo 1339577945 begin to download photo : 1339577949 download finish for photo 1339577909 begin to download photo : 1339577913 download finish for photo 1339578181 begin to download photo : 1339578188 download finish for photo 1339578221 begin to download photo : 1339578224 download finish for photo 1339578234 begin to download photo : 1339578237 download finish for photo 1339577949 begin to download photo : 1339577952 download finish for photo 1339577913 begin to download photo : 1339577917 download finish for photo 1339578224 begin to download photo : 1339578226 download finish for photo 1339578188 begin to download photo : 1339578193 download finish for photo 1339578237 download finish for photo 1339577917 download finish for photo 1339578193 download finish for photo 1339578226 download finish for photo 1339577952 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette208136671740506099/ length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P20813591_25-02-2025_18_54_59.pdf 20813667 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=20813667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208136671740506099 20813670 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=20813670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339577855: '1740505695_1739091_1339577740_3d5812421c51ff2e4c07acbb06e955be_rle_crop_3686627646_0.png', 1339577856: '1740505695_1739091_1339577734_5d7b35958640d53b01f357d8506f8c66_rle_crop_3686627666_0.png', 1339577857: '1740505695_1739091_1339577731_1b30feddf6afbc268fb9d54f63be8126_rle_crop_3686627678_0.png', 1339577936: '1740505834_1741027_1339577791_37fde7871c81359227d64aa3901fdf4a_rle_crop_3686628668_0.png', 1339577937: '1740505834_1741027_1339577772_728a43d3b64861158d93f4fdc994f5fd_rle_crop_3686628765_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/db7e1a850b7224efd918fc5e1dc4b774_38047542.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/fb5cefeec060f8666acb179684ac472c_79819714.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/fef5b959e7412484f1092daa8559a76f_78016437.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/65e694398b04a6f9f585d74d987cef9e_4408176.png change filename to text .imagette208136701740506099/ imagette208136701740506099/1740505834_1741027_1339577791_37fde7871c81359227d64aa3901fdf4a_rle_crop_3686628668_0.png.png imagette208136701740506099/1740505695_1739091_1339577734_5d7b35958640d53b01f357d8506f8c66_rle_crop_3686627666_0.png.png imagette208136701740506099/1740505695_1739091_1339577740_3d5812421c51ff2e4c07acbb06e955be_rle_crop_3686627646_0.png.png imagette208136701740506099/1740505695_1739091_1339577731_1b30feddf6afbc268fb9d54f63be8126_rle_crop_3686627678_0.png.png imagette208136701740506099/1740505834_1741027_1339577772_728a43d3b64861158d93f4fdc994f5fd_rle_crop_3686628765_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/d0cb51cc21949c024950847e242c3653_75435174.png imagette208136701740506099 20813671 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=20813671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339577938: '1740505834_1741027_1339577835_3b1afc624e9cdafb0d29c3d1fc80fdda_rle_crop_3686628542_0.png', 1339578216: '1740505952_1742246_1339577880_af20d370797b7f67d0463d2f4d8d2f1a_rle_crop_3686629250_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/4409a2d803edf846d32361697f5d8065_83244890.png change filename to text .imagette208136711740506100/ imagette208136711740506100/1740505952_1742246_1339577880_af20d370797b7f67d0463d2f4d8d2f1a_rle_crop_3686629250_0.png.png imagette208136711740506100/1740505834_1741027_1339577835_3b1afc624e9cdafb0d29c3d1fc80fdda_rle_crop_3686628542_0.png.png imagette208136721740506100/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/fe5db0cfe04a6b0823888a0d3040c9dd_35790499.png imagette208136711740506100 20813672 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=20813672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208136721740506100 20813673 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=20813673 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339577850: '1740505695_1739091_1339577740_3d5812421c51ff2e4c07acbb06e955be_rle_crop_3686627644_0.png', 1339577851: '1740505695_1739091_1339577740_3d5812421c51ff2e4c07acbb06e955be_rle_crop_3686627640_0.png', 1339577852: '1740505695_1739091_1339577731_1b30feddf6afbc268fb9d54f63be8126_rle_crop_3686627683_0.png', 1339577853: '1740505695_1739091_1339577731_1b30feddf6afbc268fb9d54f63be8126_rle_crop_3686627675_0.png', 1339578183: '1740505931_1742028_1339577888_8d01adb46383ba1ce4c6e1d0f840e0b2_rle_crop_3686628938_0.png', 1339578213: '1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629210_0.png', 1339578480: '1740506052_1743324_1339577949_32dbbf1b82178048ed4bc61288d5bbc8_rle_crop_3686629436_0.png', 1339578481: '1740506052_1743324_1339577945_5abea74109cbe3c4a14f2673fc4e58ba_rle_crop_3686629455_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/5613b054887bc1d8586303dcbeb3a315_14742329.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/0a7f4865bfee44d49045380a806ee603_65626568.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9d4b56850ca291b2203a02b6f226b18d_64008753.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f710cda4c48fb4e5a383b25a80775773_80930942.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/329a17022642147d09b762d8dedfa10b_71274278.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6b4d9fb05e2fac38d6e82687cc62c30a_37290113.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e7bf8618847a04c87063bf661bca077e_33684023.png change filename to text .imagette208136731740506100/ imagette208136731740506100/1740505695_1739091_1339577731_1b30feddf6afbc268fb9d54f63be8126_rle_crop_3686627683_0.png.png imagette208136731740506100/1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629210_0.png.png imagette208136731740506100/1740505695_1739091_1339577731_1b30feddf6afbc268fb9d54f63be8126_rle_crop_3686627675_0.png.png imagette208136731740506100/1740505695_1739091_1339577740_3d5812421c51ff2e4c07acbb06e955be_rle_crop_3686627644_0.png.png imagette208136731740506100/1740506052_1743324_1339577945_5abea74109cbe3c4a14f2673fc4e58ba_rle_crop_3686629455_0.png.png imagette208136731740506100/1740505695_1739091_1339577740_3d5812421c51ff2e4c07acbb06e955be_rle_crop_3686627640_0.png.png imagette208136731740506100/1740506052_1743324_1339577949_32dbbf1b82178048ed4bc61288d5bbc8_rle_crop_3686629436_0.png.png imagette208136731740506100/1740505931_1742028_1339577888_8d01adb46383ba1ce4c6e1d0f840e0b2_rle_crop_3686628938_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b0c445776ab4d9eb4dcdd35f496f56a0_53574113.png imagette208136731740506100 20813674 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=20813674 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339577929: '1740505834_1741027_1339577791_37fde7871c81359227d64aa3901fdf4a_rle_crop_3686628662_0.png', 1339578182: '1740505931_1742028_1339577888_8d01adb46383ba1ce4c6e1d0f840e0b2_rle_crop_3686628941_0.png', 1339578210: '1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629211_0.png', 1339578211: '1740505952_1742246_1339577880_af20d370797b7f67d0463d2f4d8d2f1a_rle_crop_3686629246_0.png', 1339578212: '1740505952_1742246_1339577877_2c40ecb644327c628acb3c11a6f73b6f_rle_crop_3686629258_0.png', 1339578476: '1740506052_1743324_1339577942_634a7c7faf36b490a844205b89e288ef_rle_crop_3686629465_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/3f97d2b45355fc48ceae2d9551a6e862_47783917.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/239b177542f3e85a465b30153e4cbdd3_86129808.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/89088b64fbea1e025035935761c701ed_94005287.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8421a4101b2b8593ee6478878f38f882_99922977.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/bca7eaa470951010b94b5a50a7e52e42_77634833.png change filename to text .imagette208136741740506100/ imagette208136741740506100/1740505834_1741027_1339577791_37fde7871c81359227d64aa3901fdf4a_rle_crop_3686628662_0.png.png imagette208136741740506100/1740505952_1742246_1339577880_af20d370797b7f67d0463d2f4d8d2f1a_rle_crop_3686629246_0.png.png imagette208136741740506100/1740505952_1742246_1339577877_2c40ecb644327c628acb3c11a6f73b6f_rle_crop_3686629258_0.png.png imagette208136741740506100/1740506052_1743324_1339577942_634a7c7faf36b490a844205b89e288ef_rle_crop_3686629465_0.png.png imagette208136741740506100/1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629211_0.png.png imagette208136741740506100/1740505931_1742028_1339577888_8d01adb46383ba1ce4c6e1d0f840e0b2_rle_crop_3686628941_0.png.png imagette208136751740506100/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/dbb963c85ec9aa036558ee37fcf5c053_46259432.png imagette208136741740506100 20813675 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=20813675 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208136751740506100 20813666 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=20813666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339577934: '1740505834_1741027_1339577791_37fde7871c81359227d64aa3901fdf4a_rle_crop_3686628670_0.png', 1339578214: '1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629220_0.png', 1339578215: '1740505952_1742246_1339577884_9afa738a2157803cd39c974f94a23b16_rle_crop_3686629236_0.png', 1339578482: '1740506052_1743324_1339577949_32dbbf1b82178048ed4bc61288d5bbc8_rle_crop_3686629444_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/2e2162e99a18acb3c2b0a884e0a18cd4_88201383.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c8960f8e0f2413cc4decdaf177bea33f_28257874.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/f52224901fb40d04087288d58b3ff7b6_67502050.png change filename to text .imagette208136661740506100/ imagette208136661740506100/1740505834_1741027_1339577791_37fde7871c81359227d64aa3901fdf4a_rle_crop_3686628670_0.png.png imagette208136661740506100/1740505952_1742246_1339577884_9afa738a2157803cd39c974f94a23b16_rle_crop_3686629236_0.png.png imagette208136661740506100/1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629220_0.png.png imagette208136661740506100/1740506052_1743324_1339577949_32dbbf1b82178048ed4bc61288d5bbc8_rle_crop_3686629444_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e35b31bb3f20e346a15f68bac7925b7d_74197978.png imagette208136661740506100 20813668 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=20813668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339577848: '1740505695_1739091_1339577727_ce6dde37dc04c8d94f9d71b9446cfd57_rle_crop_3686627696_0.png', 1339577932: '1740505834_1741027_1339577798_bdc5d2e909b9dd4108f525c583d8dabc_rle_crop_3686628559_0.png', 1339577933: '1740505834_1741027_1339577772_728a43d3b64861158d93f4fdc994f5fd_rle_crop_3686628760_0.png', 1339578477: '1740506052_1743324_1339577942_634a7c7faf36b490a844205b89e288ef_rle_crop_3686629466_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/bac6652729f250a68594d5e6336617ce_15197197.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/04492eef5d57524b93742b40a98d9699_80085339.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ef21eed5024ac17fd207298b004cc926_35076600.png change filename to text .imagette208136681740506101/ imagette208136681740506101/1740505695_1739091_1339577727_ce6dde37dc04c8d94f9d71b9446cfd57_rle_crop_3686627696_0.png.png imagette208136681740506101/1740505834_1741027_1339577798_bdc5d2e909b9dd4108f525c583d8dabc_rle_crop_3686628559_0.png.png imagette208136681740506101/1740505834_1741027_1339577772_728a43d3b64861158d93f4fdc994f5fd_rle_crop_3686628760_0.png.png imagette208136681740506101/1740506052_1743324_1339577942_634a7c7faf36b490a844205b89e288ef_rle_crop_3686629466_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6e83723e13917bbe8037f6f0c7d68160_19086413.png imagette208136681740506101 20813676 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=20813676 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339577847: '1740505695_1739091_1339577740_3d5812421c51ff2e4c07acbb06e955be_rle_crop_3686627655_0.png', 1339577927: '1740505834_1741027_1339577835_3b1afc624e9cdafb0d29c3d1fc80fdda_rle_crop_3686628550_0.png', 1339577928: '1740505834_1741027_1339577772_728a43d3b64861158d93f4fdc994f5fd_rle_crop_3686628769_0.png', 1339578205: '1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629213_0.png', 1339578206: '1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629216_0.png', 1339578207: '1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629222_0.png', 1339578208: '1740505952_1742246_1339577880_af20d370797b7f67d0463d2f4d8d2f1a_rle_crop_3686629248_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/80e0447caa5213106ef8091defd4e10f_71499560.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6bef0540c9f77ad66b79a2bda2564901_58507638.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1c83ce87047a0cb6abc8bc53e55c1e2c_49696927.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ae5b9f6fd0daaba87381f112797b376b_83127091.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1e224703e9d780f9777af3efeadd5aa0_44011936.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6d76102e249cc166696b0413be565442_33818512.png change filename to text .imagette208136761740506101/ imagette208136761740506101/1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629213_0.png.png imagette208136761740506101/1740505952_1742246_1339577880_af20d370797b7f67d0463d2f4d8d2f1a_rle_crop_3686629248_0.png.png imagette208136761740506101/1740505695_1739091_1339577740_3d5812421c51ff2e4c07acbb06e955be_rle_crop_3686627655_0.png.png imagette208136761740506101/1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629216_0.png.png imagette208136761740506101/1740505834_1741027_1339577772_728a43d3b64861158d93f4fdc994f5fd_rle_crop_3686628769_0.png.png imagette208136761740506101/1740505952_1742246_1339577917_e92c4a41dd4a7da020a8c65363d9ef88_rle_crop_3686629222_0.png.png imagette208136761740506101/1740505834_1741027_1339577835_3b1afc624e9cdafb0d29c3d1fc80fdda_rle_crop_3686628550_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8f6989ef4262007a7bd500dd711fa430_80594903.png imagette208136761740506101 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20813591 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20813678,20813679,20813680,20813681,20813682,20813683,20813684,20813685,20813686,20813687,20813688,20813689?tags=Carton_brun,flou,Carton_gris,environnement,plastique,kraft,mal_croppe,cartonnette,autre_refus,metal,Teint_Dans_La_Masse,papier your option no_mail is active, we will not send the real mail to your client args[1339578237] : ('0.10531627256561588',) no score found for photo 1339578237 We are sending mail with results at report@fotonower.com args[1339578234] : ('0.10531627256561588',) no score found for photo 1339578234 We are sending mail with results at report@fotonower.com args[1339578230] : ('0.10531627256561588',) no score found for photo 1339578230 We are sending mail with results at report@fotonower.com args[1339578226] : ('0.10531627256561588',) no score found for photo 1339578226 We are sending mail with results at report@fotonower.com args[1339578224] : ('0.10531627256561588',) no score found for photo 1339578224 We are sending mail with results at report@fotonower.com args[1339578221] : ('0.10531627256561588',) no score found for photo 1339578221 We are sending mail with results at report@fotonower.com args[1339578196] : ('0.10531627256561588',) no score found for photo 1339578196 We are sending mail with results at report@fotonower.com args[1339578193] : ('0.10531627256561588',) no score found for photo 1339578193 We are sending mail with results at report@fotonower.com args[1339578188] : ('0.10531627256561588',) no score found for photo 1339578188 We are sending mail with results at report@fotonower.com args[1339578181] : ('0.10531627256561588',) no score found for photo 1339578181 We are sending mail with results at report@fotonower.com args[1339578176] : ('0.10531627256561588',) no score found for photo 1339578176 We are sending mail with results at report@fotonower.com args[1339577952] : ('0.10531627256561588',) no score found for photo 1339577952 We are sending mail with results at report@fotonower.com args[1339577949] : ('0.10531627256561588',) no score found for photo 1339577949 We are sending mail with results at report@fotonower.com args[1339577945] : ('0.10531627256561588',) no score found for photo 1339577945 We are sending mail with results at report@fotonower.com args[1339577942] : ('0.10531627256561588',) no score found for photo 1339577942 We are sending mail with results at report@fotonower.com args[1339577917] : ('0.10531627256561588',) no score found for photo 1339577917 We are sending mail with results at report@fotonower.com args[1339577913] : ('0.10531627256561588',) no score found for photo 1339577913 We are sending mail with results at report@fotonower.com args[1339577909] : ('0.10531627256561588',) no score found for photo 1339577909 We are sending mail with results at report@fotonower.com args[1339577905] : ('0.10531627256561588',) no score found for photo 1339577905 We are sending mail with results at report@fotonower.com refus_total : 0.10531627256561588 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=20813591 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_P20813591_25-02-2025_18_54_59.pdf results_Auto_P20813591_25-02-2025_18_54_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813591_25-02-2025_18_54_59.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','20813591','results_Auto_P20813591_25-02-2025_18_54_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813591_25-02-2025_18_54_59.pdf','pdf','','0.27','0.10531627256561588') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20813591]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905] map_info['map_portfolio_photo'] : {20813591: [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905, 1339577888, 1339577884, 1339577880, 1339577877, 1339577875, 1339577835, 1339577832, 1339577828, 1339577802, 1339577798, 1339577791, 1339577772, 1339577740, 1339577734, 1339577731, 1339577727]} final : False mtd_id 4302 list_pids : [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905] 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, '2613580') ('4302', '20813591', '1339578237', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578234', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578230', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578226', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578224', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578221', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578196', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578193', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578188', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578181', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578176', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577952', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577949', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577945', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577942', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577917', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577913', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577909', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577905', None, None, None, None, None, '2613580') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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', '20813591', '1339578237', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578234', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578230', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578226', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578224', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578221', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578196', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578193', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578188', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578181', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578176', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577952', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577949', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577945', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577942', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577917', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577913', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577909', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577905', None, None, None, None, None, '2613580')] time used for this insertion : 0.014189004898071289 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.022290229797363 time spend to save output : 0.014524698257446289 total time spend for step 4 : 4.03681492805481 step5:split_time_score Tue Feb 25 18:55:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20813591'] 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 : [('20813591',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20813591) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339578230: {'path': 'temp/1740506099_2252525_1339578230_10be590a11a7e17e49f1325b08ea2253.jpg', 'extension': 'jpg'}, 1339578234: {'path': 'temp/1740506099_2252525_1339578234_61cf3f9b6e3520e0951050d373073eea.jpg', 'extension': 'jpg'}, 1339578237: {'path': 'temp/1740506099_2252525_1339578237_c2680ee26ed806968dc6f2f284ad5443.jpg', 'extension': 'jpg'}, 1339577905: {'path': 'temp/1740506099_2252525_1339577905_84d030b56267b04f049c829f11ec2761.jpg', 'extension': 'jpg'}, 1339577909: {'path': 'temp/1740506099_2252525_1339577909_28e510de3abb0df4ea0172f6021f8242.jpg', 'extension': 'jpg'}, 1339577913: {'path': 'temp/1740506099_2252525_1339577913_74294db50791889bff7d4fe6c0c4963c.jpg', 'extension': 'jpg'}, 1339577917: {'path': 'temp/1740506099_2252525_1339577917_e92c4a41dd4a7da020a8c65363d9ef88.jpg', 'extension': 'jpg'}, 1339578176: {'path': 'temp/1740506099_2252525_1339578176_f11065772af3544055bdc0e70dc27be4.jpg', 'extension': 'jpg'}, 1339578181: {'path': 'temp/1740506099_2252525_1339578181_6b9428b96ce078898adf13fb7ae4b4c2.jpg', 'extension': 'jpg'}, 1339578188: {'path': 'temp/1740506099_2252525_1339578188_98b30b0402c57f3c70090a16c9bde71c.jpg', 'extension': 'jpg'}, 1339578193: {'path': 'temp/1740506099_2252525_1339578193_75cfe2d1505cc277fedd30f0fc78d1be.jpg', 'extension': 'jpg'}, 1339578196: {'path': 'temp/1740506099_2252525_1339578196_b0d9c45b5d0f24379c53b6a8fda25bd8.jpg', 'extension': 'jpg'}, 1339578221: {'path': 'temp/1740506099_2252525_1339578221_dfe790b4dd6a5f1e940710fba2349584.jpg', 'extension': 'jpg'}, 1339578224: {'path': 'temp/1740506099_2252525_1339578224_732571365fe65abdce935fb9269223ad.jpg', 'extension': 'jpg'}, 1339578226: {'path': 'temp/1740506099_2252525_1339578226_fb8ca916b5d88a6f19df829b6ffa0cfb.jpg', 'extension': 'jpg'}, 1339577942: {'path': 'temp/1740506099_2252525_1339577942_634a7c7faf36b490a844205b89e288ef.jpg', 'extension': 'jpg'}, 1339577945: {'path': 'temp/1740506099_2252525_1339577945_5abea74109cbe3c4a14f2673fc4e58ba.jpg', 'extension': 'jpg'}, 1339577949: {'path': 'temp/1740506099_2252525_1339577949_32dbbf1b82178048ed4bc61288d5bbc8.jpg', 'extension': 'jpg'}, 1339577952: {'path': 'temp/1740506099_2252525_1339577952_d57b2c28a7ec7b22cd9137d9407f4f18.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 = 20813591; (('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 = 20813591 group by h (('18', 35),) 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=20813591 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 (20813591) 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 (20813591) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25022025 20813591 Nombre de photos uploadées : 35 / 23040 (0%) 25022025 20813591 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 25022025 20813591 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1339577740, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/3d5812421c51ff2e4c07acbb06e955be.jpg', 'username': None, 'uploaded_at': 1740505594, 'text': 'image_25022025_18_45_04_10151.jpg'}, {'photo_id': 1339577734, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/5d7b35958640d53b01f357d8506f8c66.jpg', 'username': None, 'uploaded_at': 1740505594, 'text': 'image_25022025_18_45_14_10135.jpg'}, {'photo_id': 1339577731, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1b30feddf6afbc268fb9d54f63be8126.jpg', 'username': None, 'uploaded_at': 1740505594, 'text': 'image_25022025_18_45_33_10140.jpg'}, {'photo_id': 1339577727, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ce6dde37dc04c8d94f9d71b9446cfd57.jpg', 'username': None, 'uploaded_at': 1740505594, 'text': 'image_25022025_18_45_44_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001621246337890625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20813591, '2025-02-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1621897,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02555084228515625 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= 1621897 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1621897, 'dashboard_run_id': 1631389, 'mtr_portfolio_id': 20812158, 'dashboard_result_id': 9056573, '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_P20812158_25-02-2025_18_18_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812171, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1631389, 'mtr_portfolio_id': 20812687, 'dashboard_result_id': 9056574, '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_P20812687_25-02-2025_18_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812699, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1631389, 'mtr_portfolio_id': 20813086, 'dashboard_result_id': 9056575, '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_P20813086_25-02-2025_18_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813124, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1631389, 'mtr_portfolio_id': 20813591, 'dashboard_result_id': 9056576, '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_P20813591_25-02-2025_18_51_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813677, 'pht': 3726}}"}] 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 = 20812158 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': 2613482, 'mtr_portfolio_id': 20812158, 'created_at': datetime.datetime(2025, 2, 25, 18, 18, 32), 'result': '0.09487911927187465', 'result_long': None, 'result_double': None}] Qualite : 0.09487911927187465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20812158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20812158_25-02-2025_18_18_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20812158 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_P20812158_25-02-2025_18_18_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812171, 'pht': 3726}}" where mtr_portfolio_id = 20812158 and dashboard_run_id = 1631389 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`=20812158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9056573, 0.09487911927187465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20812158_25-02-2025_18_18_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812164, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812165, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812166, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812171, '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 = 20812687 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': 2613513, 'mtr_portfolio_id': 20812687, 'created_at': datetime.datetime(2025, 2, 25, 18, 33, 1), 'result': '0.08987312168327502', 'result_long': None, 'result_double': None}] Qualite : 0.08987312168327502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20812687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20812687_25-02-2025_18_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20812687 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_P20812687_25-02-2025_18_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812699, 'pht': 3726}}" where mtr_portfolio_id = 20812687 and dashboard_run_id = 1631389 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`=20812687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9056574, 0.08987312168327502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20812687_25-02-2025_18_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20812688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20812689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20812690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20812691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20812692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20812693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20812694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20812695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20812696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20812697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20812698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20812699, '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 = 20813086 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': 2613552, 'mtr_portfolio_id': 20813086, 'created_at': datetime.datetime(2025, 2, 25, 18, 49, 28), 'result': '0.08600194238924722', 'result_long': None, 'result_double': None}] Qualite : 0.08600194238924722 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20813086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813086_25-02-2025_18_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20813086 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_P20813086_25-02-2025_18_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813124, 'pht': 3726}}" where mtr_portfolio_id = 20813086 and dashboard_run_id = 1631389 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`=20813086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9056575, 0.08600194238924722, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813086_25-02-2025_18_49_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813113, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813124, '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 = 20813591 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': 2613580, 'mtr_portfolio_id': 20813591, 'created_at': datetime.datetime(2025, 2, 25, 18, 54, 58), 'result': '0.10531627256561588', 'result_long': None, 'result_double': None}] Qualite : 0.10531627256561588 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20813591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813591_25-02-2025_18_54_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20813591 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_P20813591_25-02-2025_18_54_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813677, 'pht': 3726}}" where mtr_portfolio_id = 20813591 and dashboard_run_id = 1631389 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`=20813591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9056576, 0.10531627256561588, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20813591_25-02-2025_18_54_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20813666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20813667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20813668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20813669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20813670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20813671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20813672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20813673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20813674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20813675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20813676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20813677, '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 (20812158,20812687,20813086,20813591) result : ((1339573356,), (1339573359,), (1339573401,), (1339573404,), (1339573407,), (1339573410,), (1339573413,), (1339573415,), (1339574201,), (1339574229,), (1339574233,), (1339574237,), (1339574508,), (1339574520,), (1339574637,), (1339574641,), (1339574644,), (1339574648,), (1339574678,), (1339574680,), (1339574683,), (1339574686,), (1339574689,), (1339574692,), (1339574715,), (1339574718,), (1339574721,), (1339574745,), (1339574746,), (1339574749,), (1339574753,), (1339574756,), (1339574759,), (1339574774,), (1339574776,), (1339574778,), (1339574781,), (1339574785,), (1339574812,), (1339574816,), (1339574819,), (1339574823,), (1339574838,), (1339574841,), (1339574844,), (1339574853,), (1339574889,), (1339574892,), (1339574895,), (1339574899,), (1339574917,), (1339574922,), (1339574929,), (1339574936,), (1339574939,), (1339574983,), (1339574971,), (1339574975,), (1339574979,), (1339575271,), (1339575317,), (1339575321,), (1339575347,), (1339575351,), (1339575373,), (1339575377,), (1339575380,), (1339575385,), (1339575388,), (1339575409,), (1339575413,), (1339575417,), (1339575421,), (1339575440,), (1339575444,), (1339575452,), (1339575463,), (1339575472,), (1339575493,), (1339575521,), (1339575529,), (1339575531,), (1339575551,), (1339575554,), (1339575557,), (1339575564,), (1339575587,), (1339575592,), (1339575602,), (1339575609,), (1339575635,), (1339575638,), (1339575640,), (1339575644,), (1339575650,), (1339575673,), (1339575682,), (1339575686,), (1339575705,), (1339575708,), (1339575745,), (1339575748,), (1339575752,), (1339575756,), (1339575758,), (1339575763,), (1339575789,), (1339575793,), (1339575858,), (1339575862,), (1339575866,), (1339575869,), (1339575871,), (1339575852,), (1339575856,), (1339575880,), (1339575884,), (1339575890,), (1339575893,), (1339575910,), (1339575914,), (1339575919,), (1339575927,), (1339575931,), (1339575960,), (1339575964,), (1339576733,), (1339576736,), (1339576739,), (1339576743,), (1339576747,), (1339576979,), (1339576991,), (1339576995,), (1339576999,), (1339577041,), (1339577044,), (1339577183,), (1339577187,), (1339577190,), (1339577228,), (1339577233,), (1339577236,), (1339577239,), (1339577242,), (1339577244,), (1339577260,), (1339577263,), (1339577265,), (1339577286,), (1339577291,), (1339577400,), (1339577404,), (1339577478,), (1339577481,), (1339577483,), (1339577487,), (1339577491,), (1339577494,), (1339577513,), (1339577517,), (1339577521,), (1339577526,), (1339577529,), (1339577532,), (1339577544,), (1339577546,), (1339577549,), (1339577552,), (1339577741,), (1339577727,), (1339577731,), (1339577734,), (1339577740,), (1339577772,), (1339577791,), (1339577798,), (1339577802,), (1339577828,), (1339577832,), (1339577835,), (1339577875,), (1339577877,), (1339577880,), (1339577884,), (1339577888,), (1339577905,), (1339577909,), (1339577913,), (1339577917,), (1339577942,), (1339577945,), (1339577949,), (1339577952,), (1339578176,), (1339578181,), (1339578188,), (1339578193,), (1339578196,), (1339578221,), (1339578224,), (1339578226,), (1339578230,), (1339578234,), (1339578237,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25022025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20813591]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905] map_info['map_portfolio_photo'] : {20813591: [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905, 1339577888, 1339577884, 1339577880, 1339577877, 1339577875, 1339577835, 1339577832, 1339577828, 1339577802, 1339577798, 1339577791, 1339577772, 1339577740, 1339577734, 1339577731, 1339577727]} final : True mtd_id 4302 list_pids : [1339578237, 1339578234, 1339578230, 1339578226, 1339578224, 1339578221, 1339578196, 1339578193, 1339578188, 1339578181, 1339578176, 1339577952, 1339577949, 1339577945, 1339577942, 1339577917, 1339577913, 1339577909, 1339577905] Looping around the photos to save general results len do output : 1 /20813591Didn'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, '2613580') ('4302', '20813591', '1339578237', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578234', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578230', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578226', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578224', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578221', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578196', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578193', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578188', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578181', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339578176', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577952', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577949', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577945', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577942', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577917', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577913', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577909', None, None, None, None, None, '2613580') ('4302', None, None, None, None, None, None, None, '2613580') ('4302', '20813591', '1339577905', None, None, None, None, None, '2613580') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '20813591', 'None', None, None, None, None, '2613580'), ('4302', '20813591', '1339578237', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578234', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578230', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578226', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578224', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578221', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578196', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578193', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578188', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578181', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339578176', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577952', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577949', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577945', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577942', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577917', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577913', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577909', None, None, None, None, None, '2613580'), ('4302', '20813591', '1339577905', None, None, None, None, None, '2613580')] time used for this insertion : 0.015133142471313477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3327796459197998 time spend to save output : 0.015412330627441406 total time spend for step 5 : 0.3481919765472412 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 (2613580) 2.46user 2.62system 0:07.91elapsed 64%CPU (0avgtext+0avgdata 163508maxresident)k 280inputs+16736outputs (15major+75324minor)pagefaults 0swaps