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 : 2337433 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 (2656319) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2656319) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250930 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2656319'] with mtr_portfolio_ids : ['21250930'] and first list_photo_ids : [] new path : /proc/2337433/ Name: python3 Umask: 0002 State: R (running) Tgid: 2337433 Ngid: 0 Pid: 2337433 PPid: 2337432 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2337433 NSpid: 2337433 NSpgid: 2331688 NSsid: 2331688 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97848 kB VmRSS: 97848 kB RssAnon: 59756 kB RssFile: 38092 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 55 nonvoluntary_ctxt_switches: 134 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2337433', 'Ngid': '0', 'Pid': '2337433', 'PPid': '2337432', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2337433', 'NSpid': '2337433', 'NSpgid': '2331688', 'NSsid': '2331688', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97848 kB', 'VmRSS': '97848 kB', 'RssAnon': '59756 kB', 'RssFile': '38092 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '55', 'nonvoluntary_ctxt_switches': '134'} ('datou_batch_current', '2337433', '1106844', '0', '1106844', '865592', '97848', b'', 'marlene', '2656319') 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 (21250930) 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 (2656319 ) ) 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 (21250930) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342772442, 'portfolio_id': 21250930}, {'photo_id': 1342772424, 'portfolio_id': 21250930}, {'photo_id': 1342772368, 'portfolio_id': 21250930}, {'photo_id': 1342772365, 'portfolio_id': 21250930}, {'photo_id': 1342772362, 'portfolio_id': 21250930}, {'photo_id': 1342772359, 'portfolio_id': 21250930}, {'photo_id': 1342772352, 'portfolio_id': 21250930}, {'photo_id': 1342771987, 'portfolio_id': 21250930}, {'photo_id': 1342771918, 'portfolio_id': 21250930}, {'photo_id': 1342771857, 'portfolio_id': 21250930}, {'photo_id': 1342771853, 'portfolio_id': 21250930}, {'photo_id': 1342771821, 'portfolio_id': 21250930}, {'photo_id': 1342771785, 'portfolio_id': 21250930}, {'photo_id': 1342771748, 'portfolio_id': 21250930}, {'photo_id': 1342771715, 'portfolio_id': 21250930}, {'photo_id': 1342771471, 'portfolio_id': 21250930}, {'photo_id': 1342771433, 'portfolio_id': 21250930}, {'photo_id': 1342771002, 'portfolio_id': 21250930}, {'photo_id': 1342770948, 'portfolio_id': 21250930}, {'photo_id': 1342770909, 'portfolio_id': 21250930}, {'photo_id': 1342770878, 'portfolio_id': 21250930}, {'photo_id': 1342767950, 'portfolio_id': 21250930}, {'photo_id': 1342767873, 'portfolio_id': 21250930}, {'photo_id': 1342767587, 'portfolio_id': 21250930}, {'photo_id': 1342767566, 'portfolio_id': 21250930}, {'photo_id': 1342767551, 'portfolio_id': 21250930}, {'photo_id': 1342767451, 'portfolio_id': 21250930}, {'photo_id': 1342767433, 'portfolio_id': 21250930}, {'photo_id': 1342766868, 'portfolio_id': 21250930}, {'photo_id': 1342766827, 'portfolio_id': 21250930}, {'photo_id': 1342766769, 'portfolio_id': 21250930}] map_portfolio_id_photo_id: {21250930: [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715, 1342771471, 1342771433, 1342771002, 1342770948, 1342770909, 1342770878, 1342767950, 1342767873, 1342767587, 1342767566, 1342767551, 1342767451, 1342767433, 1342766868, 1342766827, 1342766769]} ##### 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.024936437606811523 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Mar 11 02:29:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21250930) 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 : 21250930 get user id for portfolio 21250930 get sub ptf for main ptf 21250930, type 3726 and hashtags ['plastique', 'mal_croppe', 'cartonnette', 'Carton_gris', 'environnement', 'Teint_Dans_La_Masse', 'flou', 'autre_refus', 'kraft', 'metal', 'papier', 'Carton_brun'] 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`=21250930 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','cartonnette','Carton_gris','environnement','Teint_Dans_La_Masse','flou','autre_refus','kraft','metal','papier','Carton_brun')) 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`=21250930 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','cartonnette','Carton_gris','environnement','Teint_Dans_La_Masse','flou','autre_refus','kraft','metal','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21250930, 'sub_port_id': 21250949, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839330, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}, 'cartonnette': {'main_port_id': 21250930, 'sub_port_id': 21250950, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839331, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}, 'Carton_gris': {'main_port_id': 21250930, 'sub_port_id': 21250951, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839332, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}, 'kraft': {'main_port_id': 21250930, 'sub_port_id': 21250952, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839333, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}, 'autre_refus': {'main_port_id': 21250930, 'sub_port_id': 21250953, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839334, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 21250930, 'sub_port_id': 21250954, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839335, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}, 'papier': {'main_port_id': 21250930, 'sub_port_id': 21250955, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839336, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}, 'environnement': {'main_port_id': 21250930, 'sub_port_id': 21250956, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839337, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}, 'flou': {'main_port_id': 21250930, 'sub_port_id': 21250957, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839338, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}, 'plastique': {'main_port_id': 21250930, 'sub_port_id': 21250958, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839339, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}, 'mal_croppe': {'main_port_id': 21250930, 'sub_port_id': 21250959, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839340, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}, 'Carton_brun': {'main_port_id': 21250930, 'sub_port_id': 21250960, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839341, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21250949 , 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=21250930 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 (21250949) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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 21250950 , 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=21250930 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 (21250950) result : ((1342769557,), (1342772399,), (1342772463,), (1342772464,), (1342772512,), (1342772541,), (1342772543,), (1342773561,), (1342773562,), (1342773563,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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 21250951 , 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=21250930 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 (21250951) result : ((1342770525,), (1342772396,), (1342772397,), (1342772509,), (1342772510,), (1342772703,), (1342772704,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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 21250952 , 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=21250930 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 (21250952) result : ((1342772517,), (1342772518,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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 21250953 , 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=21250930 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 (21250953) result : ((1342767831,), (1342767832,), (1342767833,), (1342767835,), (1342769540,), (1342770488,), (1342770493,), (1342770496,), (1342772394,), (1342772459,), (1342772460,), (1342772461,), (1342772462,), (1342772506,), (1342772507,), (1342772508,), (1342772538,), (1342772539,), (1342772540,), (1342772683,), (1342773554,), (1342773555,), (1342773556,), (1342773557,), (1342773558,), (1342773559,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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 21250954 , 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=21250930 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 (21250954) result : ((1342767803,), (1342770428,), (1342770430,), (1342772392,), (1342772393,), (1342772534,), (1342772535,), (1342772537,), (1342772670,), (1342773502,), (1342773505,), (1342773507,), (1342773510,), (1342773512,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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 21250955 , 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=21250930 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 (21250955) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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 21250956 , 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=21250930 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 (21250956) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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 21250957 , 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=21250930 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 (21250957) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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 21250958 , 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=21250930 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 (21250958) result : ((1342770601,), (1342772515,), (1342772715,), (1342773566,), (1342773567,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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 21250959 , 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=21250930 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 (21250959) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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 21250960 , 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=21250930 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 (21250960) result : ((1342770575,), (1342772400,), (1342772469,), (1342772470,), (1342772471,), (1342772514,), (1342772554,), (1342772555,), (1342772556,), (1342772557,), (1342772558,), (1342773564,), (1342773565,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21250930) result : ((1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) 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`=21250930 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','cartonnette','Carton_gris','environnement','Teint_Dans_La_Masse','flou','autre_refus','kraft','metal','papier','Carton_brun')) 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`=21250930 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','cartonnette','Carton_gris','environnement','Teint_Dans_La_Masse','flou','autre_refus','kraft','metal','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21250930, 'sub_port_id': 21250961, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839342, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}, 'cartonnette': {'main_port_id': 21250930, 'sub_port_id': 21250962, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839343, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}, 'Carton_gris': {'main_port_id': 21250930, 'sub_port_id': 21250963, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839344, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}, 'kraft': {'main_port_id': 21250930, 'sub_port_id': 21250964, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839345, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}, 'autre_refus': {'main_port_id': 21250930, 'sub_port_id': 21250965, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839346, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 21250930, 'sub_port_id': 21250966, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839347, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}, 'papier': {'main_port_id': 21250930, 'sub_port_id': 21250967, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839348, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}, 'environnement': {'main_port_id': 21250930, 'sub_port_id': 21250968, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839349, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}, 'flou': {'main_port_id': 21250930, 'sub_port_id': 21250969, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839350, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}, 'plastique': {'main_port_id': 21250930, 'sub_port_id': 21250970, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839351, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}, 'mal_croppe': {'main_port_id': 21250930, 'sub_port_id': 21250971, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839352, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 20, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}, 'Carton_brun': {'main_port_id': 21250930, 'sub_port_id': 21250972, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13839353, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 25, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 20, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250964,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250952 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250965,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250953 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250966,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250954 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250967,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250955 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250968,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250956 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250969,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250957 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250970,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250958 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250971,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250959 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21250972,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21250960 lien utilise dans velours : https://www.fotonower.com/velours/21250961,21250962,21250963,21250964,21250965,21250966,21250967,21250968,21250969,21250970,21250971,21250972?tags=metal,cartonnette,Carton_gris,kraft,autre_refus,Teint_Dans_La_Masse,papier,environnement,flou,plastique,mal_croppe,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21250930]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715] map_info['map_portfolio_photo'] : {21250930: [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715, 1342771471, 1342771433, 1342771002, 1342770948, 1342770909, 1342770878, 1342767950, 1342767873, 1342767587, 1342767566, 1342767551, 1342767451, 1342767433, 1342766868, 1342766827, 1342766769]} final : False mtd_id 4302 list_pids : [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715] Looping around the photos to save general results len do output : 1 /21250930. 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, '2656319') ('4302', '21250930', '1342772442', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772424', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772368', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772365', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772362', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772359', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772352', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771987', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771918', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771857', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771853', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771821', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771785', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771748', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771715', None, None, None, None, None, '2656319') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21250930', "{'metal': 21250949, 'cartonnette': 21250950, 'Carton_gris': 21250951, 'kraft': 21250952, 'autre_refus': 21250953, 'Teint_Dans_La_Masse': 21250954, 'papier': 21250955, 'environnement': 21250956, 'flou': 21250957, 'plastique': 21250958, 'mal_croppe': 21250959, 'Carton_brun': 21250960}", None, None, None, None, '2656319'), ('4302', '21250930', '1342772442', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772424', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772368', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772365', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772362', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772359', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772352', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771987', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771918', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771857', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771853', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771821', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771785', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771748', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771715', None, None, None, None, None, '2656319')] time used for this insertion : 0.014646291732788086 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9247610569000244 time spend to save output : 0.014984130859375 total time spend for step 1 : 2.9397451877593994 step2:final Tue Mar 11 02:30:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21250930) 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 21250930 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342766868,1342766827,1342766769,1342767587,1342767566,1342767551,1342767451,1342767433,1342767950,1342767873,1342771002,1342770948,1342770909,1342770878,1342771471,1342771433,1342771821,1342771785,1342771748,1342771715,1342771987,1342771918,1342771857,1342771853,1342772368,1342772352,1342772365,1342772362,1342772359,1342772442,1342772424); 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([21250930]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} new output for save of step final : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715] map_info['map_portfolio_photo'] : {21250930: [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715, 1342771471, 1342771433, 1342771002, 1342770948, 1342770909, 1342770878, 1342767950, 1342767873, 1342767587, 1342767566, 1342767551, 1342767451, 1342767433, 1342766868, 1342766827, 1342766769]} final : False mtd_id 4302 list_pids : [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715] Looping around the photos to save general results len do output : 15 /1342772442.Didn't retrieve data . /1342772424.Didn't retrieve data . /1342772368.Didn't retrieve data . /1342772365.Didn't retrieve data . /1342772362.Didn't retrieve data . /1342772359.Didn't retrieve data . /1342772352.Didn't retrieve data . /1342771987.Didn't retrieve data . /1342771918.Didn't retrieve data . /1342771857.Didn't retrieve data . /1342771853.Didn't retrieve data . /1342771821.Didn't retrieve data . /1342771785.Didn't retrieve data . /1342771748.Didn't retrieve data . /1342771715.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, '2656319') ('4302', '21250930', '1342772442', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772424', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772368', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772365', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772362', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772359', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772352', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771987', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771918', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771857', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771853', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771821', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771785', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771748', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771715', None, None, None, None, None, '2656319') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '21250930', '1342772442', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342772424', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342772368', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342772365', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342772362', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342772359', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342772352', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342771987', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342771918', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342771857', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342771853', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342771821', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342771785', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342771748', '0.07116648058620526', None, None, None, None, '2656319'), ('4302', '21250930', '1342771715', '0.07116648058620526', None, None, None, None, '2656319')] time used for this insertion : 0.0166165828704834 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07964730262756348 time spend to save output : 0.017603397369384766 total time spend for step 2 : 0.09725069999694824 step3:velours_tree Tue Mar 11 02:30:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21250930: [{'metal': 21250949, 'cartonnette': 21250950, 'Carton_gris': 21250951, 'kraft': 21250952, 'autre_refus': 21250953, 'Teint_Dans_La_Masse': 21250954, 'papier': 21250955, 'environnement': 21250956, 'flou': 21250957, 'plastique': 21250958, 'mal_croppe': 21250959, 'Carton_brun': 21250960}]} input_args_next_step : {21250930: ()} output_args : {21250930: [{'metal': 21250949, 'cartonnette': 21250950, 'Carton_gris': 21250951, 'kraft': 21250952, 'autre_refus': 21250953, 'Teint_Dans_La_Masse': 21250954, 'papier': 21250955, 'environnement': 21250956, 'flou': 21250957, 'plastique': 21250958, 'mal_croppe': 21250959, 'Carton_brun': 21250960}]} args : 21250930 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'metal': 21250949, 'cartonnette': 21250950, 'Carton_gris': 21250951, 'kraft': 21250952, 'autre_refus': 21250953, 'Teint_Dans_La_Masse': 21250954, 'papier': 21250955, 'environnement': 21250956, 'flou': 21250957, 'plastique': 21250958, 'mal_croppe': 21250959, 'Carton_brun': 21250960},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21250930) 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([21250930]) 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.5163853168487549 time spend to save output : 5.5789947509765625e-05 total time spend for step 3 : 0.5164411067962646 step4:send_mail_cod Tue Mar 11 02:30:02 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 : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} input_args_next_step : {1342772442: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342772442 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342772424 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342772368 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342772365 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342772362 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342772359 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342772352 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342771987 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342771918 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342771857 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342771853 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342771821 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342771785 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342771748 depend.output_id : 0 input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ()} output_args : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',)} args : 1342771715 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 : {21250930: [{'metal': 21250949, 'cartonnette': 21250950, 'Carton_gris': 21250951, 'kraft': 21250952, 'autre_refus': 21250953, 'Teint_Dans_La_Masse': 21250954, 'papier': 21250955, 'environnement': 21250956, 'flou': 21250957, 'plastique': 21250958, 'mal_croppe': 21250959, 'Carton_brun': 21250960}]} input_args_next_step : {1342772442: ('0.07116648058620526',), 1342772424: ('0.07116648058620526',), 1342772368: ('0.07116648058620526',), 1342772365: ('0.07116648058620526',), 1342772362: ('0.07116648058620526',), 1342772359: ('0.07116648058620526',), 1342772352: ('0.07116648058620526',), 1342771987: ('0.07116648058620526',), 1342771918: ('0.07116648058620526',), 1342771857: ('0.07116648058620526',), 1342771853: ('0.07116648058620526',), 1342771821: ('0.07116648058620526',), 1342771785: ('0.07116648058620526',), 1342771748: ('0.07116648058620526',), 1342771715: ('0.07116648058620526',), 21250930: ()} output_args : {21250930: [{'metal': 21250949, 'cartonnette': 21250950, 'Carton_gris': 21250951, 'kraft': 21250952, 'autre_refus': 21250953, 'Teint_Dans_La_Masse': 21250954, 'papier': 21250955, 'environnement': 21250956, 'flou': 21250957, 'plastique': 21250958, 'mal_croppe': 21250959, 'Carton_brun': 21250960}]} args : 21250930 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 :16, first value : ('0.07116648058620526',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21250930) 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 (1342772442,1342772424,1342772368,1342772365,1342772362,1342772359,1342772352,1342771987,1342771918,1342771857,1342771853,1342771821,1342771785,1342771748,1342771715) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342771715 begin to download photo : 1342771853 begin to download photo : 1342772352 begin to download photo : 1342772368 download finish for photo 1342771853 begin to download photo : 1342771857 download finish for photo 1342772368 begin to download photo : 1342772424 download finish for photo 1342772352 begin to download photo : 1342772359 download finish for photo 1342771715 begin to download photo : 1342771748 download finish for photo 1342772359 begin to download photo : 1342772362 download finish for photo 1342772424 begin to download photo : 1342772442 download finish for photo 1342771748 begin to download photo : 1342771785 download finish for photo 1342771857 begin to download photo : 1342771918 download finish for photo 1342772362 begin to download photo : 1342772365 download finish for photo 1342772442 download finish for photo 1342771785 begin to download photo : 1342771821 download finish for photo 1342771918 begin to download photo : 1342771987 download finish for photo 1342772365 download finish for photo 1342771821 download finish for photo 1342771987 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette212509491741656602/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P21250930_11-03-2025_02_30_02.pdf 21250949 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=21250949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212509491741656602 21250950 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=21250950 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342769557: '1741655993_347546_1342767587_dc00275a04115917e41743efeb5a057f_rle_crop_3703996903_0.png', 1342772399: '1741656332_350927_1342770948_e0c11365b00eea8b75426e5d1b91f7ae_rle_crop_3704013165_0.png', 1342772463: '1741656371_351279_1342771857_0aeb669093cc5d5f5ff7e2a7622e4421_rle_crop_3704013820_0.png', 1342772464: '1741656371_351279_1342771853_386dc3cb58867564e4368f325ccce0ba_rle_crop_3704013876_0.png', 1342772512: '1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011895_0.png', 1342772541: '1741656386_715681_1342771987_45da8143cc1c99f4b36805c204e21116_rle_crop_3704013966_0.png', 1342772543: '1741656386_715681_1342771748_17e9dd47ac78af71ca1c2747d40d4f91_rle_crop_3704012066_0.png', 1342773561: '1741656493_352867_1342772362_7052bb60fe81842292c0f20e7289c7a5_rle_crop_3704016590_0.png', 1342773562: '1741656493_352867_1342772359_03c5b1b49d2f3aaa94a9f68b608a9b2f_rle_crop_3704016608_0.png', 1342773563: '1741656493_352867_1342772352_b86e928403a462f559c0fd3da487e913_rle_crop_3704016673_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/659087bc7f50ab0c0576b5ad44383999_12956867.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9b52abf59a25d4df3b4c13ef3530dcee_83430210.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f50d7d53c09e71cd2954047af063f097_50129726.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/158a7b69af515ba35f68681dce96930f_41284874.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f40476e487d77b7ef435e8a9a22ee5aa_39808515.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/56f139648561a41bfe57210e2ad62c10_76247006.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ad0de074cc2e4b9906cde060024e3f2d_60396345.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/708073b2df3f11a56de38a273b559bd4_15911312.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/615a503ff6f3c37940336dc10762cbe6_49251243.png change filename to text .imagette212509501741656602/ imagette212509501741656602/1741656493_352867_1342772362_7052bb60fe81842292c0f20e7289c7a5_rle_crop_3704016590_0.png.png imagette212509501741656602/1741656493_352867_1342772359_03c5b1b49d2f3aaa94a9f68b608a9b2f_rle_crop_3704016608_0.png.png imagette212509501741656602/1741656332_350927_1342770948_e0c11365b00eea8b75426e5d1b91f7ae_rle_crop_3704013165_0.png.png imagette212509501741656602/1741656386_715681_1342771748_17e9dd47ac78af71ca1c2747d40d4f91_rle_crop_3704012066_0.png.png imagette212509501741656602/1741656371_351279_1342771853_386dc3cb58867564e4368f325ccce0ba_rle_crop_3704013876_0.png.png imagette212509501741656602/1741656386_715681_1342771987_45da8143cc1c99f4b36805c204e21116_rle_crop_3704013966_0.png.png imagette212509501741656602/1741656493_352867_1342772352_b86e928403a462f559c0fd3da487e913_rle_crop_3704016673_0.png.png imagette212509501741656602/1741655993_347546_1342767587_dc00275a04115917e41743efeb5a057f_rle_crop_3703996903_0.png.png imagette212509501741656602/1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011895_0.png.png imagette212509501741656602/1741656371_351279_1342771857_0aeb669093cc5d5f5ff7e2a7622e4421_rle_crop_3704013820_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/88be5ebc2fadf5325c1b8cc99bbd8dc0_68154380.png imagette212509501741656602 21250952 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=21250952 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342772517: '1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011888_0.png', 1342772518: '1741656391_351560_1342771433_8e3b99d5b098927a4a6033909a9078d5_rle_crop_3704012085_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a6a675b53c266f998cd9584a06293844_84903402.png change filename to text .imagette212509521741656603/ imagette212509521741656603/1741656391_351560_1342771433_8e3b99d5b098927a4a6033909a9078d5_rle_crop_3704012085_0.png.png imagette212509521741656603/1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011888_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0d1d643cd0d5c6dd8e2d1447f16d8efb_40435221.png imagette212509521741656603 21250953 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=21250953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342772506: '1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011904_0.png', 1342773559: '1741656493_352867_1342772352_b86e928403a462f559c0fd3da487e913_rle_crop_3704016680_0.png', 1342773558: '1741656493_352867_1342772359_03c5b1b49d2f3aaa94a9f68b608a9b2f_rle_crop_3704016620_0.png', 1342773557: '1741656493_352867_1342772362_7052bb60fe81842292c0f20e7289c7a5_rle_crop_3704016599_0.png', 1342773556: '1741656493_352867_1342772365_e26df54681465a319b124a3098ffe9ef_rle_crop_3704016571_0.png', 1342773555: '1741656493_352867_1342772365_e26df54681465a319b124a3098ffe9ef_rle_crop_3704016561_0.png', 1342773554: '1741656493_352867_1342772442_803808a2a04b24ab6f049353c29ceed6_rle_crop_3704016521_0.png', 1342772683: '1741656430_352155_1342771002_00a81fd08aea619f20defc039d4ddb34_rle_crop_3704013497_0.png', 1342772540: '1741656386_715681_1342771715_68a144b2c9beac93810e6230c0d60150_rle_crop_3704012118_0.png', 1342772539: '1741656386_715681_1342771785_428821a36fd52d5c0e7f399f9dce7f06_rle_crop_3704011876_0.png', 1342772538: '1741656386_715681_1342771987_45da8143cc1c99f4b36805c204e21116_rle_crop_3704013972_0.png', 1342772508: '1741656391_351560_1342771433_8e3b99d5b098927a4a6033909a9078d5_bib_crop_3704012091_0.jpg', 1342772507: '1741656391_351560_1342771433_8e3b99d5b098927a4a6033909a9078d5_rle_crop_3704014167_0.png', 1342767831: '1741655853_344696_1342766827_a869665f740ea3a9b8767539696680d9_rle_crop_3703994765_0.png', 1342772462: '1741656371_351279_1342771853_386dc3cb58867564e4368f325ccce0ba_rle_crop_3704013879_0.png', 1342772461: '1741656371_351279_1342771857_0aeb669093cc5d5f5ff7e2a7622e4421_rle_crop_3704013824_0.png', 1342772460: '1741656371_351279_1342771918_41e4a4dec55dd33af471c61ddd269822_rle_crop_3704013730_0.png', 1342772459: '1741656371_351279_1342771918_41e4a4dec55dd33af471c61ddd269822_rle_crop_3704013721_0.png', 1342772394: '1741656332_350927_1342770948_e0c11365b00eea8b75426e5d1b91f7ae_rle_crop_3704013173_0.png', 1342770496: '1741656012_348016_1342767433_24563d1beb99bc8f6fa354435978ba70_rle_crop_3703999642_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/26c97a7758400d1694b6abce788fbdc7_15239549.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ca18167ef17b908607f4782428f397b8_33776999.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/33c779f864b9d2eedda21da9939296e3_19961816.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/81c184eaedf0aeb27294bdf376054c2e_46141855.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/aa0ba1a62bf18bdc2683dd1a23c1d7bc_97251268.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/85db8f9d55f8538ecbe6660c7580c81b_55448773.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b4025a7abf4b9a7b154257c8332fab9e_59211270.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/85ef702d9a779d36a731f9439f4eca08_24873523.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5b01221621b01c825e97d7f7de84baaf_68020365.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/baf87bb2a9cdc6a58141c441ff273f09_34346310.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a7e4cfa4b361f8768b26dcdd5726e495_11848106.png change filename to text .wget -O 12.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b85e88c0799518599cf4fed9b60c57e6_37489004.jpg change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c4e8e3d171bd287919078fb1e1d55297_96597525.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f02e54b6b60793db00efa4a864c4733f_36294004.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9c37be251e576ba67ccfef5ce3f82d26_63843117.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/db0de2d90aaee5d3b7f6670588a6ca60_81451807.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/515eee860cbd554e2e03cbabf368dfa2_60796583.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/75433730fadbc1657209999f31914150_31332487.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ccab9da2c83c8166e042d4f1fa218b86_45034882.png change filename to text .imagette212509531741656603/ imagette212509531741656603/1741656371_351279_1342771853_386dc3cb58867564e4368f325ccce0ba_rle_crop_3704013879_0.png.png imagette212509531741656603/1741656493_352867_1342772365_e26df54681465a319b124a3098ffe9ef_rle_crop_3704016561_0.png.png imagette212509531741656603/1741656371_351279_1342771918_41e4a4dec55dd33af471c61ddd269822_rle_crop_3704013721_0.png.png imagette212509531741656603/1741656391_351560_1342771433_8e3b99d5b098927a4a6033909a9078d5_bib_crop_3704012091_0.jpg.jpg imagette212509531741656603/1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011904_0.png.png imagette212509531741656603/1741656386_715681_1342771987_45da8143cc1c99f4b36805c204e21116_rle_crop_3704013972_0.png.png imagette212509531741656603/1741656332_350927_1342770948_e0c11365b00eea8b75426e5d1b91f7ae_rle_crop_3704013173_0.png.png imagette212509531741656603/1741656012_348016_1342767433_24563d1beb99bc8f6fa354435978ba70_rle_crop_3703999642_0.png.png imagette212509531741656603/1741656493_352867_1342772365_e26df54681465a319b124a3098ffe9ef_rle_crop_3704016571_0.png.png imagette212509531741656603/1741656493_352867_1342772362_7052bb60fe81842292c0f20e7289c7a5_rle_crop_3704016599_0.png.png imagette212509531741656603/1741656493_352867_1342772359_03c5b1b49d2f3aaa94a9f68b608a9b2f_rle_crop_3704016620_0.png.png imagette212509531741656603/1741656386_715681_1342771715_68a144b2c9beac93810e6230c0d60150_rle_crop_3704012118_0.png.png imagette212509531741656603/1741656371_351279_1342771918_41e4a4dec55dd33af471c61ddd269822_rle_crop_3704013730_0.png.png imagette212509531741656603/1741655853_344696_1342766827_a869665f740ea3a9b8767539696680d9_rle_crop_3703994765_0.png.png imagette212509531741656603/1741656493_352867_1342772352_b86e928403a462f559c0fd3da487e913_rle_crop_3704016680_0.png.png imagette212509531741656603/1741656430_352155_1342771002_00a81fd08aea619f20defc039d4ddb34_rle_crop_3704013497_0.png.png imagette212509531741656603/1741656371_351279_1342771857_0aeb669093cc5d5f5ff7e2a7622e4421_rle_crop_3704013824_0.png.png imagette212509531741656603/1741656386_715681_1342771785_428821a36fd52d5c0e7f399f9dce7f06_rle_crop_3704011876_0.png.png imagette212509531741656603/1741656493_352867_1342772442_803808a2a04b24ab6f049353c29ceed6_rle_crop_3704016521_0.png.png imagette212509531741656603/1741656391_351560_1342771433_8e3b99d5b098927a4a6033909a9078d5_rle_crop_3704014167_0.png.png imagette212509571741656604/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/301ebf17ec5d4bf4bfa2054af3f4fde7_73852800.png imagette212509531741656603 21250957 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=21250957 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212509571741656604 21250958 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=21250958 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342770601: '1741656012_348016_1342767433_24563d1beb99bc8f6fa354435978ba70_rle_crop_3703999641_0.png', 1342772515: '1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011900_0.png', 1342772715: '1741656430_352155_1342767873_6904292b305156bdd25c22fa33342c90_rle_crop_3704013503_0.png', 1342773566: '1741656493_352867_1342772442_803808a2a04b24ab6f049353c29ceed6_rle_crop_3704016519_0.png', 1342773567: '1741656493_352867_1342772365_e26df54681465a319b124a3098ffe9ef_rle_crop_3704016564_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/27f184c1e81e6041ebd4e9a736d14da1_44094796.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/fe9f24c9881876ab39b164602dc67a0e_89967551.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c255edccf6f808a5379c7ba9d5ca5ee4_27977755.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/00f229157575111b664379f52e6e27bd_16671135.png change filename to text .imagette212509581741656604/ imagette212509581741656604/1741656493_352867_1342772442_803808a2a04b24ab6f049353c29ceed6_rle_crop_3704016519_0.png.png imagette212509581741656604/1741656493_352867_1342772365_e26df54681465a319b124a3098ffe9ef_rle_crop_3704016564_0.png.png imagette212509581741656604/1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011900_0.png.png imagette212509581741656604/1741656430_352155_1342767873_6904292b305156bdd25c22fa33342c90_rle_crop_3704013503_0.png.png imagette212509581741656604/1741656012_348016_1342767433_24563d1beb99bc8f6fa354435978ba70_rle_crop_3703999641_0.png.png imagette212509591741656604/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7c89bba5bf138b7291fb0086d098ae83_3172267.png imagette212509581741656604 21250959 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=21250959 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212509591741656604 21250951 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=21250951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342770525: '1741656012_348016_1342767551_0282e5626d9639f508ee37f847670940_rle_crop_3703999565_0.png', 1342772396: '1741656332_350927_1342770948_e0c11365b00eea8b75426e5d1b91f7ae_rle_crop_3704013166_0.png', 1342772397: '1741656332_350927_1342770878_9a23fafaf6020caf196c5d2dbcfdf65b_rle_crop_3704013211_0.png', 1342772509: '1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011889_0.png', 1342772510: '1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011892_0.png', 1342772703: '1741656430_352155_1342771002_00a81fd08aea619f20defc039d4ddb34_rle_crop_3704013493_0.png', 1342772704: '1741656430_352155_1342771002_00a81fd08aea619f20defc039d4ddb34_rle_crop_3704013491_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/091f85b05280552bc4e5ec7feb7afc2e_85144366.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e86319200c02090321fa1b87dc3337c2_2232823.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/06dc620dcfcfb511b8ae33508d7fe3ed_22516264.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d7fdcfe7e93399e348c6e0b61ad1373c_60189807.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f57512b87cf6cb069edaae6cfc859827_30941686.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/570766d5678ca86c251ce06a5d6000ea_11951963.png change filename to text .imagette212509511741656604/ imagette212509511741656604/1741656012_348016_1342767551_0282e5626d9639f508ee37f847670940_rle_crop_3703999565_0.png.png imagette212509511741656604/1741656332_350927_1342770948_e0c11365b00eea8b75426e5d1b91f7ae_rle_crop_3704013166_0.png.png imagette212509511741656604/1741656332_350927_1342770878_9a23fafaf6020caf196c5d2dbcfdf65b_rle_crop_3704013211_0.png.png imagette212509511741656604/1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011892_0.png.png imagette212509511741656604/1741656430_352155_1342771002_00a81fd08aea619f20defc039d4ddb34_rle_crop_3704013493_0.png.png imagette212509511741656604/1741656430_352155_1342771002_00a81fd08aea619f20defc039d4ddb34_rle_crop_3704013491_0.png.png imagette212509511741656604/1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011889_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/de48b03c283e6836d92c5588a2e87ba2_40415848.png imagette212509511741656604 21250954 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=21250954 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342767803: '1741655853_344696_1342766769_b831f749d40ceb81f04162aef0c14051_rle_crop_3703994798_0.png', 1342770428: '1741656012_348016_1342767566_9b4093c803067e77bba37bf9624ec76e_rle_crop_3703999548_0.png', 1342770430: '1741656012_348016_1342767551_0282e5626d9639f508ee37f847670940_rle_crop_3703999566_0.png', 1342772392: '1741656332_350927_1342770909_f7c6febaa2c09a0c8875510dfdbb1d09_rle_crop_3704013203_0.png', 1342772393: '1741656332_350927_1342770878_9a23fafaf6020caf196c5d2dbcfdf65b_rle_crop_3704013214_0.png', 1342772534: '1741656386_715681_1342771987_45da8143cc1c99f4b36805c204e21116_rle_crop_3704013968_0.png', 1342772535: '1741656386_715681_1342771785_428821a36fd52d5c0e7f399f9dce7f06_rle_crop_3704011882_0.png', 1342772537: '1741656386_715681_1342771715_68a144b2c9beac93810e6230c0d60150_rle_crop_3704012113_0.png', 1342772670: '1741656430_352155_1342767873_6904292b305156bdd25c22fa33342c90_rle_crop_3704013510_0.png', 1342773502: '1741656493_352867_1342772442_803808a2a04b24ab6f049353c29ceed6_rle_crop_3704016517_0.png', 1342773505: '1741656493_352867_1342772365_e26df54681465a319b124a3098ffe9ef_rle_crop_3704016566_0.png', 1342773507: '1741656493_352867_1342772359_03c5b1b49d2f3aaa94a9f68b608a9b2f_rle_crop_3704016613_0.png', 1342773510: '1741656493_352867_1342772359_03c5b1b49d2f3aaa94a9f68b608a9b2f_rle_crop_3704016616_0.png', 1342773512: '1741656493_352867_1342772352_b86e928403a462f559c0fd3da487e913_rle_crop_3704016676_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/72428f98255406190b3c49c83ae653b0_83736605.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/318da61537ba9da3481af17c03ca8180_92428701.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d5bae270198f7cc37ef8a86db0288617_36624192.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d1d15928d36452778de93cc31cf7cdf8_73931598.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9a398dbbf28b9a79877553c8e490fd0f_63098554.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7dfe231269d8dc3489bda69a8e7942d5_520605.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c3a8e07c5ffa0c821c1636907c658683_1860172.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/923f2d38bad8224e5b0a88836e23588f_43109763.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/31f0fe419953732186703ee88cd77e0b_5132703.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0483944ddba3f6bb5274426c3ab62a73_18942293.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/57c273c6c05aec7326a3aefdbafe1c63_25175415.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/aca4e2a3fbe1d0826105544fada63207_44816771.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1f2d45d9354e1b9e81838503af778b21_65253807.png change filename to text .imagette212509541741656605/ imagette212509541741656605/1741656332_350927_1342770878_9a23fafaf6020caf196c5d2dbcfdf65b_rle_crop_3704013214_0.png.png imagette212509541741656605/1741656386_715681_1342771987_45da8143cc1c99f4b36805c204e21116_rle_crop_3704013968_0.png.png imagette212509541741656605/1741656493_352867_1342772442_803808a2a04b24ab6f049353c29ceed6_rle_crop_3704016517_0.png.png imagette212509541741656605/1741656493_352867_1342772365_e26df54681465a319b124a3098ffe9ef_rle_crop_3704016566_0.png.png imagette212509541741656605/1741656386_715681_1342771715_68a144b2c9beac93810e6230c0d60150_rle_crop_3704012113_0.png.png imagette212509541741656605/1741656493_352867_1342772359_03c5b1b49d2f3aaa94a9f68b608a9b2f_rle_crop_3704016616_0.png.png imagette212509541741656605/1741656332_350927_1342770909_f7c6febaa2c09a0c8875510dfdbb1d09_rle_crop_3704013203_0.png.png imagette212509541741656605/1741656012_348016_1342767566_9b4093c803067e77bba37bf9624ec76e_rle_crop_3703999548_0.png.png imagette212509541741656605/1741656012_348016_1342767551_0282e5626d9639f508ee37f847670940_rle_crop_3703999566_0.png.png imagette212509541741656605/1741656493_352867_1342772359_03c5b1b49d2f3aaa94a9f68b608a9b2f_rle_crop_3704016613_0.png.png imagette212509541741656605/1741656386_715681_1342771785_428821a36fd52d5c0e7f399f9dce7f06_rle_crop_3704011882_0.png.png imagette212509541741656605/1741656430_352155_1342767873_6904292b305156bdd25c22fa33342c90_rle_crop_3704013510_0.png.png imagette212509541741656605/1741656493_352867_1342772352_b86e928403a462f559c0fd3da487e913_rle_crop_3704016676_0.png.png imagette212509541741656605/1741655853_344696_1342766769_b831f749d40ceb81f04162aef0c14051_rle_crop_3703994798_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/345b5fb59af2e3b352e5d6df29a5da31_69944262.png imagette212509541741656605 21250960 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=21250960 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342770575: '1741656012_348016_1342767451_a9191b72f5d93724b4b06666e18993a4_rle_crop_3703999598_0.png', 1342772400: '1741656332_350927_1342770948_e0c11365b00eea8b75426e5d1b91f7ae_rle_crop_3704013171_0.png', 1342772469: '1741656371_351279_1342771918_41e4a4dec55dd33af471c61ddd269822_rle_crop_3704013725_0.png', 1342772470: '1741656371_351279_1342771857_0aeb669093cc5d5f5ff7e2a7622e4421_rle_crop_3704013823_0.png', 1342772471: '1741656371_351279_1342771853_386dc3cb58867564e4368f325ccce0ba_rle_crop_3704013878_0.png', 1342772514: '1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011898_0.png', 1342772554: '1741656386_715681_1342771987_45da8143cc1c99f4b36805c204e21116_rle_crop_3704013971_0.png', 1342772555: '1741656386_715681_1342771987_45da8143cc1c99f4b36805c204e21116_rle_crop_3704013967_0.png', 1342772556: '1741656386_715681_1342771748_17e9dd47ac78af71ca1c2747d40d4f91_rle_crop_3704012077_0.png', 1342772557: '1741656386_715681_1342771715_68a144b2c9beac93810e6230c0d60150_bib_crop_3704012120_0.jpg', 1342772558: '1741656386_715681_1342771715_68a144b2c9beac93810e6230c0d60150_rle_crop_3704014284_0.png', 1342773564: '1741656493_352867_1342772442_803808a2a04b24ab6f049353c29ceed6_rle_crop_3704016514_0.png', 1342773565: '1741656493_352867_1342772359_03c5b1b49d2f3aaa94a9f68b608a9b2f_rle_crop_3704016614_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/768b9c13787c79b3fc80bacf9a536e30_39297541.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/aca738169bd56038f5000dfaca2e615d_22172868.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bfe1f1849ec01298ae1b2777363427c7_11904082.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d2d7099fce020628539ff5a3d661a36b_84217749.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d2bd349f635da26a635fcf435bc4d1f6_60029107.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/74f57763cb172766a3aa928ce1ab49f9_92539548.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/30eab88ee255f9165b50b0137332ff78_73148093.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4cfe726f874d1e6f8f8697e0fdea1c3e_57641698.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/604add673ea8902c95f41dc5b67503e1_4203160.png change filename to text .wget -O 10.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ea33827aab2856d1ed8b09d42bf873de_26609085.jpg change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f02ec6dfddec26a5db33e9190f18b477_38128387.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6991939ce03fbe959b7b233d6be7b3bc_70710398.png change filename to text .imagette212509601741656606/ imagette212509601741656606/1741656371_351279_1342771857_0aeb669093cc5d5f5ff7e2a7622e4421_rle_crop_3704013823_0.png.png imagette212509601741656606/1741656386_715681_1342771987_45da8143cc1c99f4b36805c204e21116_rle_crop_3704013967_0.png.png imagette212509601741656606/1741656332_350927_1342770948_e0c11365b00eea8b75426e5d1b91f7ae_rle_crop_3704013171_0.png.png imagette212509601741656606/1741656493_352867_1342772359_03c5b1b49d2f3aaa94a9f68b608a9b2f_rle_crop_3704016614_0.png.png imagette212509601741656606/1741656391_351560_1342771821_b27b09111afee88bd3f4888bc6780c57_rle_crop_3704011898_0.png.png imagette212509601741656606/1741656386_715681_1342771987_45da8143cc1c99f4b36805c204e21116_rle_crop_3704013971_0.png.png imagette212509601741656606/1741656012_348016_1342767451_a9191b72f5d93724b4b06666e18993a4_rle_crop_3703999598_0.png.png imagette212509601741656606/1741656371_351279_1342771853_386dc3cb58867564e4368f325ccce0ba_rle_crop_3704013878_0.png.png imagette212509601741656606/1741656386_715681_1342771748_17e9dd47ac78af71ca1c2747d40d4f91_rle_crop_3704012077_0.png.png imagette212509601741656606/1741656386_715681_1342771715_68a144b2c9beac93810e6230c0d60150_rle_crop_3704014284_0.png.png imagette212509601741656606/1741656386_715681_1342771715_68a144b2c9beac93810e6230c0d60150_bib_crop_3704012120_0.jpg.jpg imagette212509601741656606/1741656493_352867_1342772442_803808a2a04b24ab6f049353c29ceed6_rle_crop_3704016514_0.png.png imagette212509601741656606/1741656371_351279_1342771918_41e4a4dec55dd33af471c61ddd269822_rle_crop_3704013725_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d685020d35c2263edeec6c1dd0868e7b_70131326.png imagette212509601741656606 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21250930 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21250961,21250962,21250963,21250964,21250965,21250966,21250967,21250968,21250969,21250970,21250971,21250972?tags=metal,cartonnette,Carton_gris,kraft,autre_refus,Teint_Dans_La_Masse,papier,environnement,flou,plastique,mal_croppe,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1342772442] : ('0.07116648058620526',) no score found for photo 1342772442 We are sending mail with results at report@fotonower.com args[1342772424] : ('0.07116648058620526',) no score found for photo 1342772424 We are sending mail with results at report@fotonower.com args[1342772368] : ('0.07116648058620526',) no score found for photo 1342772368 We are sending mail with results at report@fotonower.com args[1342772365] : ('0.07116648058620526',) no score found for photo 1342772365 We are sending mail with results at report@fotonower.com args[1342772362] : ('0.07116648058620526',) no score found for photo 1342772362 We are sending mail with results at report@fotonower.com args[1342772359] : ('0.07116648058620526',) no score found for photo 1342772359 We are sending mail with results at report@fotonower.com args[1342772352] : ('0.07116648058620526',) no score found for photo 1342772352 We are sending mail with results at report@fotonower.com args[1342771987] : ('0.07116648058620526',) no score found for photo 1342771987 We are sending mail with results at report@fotonower.com args[1342771918] : ('0.07116648058620526',) no score found for photo 1342771918 We are sending mail with results at report@fotonower.com args[1342771857] : ('0.07116648058620526',) no score found for photo 1342771857 We are sending mail with results at report@fotonower.com args[1342771853] : ('0.07116648058620526',) no score found for photo 1342771853 We are sending mail with results at report@fotonower.com args[1342771821] : ('0.07116648058620526',) no score found for photo 1342771821 We are sending mail with results at report@fotonower.com args[1342771785] : ('0.07116648058620526',) no score found for photo 1342771785 We are sending mail with results at report@fotonower.com args[1342771748] : ('0.07116648058620526',) no score found for photo 1342771748 We are sending mail with results at report@fotonower.com args[1342771715] : ('0.07116648058620526',) no score found for photo 1342771715 We are sending mail with results at report@fotonower.com refus_total : 0.07116648058620526 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=21250930 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_P21250930_11-03-2025_02_30_02.pdf results_Auto_P21250930_11-03-2025_02_30_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250930_11-03-2025_02_30_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21250930','results_Auto_P21250930_11-03-2025_02_30_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250930_11-03-2025_02_30_02.pdf','pdf','','0.34','0.07116648058620526') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21250930]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715] map_info['map_portfolio_photo'] : {21250930: [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715, 1342771471, 1342771433, 1342771002, 1342770948, 1342770909, 1342770878, 1342767950, 1342767873, 1342767587, 1342767566, 1342767551, 1342767451, 1342767433, 1342766868, 1342766827, 1342766769]} final : False mtd_id 4302 list_pids : [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715] 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, '2656319') ('4302', '21250930', '1342772442', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772424', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772368', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772365', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772362', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772359', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772352', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771987', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771918', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771857', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771853', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771821', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771785', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771748', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771715', None, None, None, None, None, '2656319') 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', '21250930', '1342772442', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772424', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772368', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772365', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772362', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772359', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772352', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771987', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771918', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771857', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771853', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771821', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771785', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771748', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771715', None, None, None, None, None, '2656319')] time used for this insertion : 0.016121625900268555 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.174703598022461 time spend to save output : 0.016397714614868164 total time spend for step 4 : 7.191101312637329 step5:split_time_score Tue Mar 11 02:30:09 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 : ['21250930'] 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 : [('21250930',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21250930) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342772368: {'path': 'temp/1741656602_2337433_1342772368_87dc601e72a4836d98f8bc3cd7120b16.jpg', 'extension': 'jpg'}, 1342772424: {'path': 'temp/1741656602_2337433_1342772424_4cdacd568f0ad6573a8c5c590c206854.jpg', 'extension': 'jpg'}, 1342772442: {'path': 'temp/1741656602_2337433_1342772442_803808a2a04b24ab6f049353c29ceed6.jpg', 'extension': 'jpg'}, 1342772352: {'path': 'temp/1741656602_2337433_1342772352_b86e928403a462f559c0fd3da487e913.jpg', 'extension': 'jpg'}, 1342772359: {'path': 'temp/1741656602_2337433_1342772359_03c5b1b49d2f3aaa94a9f68b608a9b2f.jpg', 'extension': 'jpg'}, 1342772362: {'path': 'temp/1741656602_2337433_1342772362_7052bb60fe81842292c0f20e7289c7a5.jpg', 'extension': 'jpg'}, 1342772365: {'path': 'temp/1741656602_2337433_1342772365_e26df54681465a319b124a3098ffe9ef.jpg', 'extension': 'jpg'}, 1342771715: {'path': 'temp/1741656602_2337433_1342771715_68a144b2c9beac93810e6230c0d60150.jpg', 'extension': 'jpg'}, 1342771748: {'path': 'temp/1741656602_2337433_1342771748_17e9dd47ac78af71ca1c2747d40d4f91.jpg', 'extension': 'jpg'}, 1342771785: {'path': 'temp/1741656602_2337433_1342771785_428821a36fd52d5c0e7f399f9dce7f06.jpg', 'extension': 'jpg'}, 1342771821: {'path': 'temp/1741656602_2337433_1342771821_b27b09111afee88bd3f4888bc6780c57.jpg', 'extension': 'jpg'}, 1342771853: {'path': 'temp/1741656602_2337433_1342771853_386dc3cb58867564e4368f325ccce0ba.jpg', 'extension': 'jpg'}, 1342771857: {'path': 'temp/1741656602_2337433_1342771857_0aeb669093cc5d5f5ff7e2a7622e4421.jpg', 'extension': 'jpg'}, 1342771918: {'path': 'temp/1741656602_2337433_1342771918_41e4a4dec55dd33af471c61ddd269822.jpg', 'extension': 'jpg'}, 1342771987: {'path': 'temp/1741656602_2337433_1342771987_45da8143cc1c99f4b36805c204e21116.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 = 21250930; (('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 = 21250930 group by h (('02', 31),) 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=21250930 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 (21250930) 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 (21250930) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21250930 Nombre de photos uploadées : 31 / 23040 (0%) 11032025 21250930 Nombre de photos taguées (types de déchets): 0 / 31 (0%) 11032025 21250930 Nombre de photos taguées (volume) : 0 / 31 (0%) [{'photo_id': 1342766868, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/35b747c17094ccd1ced3669cf7480b40.jpg', 'username': None, 'uploaded_at': 1741655797, 'text': 'image_11032025_02_15_24_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342766827, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a869665f740ea3a9b8767539696680d9.jpg', 'username': None, 'uploaded_at': 1741655797, 'text': 'image_11032025_02_15_34_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342766769, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b831f749d40ceb81f04162aef0c14051.jpg', 'username': None, 'uploaded_at': 1741655797, 'text': 'image_11032025_02_15_43_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1342767587, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/dc00275a04115917e41743efeb5a057f.jpg', 'username': None, 'uploaded_at': 1741655857, 'text': 'image_11032025_02_15_53_010139m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.0067901611328125e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ??????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001074075698852539 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21250930, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022897720336914062 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664524, 'mtr_portfolio_id': 21249450, 'dashboard_result_id': 9328226, '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_P21249450_11-03-2025_01_50_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249457, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249463, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664524, 'mtr_portfolio_id': 21249839, 'dashboard_result_id': 9328227, '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_P21249839_11-03-2025_01_57_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249864, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664524, 'mtr_portfolio_id': 21250319, 'dashboard_result_id': 9328228, '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_P21250319_11-03-2025_02_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21250338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21250348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250349, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664524, 'mtr_portfolio_id': 21250930, 'dashboard_result_id': 9328229, '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_P21250930_11-03-2025_02_25_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21250949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21250955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250960, '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 = 21249450 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': 2656223, 'mtr_portfolio_id': 21249450, 'created_at': datetime.datetime(2025, 3, 11, 1, 50, 1), 'result': '0.10333295543183622', 'result_long': None, 'result_double': None}] Qualite : 0.10333295543183622 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21249450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21249450_11-03-2025_01_50_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21249450 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_P21249450_11-03-2025_01_50_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249457, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249463, 'pht': 3726}}" where mtr_portfolio_id = 21249450 and dashboard_run_id = 1664524 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`=21249450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328226, 0.10333295543183622, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21249450_11-03-2025_01_50_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249453, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249456, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249457, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249458, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249463, '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 = 21249839 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': 2656255, 'mtr_portfolio_id': 21249839, 'created_at': datetime.datetime(2025, 3, 11, 1, 56, 59), 'result': '0.07871469110083705', 'result_long': None, 'result_double': None}] Qualite : 0.07871469110083705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21249839 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21249839_11-03-2025_01_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21249839 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_P21249839_11-03-2025_01_57_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249864, 'pht': 3726}}" where mtr_portfolio_id = 21249839 and dashboard_run_id = 1664524 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`=21249839 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328227, 0.07871469110083705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21249839_11-03-2025_01_57_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249864, '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 = 21250319 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': 2656280, 'mtr_portfolio_id': 21250319, 'created_at': datetime.datetime(2025, 3, 11, 2, 19, 59), 'result': '0.06455545040092278', 'result_long': None, 'result_double': None}] Qualite : 0.06455545040092278 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21250319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250319_11-03-2025_02_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21250319 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_P21250319_11-03-2025_02_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21250338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21250348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250349, 'pht': 3726}}" where mtr_portfolio_id = 21250319 and dashboard_run_id = 1664524 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`=21250319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328228, 0.06455545040092278, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250319_11-03-2025_02_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21250338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21250348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250349, '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 = 21250930 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': 2656319, 'mtr_portfolio_id': 21250930, 'created_at': datetime.datetime(2025, 3, 11, 2, 30, 1), 'result': '0.07116648058620526', 'result_long': None, 'result_double': None}] Qualite : 0.07116648058620526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21250930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250930_11-03-2025_02_30_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21250930 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_P21250930_11-03-2025_02_30_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21250949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21250955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250960, 'pht': 3726}}" where mtr_portfolio_id = 21250930 and dashboard_run_id = 1664524 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`=21250930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328229, 0.07116648058620526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250930_11-03-2025_02_30_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21250949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21250955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250960, '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 (21249450,21249839,21250319,21250930) result : ((1342752394,), (1342753269,), (1342753572,), (1342753788,), (1342753799,), (1342754291,), (1342754354,), (1342754428,), (1342754622,), (1342754629,), (1342754640,), (1342754644,), (1342755364,), (1342755447,), (1342756861,), (1342756812,), (1342758777,), (1342758875,), (1342759286,), (1342759591,), (1342759605,), (1342759626,), (1342759843,), (1342759848,), (1342759872,), (1342759875,), (1342759877,), (1342759947,), (1342759964,), (1342759990,), (1342760021,), (1342760618,), (1342760708,), (1342760787,), (1342760831,), (1342760855,), (1342761104,), (1342761126,), (1342761145,), (1342761161,), (1342761166,), (1342761557,), (1342761585,), (1342761595,), (1342761611,), (1342761631,), (1342761651,), (1342761826,), (1342761812,), (1342761814,), (1342761822,), (1342761824,), (1342762146,), (1342762203,), (1342762213,), (1342762248,), (1342762323,), (1342762347,), (1342762357,), (1342762367,), (1342762389,), (1342762463,), (1342762510,), (1342762551,), (1342762617,), (1342762677,), (1342762952,), (1342762956,), (1342762959,), (1342762977,), (1342762983,), (1342763007,), (1342763013,), (1342763019,), (1342763022,), (1342763026,), (1342763028,), (1342763071,), (1342763099,), (1342763131,), (1342763154,), (1342763747,), (1342763818,), (1342763831,), (1342763853,), (1342764042,), (1342764082,), (1342764108,), (1342764131,), (1342764155,), (1342764214,), (1342764246,), (1342764318,), (1342764378,), (1342764415,), (1342764566,), (1342764567,), (1342764570,), (1342764589,), (1342764605,), (1342764611,), (1342764618,), (1342764622,), (1342764624,), (1342764808,), (1342764828,), (1342764882,), (1342764899,), (1342764938,), (1342765446,), (1342765515,), (1342765561,), (1342766190,), (1342766262,), (1342766959,), (1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 31, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21250930]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715] map_info['map_portfolio_photo'] : {21250930: [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715, 1342771471, 1342771433, 1342771002, 1342770948, 1342770909, 1342770878, 1342767950, 1342767873, 1342767587, 1342767566, 1342767551, 1342767451, 1342767433, 1342766868, 1342766827, 1342766769]} final : True mtd_id 4302 list_pids : [1342772442, 1342772424, 1342772368, 1342772365, 1342772362, 1342772359, 1342772352, 1342771987, 1342771918, 1342771857, 1342771853, 1342771821, 1342771785, 1342771748, 1342771715] Looping around the photos to save general results len do output : 1 /21250930Didn'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, '2656319') ('4302', '21250930', '1342772442', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772424', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772368', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772365', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772362', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772359', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342772352', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771987', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771918', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771857', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771853', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771821', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771785', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771748', None, None, None, None, None, '2656319') ('4302', None, None, None, None, None, None, None, '2656319') ('4302', '21250930', '1342771715', None, None, None, None, None, '2656319') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21250930', 'None', None, None, None, None, '2656319'), ('4302', '21250930', '1342772442', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772424', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772368', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772365', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772362', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772359', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342772352', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771987', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771918', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771857', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771853', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771821', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771785', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771748', None, None, None, None, None, '2656319'), ('4302', '21250930', '1342771715', None, None, None, None, None, '2656319')] time used for this insertion : 0.015441656112670898 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34706926345825195 time spend to save output : 0.015883684158325195 total time spend for step 5 : 0.36295294761657715 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 (2656319) 2.48user 2.21system 0:13.96elapsed 33%CPU (0avgtext+0avgdata 160364maxresident)k 58328inputs+19480outputs (240major+74867minor)pagefaults 0swaps