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 : 1076579 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 (2734708) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2734708) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176494 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2734708'] with mtr_portfolio_ids : ['22176494'] and first list_photo_ids : [] new path : /proc/1076579/ Name: python3 Umask: 0002 State: R (running) Tgid: 1076579 Ngid: 0 Pid: 1076579 PPid: 1076578 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1076579 NSpid: 1076579 NSpgid: 1074591 NSsid: 1074591 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98808 kB VmRSS: 98808 kB RssAnon: 59804 kB RssFile: 39004 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 131 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1076579', 'Ngid': '0', 'Pid': '1076579', 'PPid': '1076578', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1076579', 'NSpid': '1076579', 'NSpgid': '1074591', 'NSsid': '1074591', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98808 kB', 'VmRSS': '98808 kB', 'RssAnon': '59804 kB', 'RssFile': '39004 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '131'} ('datou_batch_current', '1076579', '1106828', '0', '1106828', '865576', '98808', b'', 'marlene', '2734708') 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 (22176494) 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 (2734708 ) ) 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 (22176494) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350964281, 'portfolio_id': 22176494}, {'photo_id': 1350964270, 'portfolio_id': 22176494}, {'photo_id': 1350964208, 'portfolio_id': 22176494}, {'photo_id': 1350964205, 'portfolio_id': 22176494}, {'photo_id': 1350964201, 'portfolio_id': 22176494}, {'photo_id': 1350964182, 'portfolio_id': 22176494}, {'photo_id': 1350964148, 'portfolio_id': 22176494}, {'photo_id': 1350964118, 'portfolio_id': 22176494}, {'photo_id': 1350964047, 'portfolio_id': 22176494}, {'photo_id': 1350964005, 'portfolio_id': 22176494}, {'photo_id': 1350963955, 'portfolio_id': 22176494}, {'photo_id': 1350963922, 'portfolio_id': 22176494}, {'photo_id': 1350963912, 'portfolio_id': 22176494}, {'photo_id': 1350963904, 'portfolio_id': 22176494}, {'photo_id': 1350963856, 'portfolio_id': 22176494}, {'photo_id': 1350963854, 'portfolio_id': 22176494}, {'photo_id': 1350963851, 'portfolio_id': 22176494}, {'photo_id': 1350963740, 'portfolio_id': 22176494}, {'photo_id': 1350963731, 'portfolio_id': 22176494}, {'photo_id': 1350963712, 'portfolio_id': 22176494}, {'photo_id': 1350963661, 'portfolio_id': 22176494}, {'photo_id': 1350963656, 'portfolio_id': 22176494}, {'photo_id': 1350963652, 'portfolio_id': 22176494}, {'photo_id': 1350963619, 'portfolio_id': 22176494}, {'photo_id': 1350963617, 'portfolio_id': 22176494}, {'photo_id': 1350963615, 'portfolio_id': 22176494}, {'photo_id': 1350963610, 'portfolio_id': 22176494}, {'photo_id': 1350963531, 'portfolio_id': 22176494}, {'photo_id': 1350963528, 'portfolio_id': 22176494}, {'photo_id': 1350963517, 'portfolio_id': 22176494}, {'photo_id': 1350963503, 'portfolio_id': 22176494}, {'photo_id': 1350963497, 'portfolio_id': 22176494}] map_portfolio_id_photo_id: {22176494: [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904, 1350963856, 1350963854, 1350963851, 1350963740, 1350963731, 1350963712, 1350963661, 1350963656, 1350963652, 1350963619, 1350963617, 1350963615, 1350963610, 1350963531, 1350963528, 1350963517, 1350963503, 1350963497]} ##### 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.019484758377075195 #### 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 Fri Apr 18 07:52:29 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 (22176494) 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 : 22176494 get user id for portfolio 22176494 get sub ptf for main ptf 22176494, type 3726 and hashtags ['flou', 'kraft', 'Carton_gris', 'mal_croppe', 'cartonnette', 'Carton_brun', 'plastique', 'environnement', 'metal', 'papier', 'Teint_Dans_La_Masse', 'autre_refus'] 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`=22176494 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','mal_croppe','cartonnette','Carton_brun','plastique','environnement','metal','papier','Teint_Dans_La_Masse','autre_refus')) 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`=22176494 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','mal_croppe','cartonnette','Carton_brun','plastique','environnement','metal','papier','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22176494, 'sub_port_id': 22176540, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654057, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}, 'Carton_gris': {'main_port_id': 22176494, 'sub_port_id': 22176541, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654058, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}, 'cartonnette': {'main_port_id': 22176494, 'sub_port_id': 22176542, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654059, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}, 'flou': {'main_port_id': 22176494, 'sub_port_id': 22176543, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654060, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}, 'mal_croppe': {'main_port_id': 22176494, 'sub_port_id': 22176544, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654061, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}, 'environnement': {'main_port_id': 22176494, 'sub_port_id': 22176545, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654062, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}, 'kraft': {'main_port_id': 22176494, 'sub_port_id': 22176546, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654063, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22176494, 'sub_port_id': 22176547, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654064, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}, 'autre_refus': {'main_port_id': 22176494, 'sub_port_id': 22176548, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654065, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}, 'plastique': {'main_port_id': 22176494, 'sub_port_id': 22176549, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654066, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}, 'papier': {'main_port_id': 22176494, 'sub_port_id': 22176550, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654067, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}, 'metal': {'main_port_id': 22176494, 'sub_port_id': 22176551, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654068, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22176540 , 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=22176494 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 (22176540) result : ((1350963888,), (1350964034,), (1350964035,), (1350964036,), (1350964037,), (1350964039,), (1350964041,), (1350964266,), (1350964273,), (1350964275,), (1350964276,), (1350964277,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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 22176541 , 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=22176494 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 (22176541) result : ((1350963884,), (1350963885,), (1350963886,), (1350963992,), (1350963996,), (1350964000,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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 22176542 , 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=22176494 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 (22176542) result : ((1350964012,), (1350964014,), (1350964271,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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 22176543 , 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=22176494 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 (22176543) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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 22176544 , 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=22176494 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 (22176544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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 22176545 , 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=22176494 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 (22176545) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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 22176546 , 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=22176494 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 (22176546) result : ((1350964282,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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 22176547 , 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=22176494 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 (22176547) result : ((1350963881,), (1350963882,), (1350963961,), (1350963963,), (1350963965,), (1350963967,), (1350964267,), (1350964268,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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 22176548 , 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=22176494 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 (22176548) result : ((1350963974,), (1350964269,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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 22176549 , 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=22176494 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 (22176549) result : ((1350963891,), (1350964048,), (1350964049,), (1350964278,), (1350964279,), (1350964280,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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 22176550 , 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=22176494 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 (22176550) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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 22176551 , 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=22176494 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 (22176551) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22176494) result : ((1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) 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`=22176494 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','mal_croppe','cartonnette','Carton_brun','plastique','environnement','metal','papier','Teint_Dans_La_Masse','autre_refus')) 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`=22176494 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','kraft','Carton_gris','mal_croppe','cartonnette','Carton_brun','plastique','environnement','metal','papier','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22176494, 'sub_port_id': 22176552, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654069, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}, 'Carton_gris': {'main_port_id': 22176494, 'sub_port_id': 22176553, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654070, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}, 'cartonnette': {'main_port_id': 22176494, 'sub_port_id': 22176554, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654071, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}, 'flou': {'main_port_id': 22176494, 'sub_port_id': 22176555, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654072, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}, 'mal_croppe': {'main_port_id': 22176494, 'sub_port_id': 22176556, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654073, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}, 'environnement': {'main_port_id': 22176494, 'sub_port_id': 22176557, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654074, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}, 'kraft': {'main_port_id': 22176494, 'sub_port_id': 22176558, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654075, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 22176494, 'sub_port_id': 22176559, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654076, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}, 'autre_refus': {'main_port_id': 22176494, 'sub_port_id': 22176560, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654077, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}, 'plastique': {'main_port_id': 22176494, 'sub_port_id': 22176561, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654078, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}, 'papier': {'main_port_id': 22176494, 'sub_port_id': 22176562, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654079, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}, 'metal': {'main_port_id': 22176494, 'sub_port_id': 22176563, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14654080, 'last_updated_at': datetime.datetime(2025, 4, 18, 7, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 7, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 7, 49)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22176563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22176551 lien utilise dans velours : https://www.fotonower.com/velours/22176552,22176553,22176554,22176555,22176556,22176557,22176558,22176559,22176560,22176561,22176562,22176563?tags=Carton_brun,Carton_gris,cartonnette,flou,mal_croppe,environnement,kraft,Teint_Dans_La_Masse,autre_refus,plastique,papier,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22176494]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904] map_info['map_portfolio_photo'] : {22176494: [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904, 1350963856, 1350963854, 1350963851, 1350963740, 1350963731, 1350963712, 1350963661, 1350963656, 1350963652, 1350963619, 1350963617, 1350963615, 1350963610, 1350963531, 1350963528, 1350963517, 1350963503, 1350963497]} final : False mtd_id 4302 list_pids : [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904] Looping around the photos to save general results len do output : 1 /22176494. 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, '2734708') ('4302', '22176494', '1350964281', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964270', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964208', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964205', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964201', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964182', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964148', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964118', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964047', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964005', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963955', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963922', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963912', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963904', None, None, None, None, None, '2734708') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22176494', "{'Carton_brun': 22176540, 'Carton_gris': 22176541, 'cartonnette': 22176542, 'flou': 22176543, 'mal_croppe': 22176544, 'environnement': 22176545, 'kraft': 22176546, 'Teint_Dans_La_Masse': 22176547, 'autre_refus': 22176548, 'plastique': 22176549, 'papier': 22176550, 'metal': 22176551}", None, None, None, None, '2734708'), ('4302', '22176494', '1350964281', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964270', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964208', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964205', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964201', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964182', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964148', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964118', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964047', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964005', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963955', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963922', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963912', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963904', None, None, None, None, None, '2734708')] time used for this insertion : 0.06386852264404297 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5775108337402344 time spend to save output : 0.06420087814331055 total time spend for step 1 : 1.641711711883545 step2:final Fri Apr 18 07:52:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22176494) 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 22176494 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350963531,1350963528,1350963517,1350963503,1350963497,1350963619,1350963617,1350963615,1350963610,1350963740,1350963731,1350963712,1350963661,1350963656,1350963652,1350963856,1350963854,1350963851,1350964047,1350964005,1350963955,1350963922,1350963912,1350963904,1350964208,1350964205,1350964201,1350964182,1350964148,1350964118,1350964281,1350964270); 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([22176494]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} new output for save of step final : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904] map_info['map_portfolio_photo'] : {22176494: [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904, 1350963856, 1350963854, 1350963851, 1350963740, 1350963731, 1350963712, 1350963661, 1350963656, 1350963652, 1350963619, 1350963617, 1350963615, 1350963610, 1350963531, 1350963528, 1350963517, 1350963503, 1350963497]} final : False mtd_id 4302 list_pids : [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904] Looping around the photos to save general results len do output : 14 /1350964281.Didn't retrieve data . /1350964270.Didn't retrieve data . /1350964208.Didn't retrieve data . /1350964205.Didn't retrieve data . /1350964201.Didn't retrieve data . /1350964182.Didn't retrieve data . /1350964148.Didn't retrieve data . /1350964118.Didn't retrieve data . /1350964047.Didn't retrieve data . /1350964005.Didn't retrieve data . /1350963955.Didn't retrieve data . /1350963922.Didn't retrieve data . /1350963912.Didn't retrieve data . /1350963904.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, '2734708') ('4302', '22176494', '1350964281', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964270', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964208', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964205', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964201', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964182', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964148', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964118', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964047', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964005', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963955', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963922', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963912', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963904', None, None, None, None, None, '2734708') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '22176494', '1350964281', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350964270', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350964208', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350964205', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350964201', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350964182', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350964148', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350964118', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350964047', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350964005', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350963955', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350963922', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350963912', '0.08833105150859515', None, None, None, None, '2734708'), ('4302', '22176494', '1350963904', '0.08833105150859515', None, None, None, None, '2734708')] time used for this insertion : 0.043776512145996094 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.11443662643432617 time spend to save output : 0.0444636344909668 total time spend for step 2 : 0.15890026092529297 step3:velours_tree Fri Apr 18 07:52:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22176494: [{'Carton_brun': 22176540, 'Carton_gris': 22176541, 'cartonnette': 22176542, 'flou': 22176543, 'mal_croppe': 22176544, 'environnement': 22176545, 'kraft': 22176546, 'Teint_Dans_La_Masse': 22176547, 'autre_refus': 22176548, 'plastique': 22176549, 'papier': 22176550, 'metal': 22176551}]} input_args_next_step : {22176494: ()} output_args : {22176494: [{'Carton_brun': 22176540, 'Carton_gris': 22176541, 'cartonnette': 22176542, 'flou': 22176543, 'mal_croppe': 22176544, 'environnement': 22176545, 'kraft': 22176546, 'Teint_Dans_La_Masse': 22176547, 'autre_refus': 22176548, 'plastique': 22176549, 'papier': 22176550, 'metal': 22176551}]} args : 22176494 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': 22176540, 'Carton_gris': 22176541, 'cartonnette': 22176542, 'flou': 22176543, 'mal_croppe': 22176544, 'environnement': 22176545, 'kraft': 22176546, 'Teint_Dans_La_Masse': 22176547, 'autre_refus': 22176548, 'plastique': 22176549, 'papier': 22176550, 'metal': 22176551},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22176494) 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([22176494]) 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.3205142021179199 time spend to save output : 5.53131103515625e-05 total time spend for step 3 : 0.3205695152282715 step4:send_mail_cod Fri Apr 18 07:52:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} input_args_next_step : {1350964281: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350964281 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350964270 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350964208 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350964205 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350964201 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350964182 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350964148 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350964118 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350964047 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350964005 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350963955 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350963922 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350963912 depend.output_id : 0 input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ()} output_args : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',)} args : 1350963904 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 : {22176494: [{'Carton_brun': 22176540, 'Carton_gris': 22176541, 'cartonnette': 22176542, 'flou': 22176543, 'mal_croppe': 22176544, 'environnement': 22176545, 'kraft': 22176546, 'Teint_Dans_La_Masse': 22176547, 'autre_refus': 22176548, 'plastique': 22176549, 'papier': 22176550, 'metal': 22176551}]} input_args_next_step : {1350964281: ('0.08833105150859515',), 1350964270: ('0.08833105150859515',), 1350964208: ('0.08833105150859515',), 1350964205: ('0.08833105150859515',), 1350964201: ('0.08833105150859515',), 1350964182: ('0.08833105150859515',), 1350964148: ('0.08833105150859515',), 1350964118: ('0.08833105150859515',), 1350964047: ('0.08833105150859515',), 1350964005: ('0.08833105150859515',), 1350963955: ('0.08833105150859515',), 1350963922: ('0.08833105150859515',), 1350963912: ('0.08833105150859515',), 1350963904: ('0.08833105150859515',), 22176494: ()} output_args : {22176494: [{'Carton_brun': 22176540, 'Carton_gris': 22176541, 'cartonnette': 22176542, 'flou': 22176543, 'mal_croppe': 22176544, 'environnement': 22176545, 'kraft': 22176546, 'Teint_Dans_La_Masse': 22176547, 'autre_refus': 22176548, 'plastique': 22176549, 'papier': 22176550, 'metal': 22176551}]} args : 22176494 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 :15, first value : ('0.08833105150859515',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22176494) 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 (1350964281,1350964270,1350964208,1350964205,1350964201,1350964182,1350964148,1350964118,1350964047,1350964005,1350963955,1350963922,1350963912,1350963904) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350963904 begin to download photo : 1350963955 begin to download photo : 1350964118 begin to download photo : 1350964201 begin to download photo : 1350964270 download finish for photo 1350964118 begin to download photo : 1350964148 download finish for photo 1350964201 begin to download photo : 1350964205 download finish for photo 1350963955 begin to download photo : 1350964005 download finish for photo 1350964270 begin to download photo : 1350964281 download finish for photo 1350963904 begin to download photo : 1350963912 download finish for photo 1350964205 begin to download photo : 1350964208 download finish for photo 1350964005 begin to download photo : 1350964047 download finish for photo 1350964281 download finish for photo 1350963912 begin to download photo : 1350963922 download finish for photo 1350964148 begin to download photo : 1350964182 download finish for photo 1350964208 download finish for photo 1350963922 download finish for photo 1350964182 download finish for photo 1350964047 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22176494_18-04-2025_07_52_32.pdf 22176542 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=22176542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350964012: '1744955381_2162631_1350963619_04f3106149e9c53026af75058b98732b_rle_crop_3753375382_0.png', 1350964014: '1744955381_2162631_1350963528_20a44e2d1ea9d3ec2fd2cdd446619f41_rle_crop_3753375434_0.png', 1350964271: '1744955474_3785240_1350963731_37aecfbfbbd3cb5a2377e5934cc7af22_rle_crop_3753376478_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3ffb8ccbb30ef01102c4df9538f1b263_28683524.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/33b1bac56538b32a1decf61e8aff476e_38504775.png change filename to text .imagette221765421744955552/ imagette221765421744955552/1744955381_2162631_1350963619_04f3106149e9c53026af75058b98732b_rle_crop_3753375382_0.png.png imagette221765421744955552/1744955474_3785240_1350963731_37aecfbfbbd3cb5a2377e5934cc7af22_rle_crop_3753376478_0.png.png imagette221765421744955552/1744955381_2162631_1350963528_20a44e2d1ea9d3ec2fd2cdd446619f41_rle_crop_3753375434_0.png.png imagette221765431744955552/ imagette221765441744955552/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e6acbde394ab018033e1030ad3f55bad_46851407.png imagette221765421744955552 22176543 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=22176543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221765431744955552 22176544 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=22176544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221765441744955552 22176546 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=22176546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350964282: '1744955474_3785240_1350963656_751e666a475279c8b21e1b7d9ae737d7_rle_crop_3753376541_0.png'} change filename to text .imagette221765461744955552/ imagette221765461744955552/1744955474_3785240_1350963656_751e666a475279c8b21e1b7d9ae737d7_rle_crop_3753376541_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4beb4b095664c4d7791733038c1761ac_9372405.png imagette221765461744955552 22176548 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=22176548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350963974: '1744955381_2162631_1350963503_603ca27b0b814433e46e4b9efa8f11b9_rle_crop_3753375475_0.png', 1350964269: '1744955474_3785240_1350963661_a867a30ca53a52aa1f3dcb517e576159_rle_crop_3753376510_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/7b02b8df2abf20cdd393f67b593e068f_32735021.png change filename to text .imagette221765481744955552/ imagette221765481744955552/1744955381_2162631_1350963503_603ca27b0b814433e46e4b9efa8f11b9_rle_crop_3753375475_0.png.png imagette221765481744955552/1744955474_3785240_1350963661_a867a30ca53a52aa1f3dcb517e576159_rle_crop_3753376510_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1578c7e0c0e629353be1160c7b4b26e5_65350637.png imagette221765481744955552 22176549 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=22176549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350963891: '1744955353_3783747_1350963610_097ce96a337a800a567a4bffb507f31c_rle_crop_3753375016_0.png', 1350964048: '1744955381_2162631_1350963503_603ca27b0b814433e46e4b9efa8f11b9_rle_crop_3753375484_0.png', 1350964049: '1744955381_2162631_1350963497_d240f5491293794f2637607bdc141000_rle_crop_3753375499_0.png', 1350964278: '1744955474_3785240_1350963731_37aecfbfbbd3cb5a2377e5934cc7af22_rle_crop_3753376484_0.png', 1350964279: '1744955474_3785240_1350963712_fefe14ac8742329bab7dc65208d17c54_rle_crop_3753376492_0.png', 1350964280: '1744955474_3785240_1350963712_fefe14ac8742329bab7dc65208d17c54_rle_crop_3753376490_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/128f094475a2b58be99c919042d0be3a_28229809.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/308c319b94ba0b75e144961e319ae35f_9972409.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/41b9400241edf315fc7d64e0c8d036cc_66694870.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fb5fd20aa6d1dddb0c672f9e3e1aa098_68505588.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/493f9a0d262c1949fc7d8dca5f2876f2_43044663.png change filename to text .imagette221765491744955552/ imagette221765491744955552/1744955474_3785240_1350963731_37aecfbfbbd3cb5a2377e5934cc7af22_rle_crop_3753376484_0.png.png imagette221765491744955552/1744955474_3785240_1350963712_fefe14ac8742329bab7dc65208d17c54_rle_crop_3753376490_0.png.png imagette221765491744955552/1744955381_2162631_1350963503_603ca27b0b814433e46e4b9efa8f11b9_rle_crop_3753375484_0.png.png imagette221765491744955552/1744955381_2162631_1350963497_d240f5491293794f2637607bdc141000_rle_crop_3753375499_0.png.png imagette221765491744955552/1744955353_3783747_1350963610_097ce96a337a800a567a4bffb507f31c_rle_crop_3753375016_0.png.png imagette221765491744955552/1744955474_3785240_1350963712_fefe14ac8742329bab7dc65208d17c54_rle_crop_3753376492_0.png.png imagette221765511744955552/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/547ad68ec61f744cfec11db9d96425af_52419857.png imagette221765491744955552 22176551 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=22176551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221765511744955552 22176540 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=22176540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350963888: '1744955353_3783747_1350963610_097ce96a337a800a567a4bffb507f31c_rle_crop_3753375020_0.png', 1350964034: '1744955381_2162631_1350963531_8449dee314e9f1029bc2d9c1d8a1b3f2_rle_crop_3753375417_0.png', 1350964035: '1744955381_2162631_1350963528_20a44e2d1ea9d3ec2fd2cdd446619f41_rle_crop_3753375438_0.png', 1350964036: '1744955381_2162631_1350963517_5a905613e5512a2d700f08964c5fb74b_rle_crop_3753375457_0.png', 1350964037: '1744955381_2162631_1350963517_5a905613e5512a2d700f08964c5fb74b_rle_crop_3753375458_0.png', 1350964039: '1744955381_2162631_1350963503_603ca27b0b814433e46e4b9efa8f11b9_rle_crop_3753375480_0.png', 1350964041: '1744955381_2162631_1350963497_d240f5491293794f2637607bdc141000_rle_crop_3753375501_0.png', 1350964266: '1744955503_2165406_1350963851_c3fdb68dfcc4f85c68617d75081b86e0_rle_crop_3753376530_0.png', 1350964273: '1744955474_3785240_1350963712_fefe14ac8742329bab7dc65208d17c54_rle_crop_3753376495_0.png', 1350964275: '1744955474_3785240_1350963661_a867a30ca53a52aa1f3dcb517e576159_rle_crop_3753376519_0.png', 1350964276: '1744955474_3785240_1350963656_751e666a475279c8b21e1b7d9ae737d7_rle_crop_3753376542_0.png', 1350964277: '1744955474_3785240_1350963652_168862292d23bc784e19f2a5c7760c91_rle_crop_3753376557_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e768d0c216d5dbe0a1b387ea72a1c6ce_59847819.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5e27dccc12d88b74a93efa7c62e88604_95285280.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/d2d02ef33a84055a8bf15b67d3916fef_24265214.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fa88dd0f049a1644e08e91e107333457_31108928.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b7ea390ea6fa5558b679c6775e1293af_57211697.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/772bc99b3e8dc44b97d96de259e13a03_13133702.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/74c478711920a8c9a6c64db736ff9cec_7073779.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/d0abb41d4e2a82247a1a78e21b11022c_11539969.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/209b32dcb361662a5adafcdf7a058890_86684881.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ef99a1612e1a8933d90884b932d3b13b_96802495.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2f92f8cf579c6e551316fe64b89aa736_47697851.png change filename to text .imagette221765401744955552/ imagette221765401744955552/1744955381_2162631_1350963528_20a44e2d1ea9d3ec2fd2cdd446619f41_rle_crop_3753375438_0.png.png imagette221765401744955552/1744955381_2162631_1350963517_5a905613e5512a2d700f08964c5fb74b_rle_crop_3753375458_0.png.png imagette221765401744955552/1744955381_2162631_1350963517_5a905613e5512a2d700f08964c5fb74b_rle_crop_3753375457_0.png.png imagette221765401744955552/1744955474_3785240_1350963712_fefe14ac8742329bab7dc65208d17c54_rle_crop_3753376495_0.png.png imagette221765401744955552/1744955353_3783747_1350963610_097ce96a337a800a567a4bffb507f31c_rle_crop_3753375020_0.png.png imagette221765401744955552/1744955474_3785240_1350963661_a867a30ca53a52aa1f3dcb517e576159_rle_crop_3753376519_0.png.png imagette221765401744955552/1744955381_2162631_1350963497_d240f5491293794f2637607bdc141000_rle_crop_3753375501_0.png.png imagette221765401744955552/1744955381_2162631_1350963503_603ca27b0b814433e46e4b9efa8f11b9_rle_crop_3753375480_0.png.png imagette221765401744955552/1744955474_3785240_1350963656_751e666a475279c8b21e1b7d9ae737d7_rle_crop_3753376542_0.png.png imagette221765401744955552/1744955503_2165406_1350963851_c3fdb68dfcc4f85c68617d75081b86e0_rle_crop_3753376530_0.png.png imagette221765401744955552/1744955381_2162631_1350963531_8449dee314e9f1029bc2d9c1d8a1b3f2_rle_crop_3753375417_0.png.png imagette221765401744955552/1744955474_3785240_1350963652_168862292d23bc784e19f2a5c7760c91_rle_crop_3753376557_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c742ca5c1e02059ff38b669ac9ae0cfb_77257199.png imagette221765401744955552 22176541 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=22176541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350963884: '1744955353_3783747_1350963615_77cf80a3bab396b09a1254c904cfbe07_rle_crop_3753374976_0.png', 1350963885: '1744955353_3783747_1350963615_77cf80a3bab396b09a1254c904cfbe07_rle_crop_3753374978_0.png', 1350963886: '1744955353_3783747_1350963615_77cf80a3bab396b09a1254c904cfbe07_rle_crop_3753374981_0.png', 1350963992: '1744955381_2162631_1350963531_8449dee314e9f1029bc2d9c1d8a1b3f2_rle_crop_3753375414_0.png', 1350963996: '1744955381_2162631_1350963528_20a44e2d1ea9d3ec2fd2cdd446619f41_rle_crop_3753375441_0.png', 1350964000: '1744955381_2162631_1350963517_5a905613e5512a2d700f08964c5fb74b_rle_crop_3753375455_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/49a4e8f0342567eda2360a28357d2cc1_90174981.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8a34bba99ddd80bac99ab44f7cb4176a_33912631.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f83fa25bf5884511d5adb48291fe64e0_43657401.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8ddbb959e0fbc47835f089df8babcf5e_87269668.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/923d34863ffbac6bb01f543cc11ed180_40759668.png change filename to text .imagette221765411744955553/ imagette221765411744955553/1744955381_2162631_1350963531_8449dee314e9f1029bc2d9c1d8a1b3f2_rle_crop_3753375414_0.png.png imagette221765411744955553/1744955381_2162631_1350963517_5a905613e5512a2d700f08964c5fb74b_rle_crop_3753375455_0.png.png imagette221765411744955553/1744955353_3783747_1350963615_77cf80a3bab396b09a1254c904cfbe07_rle_crop_3753374976_0.png.png imagette221765411744955553/1744955381_2162631_1350963528_20a44e2d1ea9d3ec2fd2cdd446619f41_rle_crop_3753375441_0.png.png imagette221765411744955553/1744955353_3783747_1350963615_77cf80a3bab396b09a1254c904cfbe07_rle_crop_3753374978_0.png.png imagette221765411744955553/1744955353_3783747_1350963615_77cf80a3bab396b09a1254c904cfbe07_rle_crop_3753374981_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ba5dd50e89772fab789af28a38991f2f_29544571.png imagette221765411744955553 22176547 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=22176547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350963881: '1744955353_3783747_1350963610_097ce96a337a800a567a4bffb507f31c_rle_crop_3753375012_0.png', 1350963882: '1744955353_3783747_1350963610_097ce96a337a800a567a4bffb507f31c_rle_crop_3753375011_0.png', 1350963961: '1744955381_2162631_1350963619_04f3106149e9c53026af75058b98732b_rle_crop_3753375388_0.png', 1350963963: '1744955381_2162631_1350963528_20a44e2d1ea9d3ec2fd2cdd446619f41_rle_crop_3753375437_0.png', 1350963965: '1744955381_2162631_1350963528_20a44e2d1ea9d3ec2fd2cdd446619f41_rle_crop_3753375439_0.png', 1350963967: '1744955381_2162631_1350963503_603ca27b0b814433e46e4b9efa8f11b9_rle_crop_3753375481_0.png', 1350964267: '1744955474_3785240_1350963731_37aecfbfbbd3cb5a2377e5934cc7af22_rle_crop_3753376480_0.png', 1350964268: '1744955474_3785240_1350963652_168862292d23bc784e19f2a5c7760c91_rle_crop_3753376553_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2e69a3b23192ffd444d5dbbcab2637f9_82998794.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f0faf421de877ec7818ee3445755403c_58956549.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fa8856157bdbca77fe7ad3d9def11c53_2860378.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/07957b7df3532f2725e8ba2afff1b287_78386232.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/7b829642375eadf2f8538ee1c46e66f0_68160743.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5d6ed08b045ce943df82166b83e5cb0f_3630220.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a99e611d37362fa760aaaf69d5b49cd9_79756384.png change filename to text .imagette221765471744955553/ imagette221765471744955553/1744955381_2162631_1350963528_20a44e2d1ea9d3ec2fd2cdd446619f41_rle_crop_3753375437_0.png.png imagette221765471744955553/1744955353_3783747_1350963610_097ce96a337a800a567a4bffb507f31c_rle_crop_3753375012_0.png.png imagette221765471744955553/1744955381_2162631_1350963528_20a44e2d1ea9d3ec2fd2cdd446619f41_rle_crop_3753375439_0.png.png imagette221765471744955553/1744955381_2162631_1350963619_04f3106149e9c53026af75058b98732b_rle_crop_3753375388_0.png.png imagette221765471744955553/1744955474_3785240_1350963731_37aecfbfbbd3cb5a2377e5934cc7af22_rle_crop_3753376480_0.png.png imagette221765471744955553/1744955381_2162631_1350963503_603ca27b0b814433e46e4b9efa8f11b9_rle_crop_3753375481_0.png.png imagette221765471744955553/1744955474_3785240_1350963652_168862292d23bc784e19f2a5c7760c91_rle_crop_3753376553_0.png.png imagette221765471744955553/1744955353_3783747_1350963610_097ce96a337a800a567a4bffb507f31c_rle_crop_3753375011_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f5cecbc10e84cb11af634aaa027d134d_72455485.png imagette221765471744955553 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22176494 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22176552,22176553,22176554,22176555,22176556,22176557,22176558,22176559,22176560,22176561,22176562,22176563?tags=Carton_brun,Carton_gris,cartonnette,flou,mal_croppe,environnement,kraft,Teint_Dans_La_Masse,autre_refus,plastique,papier,metal your option no_mail is active, we will not send the real mail to your client args[1350964281] : ('0.08833105150859515',) no score found for photo 1350964281 We are sending mail with results at report@fotonower.com args[1350964270] : ('0.08833105150859515',) no score found for photo 1350964270 We are sending mail with results at report@fotonower.com args[1350964208] : ('0.08833105150859515',) no score found for photo 1350964208 We are sending mail with results at report@fotonower.com args[1350964205] : ('0.08833105150859515',) no score found for photo 1350964205 We are sending mail with results at report@fotonower.com args[1350964201] : ('0.08833105150859515',) no score found for photo 1350964201 We are sending mail with results at report@fotonower.com args[1350964182] : ('0.08833105150859515',) no score found for photo 1350964182 We are sending mail with results at report@fotonower.com args[1350964148] : ('0.08833105150859515',) no score found for photo 1350964148 We are sending mail with results at report@fotonower.com args[1350964118] : ('0.08833105150859515',) no score found for photo 1350964118 We are sending mail with results at report@fotonower.com args[1350964047] : ('0.08833105150859515',) no score found for photo 1350964047 We are sending mail with results at report@fotonower.com args[1350964005] : ('0.08833105150859515',) no score found for photo 1350964005 We are sending mail with results at report@fotonower.com args[1350963955] : ('0.08833105150859515',) no score found for photo 1350963955 We are sending mail with results at report@fotonower.com args[1350963922] : ('0.08833105150859515',) no score found for photo 1350963922 We are sending mail with results at report@fotonower.com args[1350963912] : ('0.08833105150859515',) no score found for photo 1350963912 We are sending mail with results at report@fotonower.com args[1350963904] : ('0.08833105150859515',) no score found for photo 1350963904 We are sending mail with results at report@fotonower.com refus_total : 0.08833105150859515 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=22176494 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_P22176494_18-04-2025_07_52_32.pdf results_Auto_P22176494_18-04-2025_07_52_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22176494_18-04-2025_07_52_32.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','22176494','results_Auto_P22176494_18-04-2025_07_52_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22176494_18-04-2025_07_52_32.pdf','pdf','','0.24','0.08833105150859515') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22176494]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904] map_info['map_portfolio_photo'] : {22176494: [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904, 1350963856, 1350963854, 1350963851, 1350963740, 1350963731, 1350963712, 1350963661, 1350963656, 1350963652, 1350963619, 1350963617, 1350963615, 1350963610, 1350963531, 1350963528, 1350963517, 1350963503, 1350963497]} final : False mtd_id 4302 list_pids : [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904] 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, '2734708') ('4302', '22176494', '1350964281', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964270', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964208', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964205', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964201', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964182', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964148', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964118', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964047', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964005', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963955', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963922', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963912', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963904', None, None, None, None, None, '2734708') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '22176494', '1350964281', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964270', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964208', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964205', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964201', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964182', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964148', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964118', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964047', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964005', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963955', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963922', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963912', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963904', None, None, None, None, None, '2734708')] time used for this insertion : 0.015525579452514648 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.970306396484375 time spend to save output : 0.015842914581298828 total time spend for step 4 : 3.986149311065674 step5:split_time_score Fri Apr 18 07:52:35 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 : ['22176494'] 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 : [('22176494',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22176494) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350964270: {'path': 'temp/1744955551_1076579_1350964270_8afde2fd280845dcc05b57129bfaeb57.jpg', 'extension': 'jpg'}, 1350964281: {'path': 'temp/1744955551_1076579_1350964281_1fd7bf012293eed4a71847e153f54895.jpg', 'extension': 'jpg'}, 1350964201: {'path': 'temp/1744955551_1076579_1350964201_80ffeaa78ee016151e6ba5e3378529d5.jpg', 'extension': 'jpg'}, 1350964205: {'path': 'temp/1744955551_1076579_1350964205_80c84903d838d931c22824ed8e59cc61.jpg', 'extension': 'jpg'}, 1350964208: {'path': 'temp/1744955551_1076579_1350964208_a3c846abf36d51a5a13ad416d293bca4.jpg', 'extension': 'jpg'}, 1350963904: {'path': 'temp/1744955551_1076579_1350963904_216aeb53aac1cf70cdc6aa8cb99f8726.jpg', 'extension': 'jpg'}, 1350963912: {'path': 'temp/1744955551_1076579_1350963912_0b152a953f534eb34db6b8f539e46c39.jpg', 'extension': 'jpg'}, 1350963922: {'path': 'temp/1744955551_1076579_1350963922_8496d19a5d43da68667ff7b1a6362483.jpg', 'extension': 'jpg'}, 1350964118: {'path': 'temp/1744955551_1076579_1350964118_a607b4da855f5072ca2dede88627179b.jpg', 'extension': 'jpg'}, 1350964148: {'path': 'temp/1744955551_1076579_1350964148_0073751265872b56adde8033b9b403ed.jpg', 'extension': 'jpg'}, 1350964182: {'path': 'temp/1744955551_1076579_1350964182_d6e5d3f5f5b8ae1a4e97d2d6eb66143b.jpg', 'extension': 'jpg'}, 1350963955: {'path': 'temp/1744955551_1076579_1350963955_6f521639aedc3013f4ac97d5869ca215.jpg', 'extension': 'jpg'}, 1350964005: {'path': 'temp/1744955551_1076579_1350964005_9e789154cdc1670cda549348b105201d.jpg', 'extension': 'jpg'}, 1350964047: {'path': 'temp/1744955551_1076579_1350964047_47ec79f20c43cfcb1a8fd3dde73749c6.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 = 22176494; (('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 = 22176494 group by h (('07', 32),) 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=22176494 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 (22176494) 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 (22176494) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18042025 22176494 Nombre de photos uploadées : 32 / 23040 (0%) 18042025 22176494 Nombre de photos taguées (types de déchets): 0 / 32 (0%) 18042025 22176494 Nombre de photos taguées (volume) : 0 / 32 (0%) [{'photo_id': 1350963531, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8449dee314e9f1029bc2d9c1d8a1b3f2.jpg', 'username': None, 'uploaded_at': 1744955167, 'text': 'image_18042025_07_45_04_010160m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350963528, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/20a44e2d1ea9d3ec2fd2cdd446619f41.jpg', 'username': None, 'uploaded_at': 1744955167, 'text': 'image_18042025_07_45_14_010137m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1350963517, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5a905613e5512a2d700f08964c5fb74b.jpg', 'username': None, 'uploaded_at': 1744955167, 'text': 'image_18042025_07_45_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1350963503, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/603ca27b0b814433e46e4b9efa8f11b9.jpg', 'username': None, 'uploaded_at': 1744955167, 'text': 'image_18042025_07_45_34_010144m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ???????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014543533325195312 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22176494, '2025-04-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026285171508789062 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= 1725253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733648, 'mtr_portfolio_id': 22174430, 'dashboard_result_id': 9968815, '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_P22174430_18-04-2025_07_17_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174472, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733648, 'mtr_portfolio_id': 22175155, 'dashboard_result_id': 9968816, '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_P22175155_18-04-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22175187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175198, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733648, 'mtr_portfolio_id': 22175907, 'dashboard_result_id': 9968817, '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_P22175907_18-04-2025_07_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175964, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733648, 'mtr_portfolio_id': 22176494, 'dashboard_result_id': 9968818, '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_P22176494_18-04-2025_07_50_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22176540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22176541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22176542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22176543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22176544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22176545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22176546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22176547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22176548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22176549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22176550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22176551, '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 = 22174430 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': 2734525, 'mtr_portfolio_id': 22174430, 'created_at': datetime.datetime(2025, 4, 18, 7, 17, 1), 'result': '0.09001200735003627', 'result_long': None, 'result_double': None}] Qualite : 0.09001200735003627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22174430 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174430_18-04-2025_07_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22174430 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_P22174430_18-04-2025_07_17_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174472, 'pht': 3726}}" where mtr_portfolio_id = 22174430 and dashboard_run_id = 1733648 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`=22174430 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9968815, 0.09001200735003627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22174430_18-04-2025_07_17_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22174461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22174462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22174463, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22174464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22174465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22174466, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22174467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22174468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22174469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22174470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22174471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22174472, '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 = 22175155 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': 2734592, 'mtr_portfolio_id': 22175155, 'created_at': datetime.datetime(2025, 4, 18, 7, 32, 59), 'result': '0.05887334434922578', 'result_long': None, 'result_double': None}] Qualite : 0.05887334434922578 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22175155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175155_18-04-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22175155 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_P22175155_18-04-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22175187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175198, 'pht': 3726}}" where mtr_portfolio_id = 22175155 and dashboard_run_id = 1733648 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`=22175155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9968816, 0.05887334434922578, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175155_18-04-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22175187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175190, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175194, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175198, '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 = 22175907 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': 2734663, 'mtr_portfolio_id': 22175907, 'created_at': datetime.datetime(2025, 4, 18, 7, 46, 57), 'result': '0.04374779709682909', 'result_long': None, 'result_double': None}] Qualite : 0.04374779709682909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22175907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175907_18-04-2025_07_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22175907 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_P22175907_18-04-2025_07_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175964, 'pht': 3726}}" where mtr_portfolio_id = 22175907 and dashboard_run_id = 1733648 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`=22175907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9968817, 0.04374779709682909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22175907_18-04-2025_07_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22175953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22175954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22175955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22175956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22175957, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22175958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22175959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22175960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22175961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22175962, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22175963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22175964, '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 = 22176494 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': 2734708, 'mtr_portfolio_id': 22176494, 'created_at': datetime.datetime(2025, 4, 18, 7, 52, 31), 'result': '0.08833105150859515', 'result_long': None, 'result_double': None}] Qualite : 0.08833105150859515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22176494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22176494_18-04-2025_07_52_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22176494 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_P22176494_18-04-2025_07_52_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22176540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22176541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22176542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22176543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22176544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22176545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22176546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22176547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22176548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22176549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22176550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22176551, 'pht': 3726}}" where mtr_portfolio_id = 22176494 and dashboard_run_id = 1733648 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`=22176494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9968818, 0.08833105150859515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22176494_18-04-2025_07_52_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22176540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22176541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22176542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22176543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22176544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22176545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22176546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22176547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22176548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22176549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22176550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22176551, '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 (22174430,22175155,22175907,22176494) result : ((1350954467,), (1350955194,), (1350955230,), (1350955282,), (1350955875,), (1350955885,), (1350955889,), (1350955892,), (1350955899,), (1350955993,), (1350955995,), (1350955999,), (1350956002,), (1350956005,), (1350956007,), (1350956263,), (1350956288,), (1350956316,), (1350956543,), (1350956558,), (1350956576,), (1350956582,), (1350956584,), (1350956659,), (1350956662,), (1350956665,), (1350956668,), (1350956723,), (1350956724,), (1350956726,), (1350956786,), (1350956789,), (1350956795,), (1350956803,), (1350956808,), (1350956823,), (1350957116,), (1350957120,), (1350957126,), (1350957134,), (1350957141,), (1350957172,), (1350957174,), (1350957175,), (1350957247,), (1350957255,), (1350957263,), (1350957266,), (1350957268,), (1350957322,), (1350957340,), (1350957365,), (1350957391,), (1350957939,), (1350957952,), (1350957957,), (1350957979,), (1350958014,), (1350958285,), (1350958194,), (1350958231,), (1350958257,), (1350958280,), (1350958281,), (1350958303,), (1350958326,), (1350958337,), (1350958512,), (1350958539,), (1350958562,), (1350958565,), (1350958567,), (1350958771,), (1350958784,), (1350958790,), (1350958792,), (1350958828,), (1350958912,), (1350958923,), (1350958929,), (1350959108,), (1350959119,), (1350959135,), (1350959173,), (1350959194,), (1350959208,), (1350959418,), (1350959422,), (1350959432,), (1350959472,), (1350959477,), (1350959790,), (1350960226,), (1350960227,), (1350960382,), (1350960410,), (1350960414,), (1350960512,), (1350960523,), (1350960558,), (1350960585,), (1350960629,), (1350960653,), (1350960685,), (1350960687,), (1350960690,), (1350960693,), (1350960844,), (1350960857,), (1350960860,), (1350960862,), (1350960863,), (1350960866,), (1350960899,), (1350960904,), (1350960908,), (1350961109,), (1350960959,), (1350960985,), (1350961091,), (1350961100,), (1350961106,), (1350961136,), (1350961232,), (1350961257,), (1350961284,), (1350961300,), (1350961430,), (1350961432,), (1350961433,), (1350961434,), (1350961461,), (1350961487,), (1350961655,), (1350961700,), (1350961735,), (1350961982,), (1350962169,), (1350962171,), (1350962199,), (1350962200,), (1350962241,), (1350962244,), (1350962247,), (1350962250,), (1350962252,), (1350962289,), (1350962296,), (1350962298,), (1350962305,), (1350962314,), (1350962412,), (1350962415,), (1350962423,), (1350962443,), (1350962630,), (1350962631,), (1350962648,), (1350962676,), (1350962690,), (1350962693,), (1350962856,), (1350962869,), (1350962875,), (1350962897,), (1350962901,), (1350963111,), (1350963120,), (1350963152,), (1350963154,), (1350963156,), (1350963158,), (1350963261,), (1350963272,), (1350963276,), (1350963279,), (1350963375,), (1350963388,), (1350963389,), (1350963391,), (1350963535,), (1350963497,), (1350963503,), (1350963517,), (1350963528,), (1350963531,), (1350963610,), (1350963615,), (1350963617,), (1350963619,), (1350963652,), (1350963656,), (1350963661,), (1350963712,), (1350963731,), (1350963740,), (1350963851,), (1350963854,), (1350963856,), (1350963904,), (1350963912,), (1350963922,), (1350963955,), (1350964005,), (1350964047,), (1350964118,), (1350964148,), (1350964182,), (1350964201,), (1350964205,), (1350964208,), (1350964270,), (1350964281,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18042025': {'nb_upload': 32, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22176494]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904] map_info['map_portfolio_photo'] : {22176494: [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904, 1350963856, 1350963854, 1350963851, 1350963740, 1350963731, 1350963712, 1350963661, 1350963656, 1350963652, 1350963619, 1350963617, 1350963615, 1350963610, 1350963531, 1350963528, 1350963517, 1350963503, 1350963497]} final : True mtd_id 4302 list_pids : [1350964281, 1350964270, 1350964208, 1350964205, 1350964201, 1350964182, 1350964148, 1350964118, 1350964047, 1350964005, 1350963955, 1350963922, 1350963912, 1350963904] Looping around the photos to save general results len do output : 1 /22176494Didn'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, '2734708') ('4302', '22176494', '1350964281', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964270', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964208', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964205', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964201', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964182', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964148', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964118', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964047', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350964005', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963955', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963922', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963912', None, None, None, None, None, '2734708') ('4302', None, None, None, None, None, None, None, '2734708') ('4302', '22176494', '1350963904', None, None, None, None, None, '2734708') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22176494', 'None', None, None, None, None, '2734708'), ('4302', '22176494', '1350964281', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964270', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964208', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964205', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964201', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964182', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964148', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964118', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964047', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350964005', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963955', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963922', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963912', None, None, None, None, None, '2734708'), ('4302', '22176494', '1350963904', None, None, None, None, None, '2734708')] time used for this insertion : 0.017832517623901367 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34763240814208984 time spend to save output : 0.018114805221557617 total time spend for step 5 : 0.36574721336364746 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 (2734708) 2.47user 2.28system 0:10.01elapsed 47%CPU (0avgtext+0avgdata 160308maxresident)k 264inputs+13656outputs (16major+76628minor)pagefaults 0swaps