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 : 1434458 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 (2757938) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2757938) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387635 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2757938'] with mtr_portfolio_ids : ['22387635'] and first list_photo_ids : [] new path : /proc/1434458/ Name: python3 Umask: 0002 State: R (running) Tgid: 1434458 Ngid: 0 Pid: 1434458 PPid: 1434457 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1434458 NSpid: 1434458 NSpgid: 1432754 NSsid: 1432754 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97612 kB VmRSS: 97612 kB RssAnon: 59776 kB RssFile: 37836 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 52 nonvoluntary_ctxt_switches: 141 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1434458', 'Ngid': '0', 'Pid': '1434458', 'PPid': '1434457', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1434458', 'NSpid': '1434458', 'NSpgid': '1432754', 'NSsid': '1432754', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97612 kB', 'VmRSS': '97612 kB', 'RssAnon': '59776 kB', 'RssFile': '37836 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '52', 'nonvoluntary_ctxt_switches': '141'} ('datou_batch_current', '1434458', '1106936', '0', '1106936', '865684', '97612', b'', 'marlene', '2757938') 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 (22387635) 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 (2757938 ) ) 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 (22387635) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353401824, 'portfolio_id': 22387635}, {'photo_id': 1353401821, 'portfolio_id': 22387635}, {'photo_id': 1353401816, 'portfolio_id': 22387635}, {'photo_id': 1353401811, 'portfolio_id': 22387635}, {'photo_id': 1353401771, 'portfolio_id': 22387635}, {'photo_id': 1353401768, 'portfolio_id': 22387635}, {'photo_id': 1353401765, 'portfolio_id': 22387635}, {'photo_id': 1353401749, 'portfolio_id': 22387635}, {'photo_id': 1353401712, 'portfolio_id': 22387635}, {'photo_id': 1353401701, 'portfolio_id': 22387635}, {'photo_id': 1353401697, 'portfolio_id': 22387635}, {'photo_id': 1353401692, 'portfolio_id': 22387635}, {'photo_id': 1353401690, 'portfolio_id': 22387635}, {'photo_id': 1353401687, 'portfolio_id': 22387635}, {'photo_id': 1353401648, 'portfolio_id': 22387635}, {'photo_id': 1353401615, 'portfolio_id': 22387635}, {'photo_id': 1353401604, 'portfolio_id': 22387635}, {'photo_id': 1353401601, 'portfolio_id': 22387635}, {'photo_id': 1353401493, 'portfolio_id': 22387635}, {'photo_id': 1353401489, 'portfolio_id': 22387635}, {'photo_id': 1353401485, 'portfolio_id': 22387635}, {'photo_id': 1353401482, 'portfolio_id': 22387635}, {'photo_id': 1353401479, 'portfolio_id': 22387635}, {'photo_id': 1353401476, 'portfolio_id': 22387635}, {'photo_id': 1353401430, 'portfolio_id': 22387635}, {'photo_id': 1353401424, 'portfolio_id': 22387635}, {'photo_id': 1353401419, 'portfolio_id': 22387635}, {'photo_id': 1353401415, 'portfolio_id': 22387635}, {'photo_id': 1353401372, 'portfolio_id': 22387635}, {'photo_id': 1353401369, 'portfolio_id': 22387635}, {'photo_id': 1353401365, 'portfolio_id': 22387635}, {'photo_id': 1353401360, 'portfolio_id': 22387635}, {'photo_id': 1353401325, 'portfolio_id': 22387635}, {'photo_id': 1353401321, 'portfolio_id': 22387635}, {'photo_id': 1353401319, 'portfolio_id': 22387635}] map_portfolio_id_photo_id: {22387635: [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687, 1353401648, 1353401615, 1353401604, 1353401601, 1353401493, 1353401489, 1353401485, 1353401482, 1353401479, 1353401476, 1353401430, 1353401424, 1353401419, 1353401415, 1353401372, 1353401369, 1353401365, 1353401360, 1353401325, 1353401321, 1353401319]} ##### 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.01609492301940918 #### 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 Thu Apr 24 16:24:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22387635) 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 : 22387635 get user id for portfolio 22387635 get sub ptf for main ptf 22387635, type 3726 and hashtags ['papier', 'cartonnette', 'Carton_gris', 'autre_refus', 'kraft', 'metal', 'flou', 'Carton_brun', 'mal_croppe', 'plastique', 'Teint_Dans_La_Masse', 'environnement'] 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`=22387635 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_gris','autre_refus','kraft','metal','flou','Carton_brun','mal_croppe','plastique','Teint_Dans_La_Masse','environnement')) 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`=22387635 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_gris','autre_refus','kraft','metal','flou','Carton_brun','mal_croppe','plastique','Teint_Dans_La_Masse','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22387635, 'sub_port_id': 22387662, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838245, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}, 'flou': {'main_port_id': 22387635, 'sub_port_id': 22387663, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838246, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}, 'Carton_gris': {'main_port_id': 22387635, 'sub_port_id': 22387664, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838247, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}, 'cartonnette': {'main_port_id': 22387635, 'sub_port_id': 22387665, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838248, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22387635, 'sub_port_id': 22387666, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838249, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}, 'papier': {'main_port_id': 22387635, 'sub_port_id': 22387667, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838250, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}, 'Carton_brun': {'main_port_id': 22387635, 'sub_port_id': 22387668, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838251, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}, 'kraft': {'main_port_id': 22387635, 'sub_port_id': 22387669, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838252, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}, 'mal_croppe': {'main_port_id': 22387635, 'sub_port_id': 22387670, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838253, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}, 'plastique': {'main_port_id': 22387635, 'sub_port_id': 22387671, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838254, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}, 'metal': {'main_port_id': 22387635, 'sub_port_id': 22387672, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838255, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}, 'autre_refus': {'main_port_id': 22387635, 'sub_port_id': 22387673, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838256, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22387662 , 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=22387635 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 (22387662) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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 22387663 , 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=22387635 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 (22387663) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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 22387664 , 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=22387635 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 (22387664) result : ((1353401673,), (1353401674,), (1353401744,), (1353401745,), (1353401753,), (1353401785,), (1353401882,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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 22387665 , 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=22387635 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 (22387665) result : ((1353401560,), (1353401561,), (1353401677,), (1353401678,), (1353401750,), (1353401751,), (1353401760,), (1353401884,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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 22387666 , 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=22387635 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 (22387666) result : ((1353401400,), (1353401401,), (1353401402,), (1353401541,), (1353401741,), (1353401784,), (1353401845,), (1353401846,), (1353401847,), (1353401848,), (1353401849,), (1353401850,), (1353401851,), (1353401876,), (1353401877,), (1353401878,), (1353401879,), (1353401880,), (1353401881,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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 22387667 , 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=22387635 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 (22387667) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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 22387668 , 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=22387635 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 (22387668) result : ((1353401404,), (1353401405,), (1353401567,), (1353401569,), (1353401571,), (1353401592,), (1353401679,), (1353401754,), (1353401755,), (1353401756,), (1353401757,), (1353401758,), (1353401759,), (1353401786,), (1353401852,), (1353401853,), (1353401887,), (1353401888,), (1353401889,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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 22387669 , 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=22387635 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 (22387669) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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 22387670 , 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=22387635 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 (22387670) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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 22387671 , 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=22387635 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 (22387671) result : ((1353401407,), (1353401408,), (1353401409,), (1353401574,), (1353401680,), (1353401681,), (1353401761,), (1353401762,), (1353401763,), (1353401764,), (1353401791,), (1353401792,), (1353401892,), (1353401894,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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 22387672 , 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=22387635 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 (22387672) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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 22387673 , 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=22387635 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 (22387673) result : ((1353401403,), (1353401558,), (1353401559,), (1353401671,), (1353401672,), (1353401743,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22387635) result : ((1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) 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`=22387635 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_gris','autre_refus','kraft','metal','flou','Carton_brun','mal_croppe','plastique','Teint_Dans_La_Masse','environnement')) 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`=22387635 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','Carton_gris','autre_refus','kraft','metal','flou','Carton_brun','mal_croppe','plastique','Teint_Dans_La_Masse','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22387635, 'sub_port_id': 22387674, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838257, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}, 'flou': {'main_port_id': 22387635, 'sub_port_id': 22387675, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838258, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}, 'Carton_gris': {'main_port_id': 22387635, 'sub_port_id': 22387676, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838259, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}, 'cartonnette': {'main_port_id': 22387635, 'sub_port_id': 22387677, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838260, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22387635, 'sub_port_id': 22387678, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838261, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}, 'papier': {'main_port_id': 22387635, 'sub_port_id': 22387679, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838262, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}, 'Carton_brun': {'main_port_id': 22387635, 'sub_port_id': 22387680, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838263, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}, 'kraft': {'main_port_id': 22387635, 'sub_port_id': 22387681, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838264, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}, 'mal_croppe': {'main_port_id': 22387635, 'sub_port_id': 22387682, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838265, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}, 'plastique': {'main_port_id': 22387635, 'sub_port_id': 22387683, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838266, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}, 'metal': {'main_port_id': 22387635, 'sub_port_id': 22387684, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838267, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}, 'autre_refus': {'main_port_id': 22387635, 'sub_port_id': 22387685, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14838268, 'last_updated_at': datetime.datetime(2025, 4, 24, 16, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 16, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 16, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387674,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387662 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387663 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22387685,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22387673 lien utilise dans velours : https://www.fotonower.com/velours/22387674,22387675,22387676,22387677,22387678,22387679,22387680,22387681,22387682,22387683,22387684,22387685?tags=environnement,flou,Carton_gris,cartonnette,Teint_Dans_La_Masse,papier,Carton_brun,kraft,mal_croppe,plastique,metal,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22387635]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687] map_info['map_portfolio_photo'] : {22387635: [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687, 1353401648, 1353401615, 1353401604, 1353401601, 1353401493, 1353401489, 1353401485, 1353401482, 1353401479, 1353401476, 1353401430, 1353401424, 1353401419, 1353401415, 1353401372, 1353401369, 1353401365, 1353401360, 1353401325, 1353401321, 1353401319]} final : False mtd_id 4302 list_pids : [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687] Looping around the photos to save general results len do output : 1 /22387635. 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, '2757938') ('4302', '22387635', '1353401824', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401821', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401816', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401811', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401771', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401768', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401765', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401749', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401712', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401701', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401697', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401692', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401690', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401687', None, None, None, None, None, '2757938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22387635', "{'environnement': 22387662, 'flou': 22387663, 'Carton_gris': 22387664, 'cartonnette': 22387665, 'Teint_Dans_La_Masse': 22387666, 'papier': 22387667, 'Carton_brun': 22387668, 'kraft': 22387669, 'mal_croppe': 22387670, 'plastique': 22387671, 'metal': 22387672, 'autre_refus': 22387673}", None, None, None, None, '2757938'), ('4302', '22387635', '1353401824', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401821', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401816', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401811', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401771', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401768', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401765', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401749', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401712', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401701', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401697', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401692', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401690', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401687', None, None, None, None, None, '2757938')] time used for this insertion : 0.0149688720703125 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5128350257873535 time spend to save output : 0.015344619750976562 total time spend for step 1 : 1.52817964553833 step2:final Thu Apr 24 16:24:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22387635) 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 22387635 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353401325,1353401321,1353401319,1353401372,1353401369,1353401365,1353401360,1353401430,1353401424,1353401419,1353401415,1353401493,1353401489,1353401485,1353401482,1353401479,1353401476,1353401648,1353401615,1353401604,1353401601,1353401712,1353401701,1353401697,1353401692,1353401690,1353401687,1353401771,1353401768,1353401765,1353401749,1353401824,1353401821,1353401816,1353401811); 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([22387635]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} new output for save of step final : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687] map_info['map_portfolio_photo'] : {22387635: [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687, 1353401648, 1353401615, 1353401604, 1353401601, 1353401493, 1353401489, 1353401485, 1353401482, 1353401479, 1353401476, 1353401430, 1353401424, 1353401419, 1353401415, 1353401372, 1353401369, 1353401365, 1353401360, 1353401325, 1353401321, 1353401319]} final : False mtd_id 4302 list_pids : [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687] Looping around the photos to save general results len do output : 14 /1353401824.Didn't retrieve data . /1353401821.Didn't retrieve data . /1353401816.Didn't retrieve data . /1353401811.Didn't retrieve data . /1353401771.Didn't retrieve data . /1353401768.Didn't retrieve data . /1353401765.Didn't retrieve data . /1353401749.Didn't retrieve data . /1353401712.Didn't retrieve data . /1353401701.Didn't retrieve data . /1353401697.Didn't retrieve data . /1353401692.Didn't retrieve data . /1353401690.Didn't retrieve data . /1353401687.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, '2757938') ('4302', '22387635', '1353401824', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401821', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401816', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401811', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401771', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401768', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401765', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401749', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401712', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401701', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401697', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401692', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401690', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401687', None, None, None, None, None, '2757938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22387635', '1353401824', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401821', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401816', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401811', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401771', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401768', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401765', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401749', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401712', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401701', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401697', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401692', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401690', '0.07648481816068362', None, None, None, None, '2757938'), ('4302', '22387635', '1353401687', '0.07648481816068362', None, None, None, None, '2757938')] time used for this insertion : 0.016309261322021484 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0740056037902832 time spend to save output : 0.017058134078979492 total time spend for step 2 : 0.0910637378692627 step3:velours_tree Thu Apr 24 16:24:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22387635: [{'environnement': 22387662, 'flou': 22387663, 'Carton_gris': 22387664, 'cartonnette': 22387665, 'Teint_Dans_La_Masse': 22387666, 'papier': 22387667, 'Carton_brun': 22387668, 'kraft': 22387669, 'mal_croppe': 22387670, 'plastique': 22387671, 'metal': 22387672, 'autre_refus': 22387673}]} input_args_next_step : {22387635: ()} output_args : {22387635: [{'environnement': 22387662, 'flou': 22387663, 'Carton_gris': 22387664, 'cartonnette': 22387665, 'Teint_Dans_La_Masse': 22387666, 'papier': 22387667, 'Carton_brun': 22387668, 'kraft': 22387669, 'mal_croppe': 22387670, 'plastique': 22387671, 'metal': 22387672, 'autre_refus': 22387673}]} args : 22387635 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 : ({'environnement': 22387662, 'flou': 22387663, 'Carton_gris': 22387664, 'cartonnette': 22387665, 'Teint_Dans_La_Masse': 22387666, 'papier': 22387667, 'Carton_brun': 22387668, 'kraft': 22387669, 'mal_croppe': 22387670, 'plastique': 22387671, 'metal': 22387672, 'autre_refus': 22387673},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22387635) 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([22387635]) 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.3165600299835205 time spend to save output : 5.9604644775390625e-05 total time spend for step 3 : 0.3166196346282959 step4:send_mail_cod Thu Apr 24 16:24:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} input_args_next_step : {1353401824: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401824 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401821 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401816 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401811 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401771 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401768 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401765 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401749 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401712 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401701 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401697 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401692 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401690 depend.output_id : 0 input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ()} output_args : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',)} args : 1353401687 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 : {22387635: [{'environnement': 22387662, 'flou': 22387663, 'Carton_gris': 22387664, 'cartonnette': 22387665, 'Teint_Dans_La_Masse': 22387666, 'papier': 22387667, 'Carton_brun': 22387668, 'kraft': 22387669, 'mal_croppe': 22387670, 'plastique': 22387671, 'metal': 22387672, 'autre_refus': 22387673}]} input_args_next_step : {1353401824: ('0.07648481816068362',), 1353401821: ('0.07648481816068362',), 1353401816: ('0.07648481816068362',), 1353401811: ('0.07648481816068362',), 1353401771: ('0.07648481816068362',), 1353401768: ('0.07648481816068362',), 1353401765: ('0.07648481816068362',), 1353401749: ('0.07648481816068362',), 1353401712: ('0.07648481816068362',), 1353401701: ('0.07648481816068362',), 1353401697: ('0.07648481816068362',), 1353401692: ('0.07648481816068362',), 1353401690: ('0.07648481816068362',), 1353401687: ('0.07648481816068362',), 22387635: ()} output_args : {22387635: [{'environnement': 22387662, 'flou': 22387663, 'Carton_gris': 22387664, 'cartonnette': 22387665, 'Teint_Dans_La_Masse': 22387666, 'papier': 22387667, 'Carton_brun': 22387668, 'kraft': 22387669, 'mal_croppe': 22387670, 'plastique': 22387671, 'metal': 22387672, 'autre_refus': 22387673}]} args : 22387635 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.07648481816068362',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22387635) 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 (1353401824,1353401821,1353401816,1353401811,1353401771,1353401768,1353401765,1353401749,1353401712,1353401701,1353401697,1353401692,1353401690,1353401687) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353401687 begin to download photo : 1353401697 begin to download photo : 1353401749 begin to download photo : 1353401771 begin to download photo : 1353401821 download finish for photo 1353401687 begin to download photo : 1353401690 download finish for photo 1353401771 begin to download photo : 1353401811 download finish for photo 1353401821 begin to download photo : 1353401824 download finish for photo 1353401697 begin to download photo : 1353401701 download finish for photo 1353401749 begin to download photo : 1353401765 download finish for photo 1353401824 download finish for photo 1353401811 begin to download photo : 1353401816 download finish for photo 1353401690 begin to download photo : 1353401692 download finish for photo 1353401701 begin to download photo : 1353401712 download finish for photo 1353401765 begin to download photo : 1353401768 download finish for photo 1353401712 download finish for photo 1353401692 download finish for photo 1353401768 download finish for photo 1353401816 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette223876631745504671/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22387635_24-04-2025_16_24_31.pdf 22387663 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=22387663 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223876631745504671 22387665 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=22387665 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353401560: '1745504353_1025963_1353401424_e66c6524c5885f80cc3c35c071d986a5_rle_crop_3767637562_0.png', 1353401561: '1745504353_1025963_1353401415_f81f22a1d1cf9b0d4c57d12eca78cbf8_rle_crop_3767637597_0.png', 1353401677: '1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639083_0.png', 1353401678: '1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639085_0.png', 1353401750: '1745504473_1027338_1353401489_1a196bca7144b8ecc8ec47508d01b7fa_rle_crop_3767639643_0.png', 1353401751: '1745504473_1027338_1353401489_1a196bca7144b8ecc8ec47508d01b7fa_rle_crop_3767639645_0.png', 1353401760: '1745504507_154571_1353401615_faa0cfca717ead33b6a456d7c479f570_rle_crop_3767639777_0.png', 1353401884: '1745504621_158089_1353401690_91af1f8e371e857a1ab8ae19298e80c6_rle_crop_3767640295_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8b94897168614e326a89e1bbcb5f7ffe_86922768.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/02c992c87d8b8ddd40938af7f0b161ec_87718118.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c5e4c52aa738b8718923b4c4319b9dab_66713927.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0dc7d7b63d834f4480981a180d295f27_44322339.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7dc03d9e1dc5a8330c2d4157d7fb716d_64690274.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4a3c56b3d3022fe39a687f3d5dc000a9_68856504.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/d2514c1bd52f70e07a07cbf1361f0729_32275007.png change filename to text .imagette223876651745504671/ imagette223876651745504671/1745504507_154571_1353401615_faa0cfca717ead33b6a456d7c479f570_rle_crop_3767639777_0.png.png imagette223876651745504671/1745504353_1025963_1353401424_e66c6524c5885f80cc3c35c071d986a5_rle_crop_3767637562_0.png.png imagette223876651745504671/1745504473_1027338_1353401489_1a196bca7144b8ecc8ec47508d01b7fa_rle_crop_3767639643_0.png.png imagette223876651745504671/1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639083_0.png.png imagette223876651745504671/1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639085_0.png.png imagette223876651745504671/1745504353_1025963_1353401415_f81f22a1d1cf9b0d4c57d12eca78cbf8_rle_crop_3767637597_0.png.png imagette223876651745504671/1745504621_158089_1353401690_91af1f8e371e857a1ab8ae19298e80c6_rle_crop_3767640295_0.png.png imagette223876651745504671/1745504473_1027338_1353401489_1a196bca7144b8ecc8ec47508d01b7fa_rle_crop_3767639645_0.png.png imagette223876691745504672/ imagette223876701745504672/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4cf7afa95af70d08b201b1788f1bb51a_26271741.png imagette223876651745504671 22387669 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=22387669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223876691745504672 22387670 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=22387670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223876701745504672 22387671 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=22387671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353401407: '1745504232_1024548_1353401325_c420d749615170e892bb9478d762f0cd_rle_crop_3767637138_0.png', 1353401408: '1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637153_0.png', 1353401409: '1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637148_0.png', 1353401574: '1745504353_1025963_1353401419_c63bcd19bb537ab242f84da795e8d3f1_rle_crop_3767637577_0.png', 1353401680: '1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639087_0.png', 1353401681: '1745504412_1026596_1353401360_aa4281a604bff37b440a14801cf5297e_rle_crop_3767639306_0.png', 1353401761: '1745504473_1027338_1353401648_e72832717b9fd8363ec40b83b920eaaf_rle_crop_3767639634_0.png', 1353401762: '1745504473_1027338_1353401489_1a196bca7144b8ecc8ec47508d01b7fa_rle_crop_3767639642_0.png', 1353401763: '1745504473_1027338_1353401485_67353e9d7509c1b4ee631d12402b0930_rle_crop_3767639706_0.png', 1353401764: '1745504473_1027338_1353401476_1bc9222d5672dbac358942f646df3c6d_rle_crop_3767639767_0.png', 1353401791: '1745504531_1027859_1353401493_4ac0c83cdd86fedce39a1e880566d96b_rle_crop_3767639850_0.png', 1353401792: '1745504531_1027859_1353401493_4ac0c83cdd86fedce39a1e880566d96b_rle_crop_3767639844_0.png', 1353401892: '1745504621_158089_1353401697_5eeeba10c6da9ff506b9dc662963ebf0_rle_crop_3767640263_0.png', 1353401894: '1745504621_158089_1353401697_5eeeba10c6da9ff506b9dc662963ebf0_rle_crop_3767640259_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8f39ef75068241a883faf4b25dfc1d58_16837329.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8b7e4b2f4466f7afaeb8dd647861dda4_440341.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7e7d62351fa02becdccbf5cb23681fb0_146905.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c2672f0b307089d8cb00e7f457bd0ac4_49711700.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8c9d0e3a3dc185713380777eda82272e_57750221.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7c814c855009689bfb75bdb0e7392b81_32359651.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/97b9ad15c065ca19168018935525109d_41391403.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a0510ad58ca42154daddc3544cb8f473_36937671.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/86948ec3d5e2f0c5d4ccf36f4e4f90f8_69113412.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b4b8c3d176f283c603ca594499240cf5_55376765.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/afbfa75389c6a1af5bca22b46484e996_13027215.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f2c6741f204f2d7342d847908c359f62_19775214.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/23ad87f8a69c842e7ee555da4f3e0cae_6879704.png change filename to text .imagette223876711745504672/ imagette223876711745504672/1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637148_0.png.png imagette223876711745504672/1745504473_1027338_1353401485_67353e9d7509c1b4ee631d12402b0930_rle_crop_3767639706_0.png.png imagette223876711745504672/1745504232_1024548_1353401325_c420d749615170e892bb9478d762f0cd_rle_crop_3767637138_0.png.png imagette223876711745504672/1745504473_1027338_1353401476_1bc9222d5672dbac358942f646df3c6d_rle_crop_3767639767_0.png.png imagette223876711745504672/1745504621_158089_1353401697_5eeeba10c6da9ff506b9dc662963ebf0_rle_crop_3767640259_0.png.png imagette223876711745504672/1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637153_0.png.png imagette223876711745504672/1745504531_1027859_1353401493_4ac0c83cdd86fedce39a1e880566d96b_rle_crop_3767639850_0.png.png imagette223876711745504672/1745504621_158089_1353401697_5eeeba10c6da9ff506b9dc662963ebf0_rle_crop_3767640263_0.png.png imagette223876711745504672/1745504412_1026596_1353401360_aa4281a604bff37b440a14801cf5297e_rle_crop_3767639306_0.png.png imagette223876711745504672/1745504353_1025963_1353401419_c63bcd19bb537ab242f84da795e8d3f1_rle_crop_3767637577_0.png.png imagette223876711745504672/1745504473_1027338_1353401489_1a196bca7144b8ecc8ec47508d01b7fa_rle_crop_3767639642_0.png.png imagette223876711745504672/1745504473_1027338_1353401648_e72832717b9fd8363ec40b83b920eaaf_rle_crop_3767639634_0.png.png imagette223876711745504672/1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639087_0.png.png imagette223876711745504672/1745504531_1027859_1353401493_4ac0c83cdd86fedce39a1e880566d96b_rle_crop_3767639844_0.png.png imagette223876721745504673/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/65129551c83d3d8c41e188ff62ec6cb5_95388067.png imagette223876711745504672 22387672 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=22387672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223876721745504673 22387673 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=22387673 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353401403: '1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637147_0.png', 1353401558: '1745504353_1025963_1353401419_c63bcd19bb537ab242f84da795e8d3f1_rle_crop_3767637576_0.png', 1353401559: '1745504353_1025963_1353401419_c63bcd19bb537ab242f84da795e8d3f1_rle_crop_3767637578_0.png', 1353401671: '1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639082_0.png', 1353401672: '1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639084_0.png', 1353401743: '1745504473_1027338_1353401482_25ee05df4ecc28de4a9eb2cc5eba0440_rle_crop_3767639727_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/65f4590e229ba1887e49d3ea824378f0_81060733.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/681f9e1cda2383505a3bab27585b26ad_38561904.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0f3a7ecdca85eee1ffe6fb97a39eb1c4_59945203.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/15f7849a4a9d22a3a4f5ffd333e1045b_1193114.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/95cd1f17339420c984b8335c5c79f3c6_61860666.png change filename to text .imagette223876731745504673/ imagette223876731745504673/1745504353_1025963_1353401419_c63bcd19bb537ab242f84da795e8d3f1_rle_crop_3767637576_0.png.png imagette223876731745504673/1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639084_0.png.png imagette223876731745504673/1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639082_0.png.png imagette223876731745504673/1745504473_1027338_1353401482_25ee05df4ecc28de4a9eb2cc5eba0440_rle_crop_3767639727_0.png.png imagette223876731745504673/1745504353_1025963_1353401419_c63bcd19bb537ab242f84da795e8d3f1_rle_crop_3767637578_0.png.png imagette223876731745504673/1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637147_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/591233ffcadfef9be8e211c0a95e31db_57192255.png imagette223876731745504673 22387664 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=22387664 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353401673: '1745504412_1026596_1353401365_0720728b1e78a7e8bca697b72fab9afb_rle_crop_3767639289_0.png', 1353401674: '1745504412_1026596_1353401360_aa4281a604bff37b440a14801cf5297e_rle_crop_3767639302_0.png', 1353401744: '1745504473_1027338_1353401479_329a5a3cbc1d7df6cb655d02a63b7f6e_rle_crop_3767639755_0.png', 1353401745: '1745504473_1027338_1353401479_329a5a3cbc1d7df6cb655d02a63b7f6e_rle_crop_3767639751_0.png', 1353401753: '1745504507_154571_1353401601_69c387010d30543115339727f6d3bced_rle_crop_3767639792_0.png', 1353401785: '1745504531_1027859_1353401493_4ac0c83cdd86fedce39a1e880566d96b_rle_crop_3767639840_0.png', 1353401882: '1745504621_158089_1353401701_0c8012b57ab9242fcd4301d0cd1b07e3_rle_crop_3767640237_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/11e839762420df9745e88eb338ffa906_35974408.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c62cd053dd6bde544a725a48c5a2ad1b_40829688.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/12432ec0f6b924187408f14509b6bb0d_66764869.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f3936171754630862ea174c563ab4dd5_98732131.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/eeeb28649c2824a406ed6f7116c96473_83927847.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/d2b7676672de523b6be2f94e863dff6e_29153046.png change filename to text .imagette223876641745504673/ imagette223876641745504673/1745504531_1027859_1353401493_4ac0c83cdd86fedce39a1e880566d96b_rle_crop_3767639840_0.png.png imagette223876641745504673/1745504473_1027338_1353401479_329a5a3cbc1d7df6cb655d02a63b7f6e_rle_crop_3767639751_0.png.png imagette223876641745504673/1745504412_1026596_1353401365_0720728b1e78a7e8bca697b72fab9afb_rle_crop_3767639289_0.png.png imagette223876641745504673/1745504507_154571_1353401601_69c387010d30543115339727f6d3bced_rle_crop_3767639792_0.png.png imagette223876641745504673/1745504621_158089_1353401701_0c8012b57ab9242fcd4301d0cd1b07e3_rle_crop_3767640237_0.png.png imagette223876641745504673/1745504412_1026596_1353401360_aa4281a604bff37b440a14801cf5297e_rle_crop_3767639302_0.png.png imagette223876641745504673/1745504473_1027338_1353401479_329a5a3cbc1d7df6cb655d02a63b7f6e_rle_crop_3767639755_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b00dc863685a52ac73abded0c483d10e_32986404.png imagette223876641745504673 22387666 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=22387666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353401848: '1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639975_0.png', 1353401881: '1745504621_158089_1353401687_8b25fcbd9ffba33ef9272300e4ee1092_rle_crop_3767640313_0.png', 1353401880: '1745504621_158089_1353401687_8b25fcbd9ffba33ef9272300e4ee1092_rle_crop_3767640306_0.png', 1353401879: '1745504621_158089_1353401690_91af1f8e371e857a1ab8ae19298e80c6_rle_crop_3767640297_0.png', 1353401878: '1745504621_158089_1353401692_538aa66139203a16895063e818a41408_rle_crop_3767640283_0.png', 1353401877: '1745504621_158089_1353401701_0c8012b57ab9242fcd4301d0cd1b07e3_rle_crop_3767640247_0.png', 1353401876: '1745504621_158089_1353401701_0c8012b57ab9242fcd4301d0cd1b07e3_rle_crop_3767640246_0.png', 1353401851: '1745504593_1028400_1353401749_3e1f594b4dea4991f448d33f05fd1bd2_rle_crop_3767639996_0.png', 1353401850: '1745504593_1028400_1353401749_3e1f594b4dea4991f448d33f05fd1bd2_rle_crop_3767639994_0.png', 1353401849: '1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639984_0.png', 1353401400: '1745504232_1024548_1353401325_c420d749615170e892bb9478d762f0cd_rle_crop_3767637135_0.png', 1353401847: '1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639974_0.png', 1353401846: '1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639980_0.png', 1353401845: '1745504593_1028400_1353401768_a114f5a7085aa1eb0ed42b3af2ae560b_rle_crop_3767639965_0.png', 1353401784: '1745504531_1027859_1353401493_4ac0c83cdd86fedce39a1e880566d96b_rle_crop_3767639852_0.png', 1353401741: '1745504473_1027338_1353401482_25ee05df4ecc28de4a9eb2cc5eba0440_rle_crop_3767639733_0.png', 1353401541: '1745504353_1025963_1353401424_e66c6524c5885f80cc3c35c071d986a5_rle_crop_3767637566_0.png', 1353401402: '1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637151_0.png', 1353401401: '1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637157_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7aac00f9e6447db71141efe38b6ca855_89034571.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/1141515039e8785ceb52ee7813f13691_58211565.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/e9f89e3ce1e4e0fd72d767d6f8e68ebe_10682046.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/498febc4dc3169910a7e5ac666536355_28897095.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ec6aca95cbcb8bd84ea5ed88c7f44294_14051791.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/2cd3c790328fc6834337117c8b57e652_92063644.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0836ece2de219a82c37224e7aa379efe_96946861.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/021464bc6d15a712e1a7ce20b5c617a5_96873651.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/15f32ec8df9442dba9362bd7bcf62f0f_11642651.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/cb7dffa54a73354912a1aba7e277edab_55991763.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/847a48de82dfdcca9f474a72b9f644db_63599781.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/2350ca8cbc2e461fec9a006c086648d7_39754694.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5ebb4ca51629f14b9c95ab8fbea01ed4_71893501.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/cd9e0e5a02387fc28e4bab0b364cf917_25344894.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c0158025ffe37b66326d8d7b5766f10d_62318057.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/306571d89ea3fa4da0b45a0c080ca160_79053216.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/fdd7cf89d35d3f70f22cc9053b153d44_48173352.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4f89c2cf56b38339cb6bce0180be6faa_5152138.png change filename to text .imagette223876661745504673/ imagette223876661745504673/1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639984_0.png.png imagette223876661745504673/1745504353_1025963_1353401424_e66c6524c5885f80cc3c35c071d986a5_rle_crop_3767637566_0.png.png imagette223876661745504673/1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639980_0.png.png imagette223876661745504673/1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639975_0.png.png imagette223876661745504673/1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639974_0.png.png imagette223876661745504673/1745504531_1027859_1353401493_4ac0c83cdd86fedce39a1e880566d96b_rle_crop_3767639852_0.png.png imagette223876661745504673/1745504621_158089_1353401701_0c8012b57ab9242fcd4301d0cd1b07e3_rle_crop_3767640247_0.png.png imagette223876661745504673/1745504473_1027338_1353401482_25ee05df4ecc28de4a9eb2cc5eba0440_rle_crop_3767639733_0.png.png imagette223876661745504673/1745504593_1028400_1353401749_3e1f594b4dea4991f448d33f05fd1bd2_rle_crop_3767639996_0.png.png imagette223876661745504673/1745504593_1028400_1353401768_a114f5a7085aa1eb0ed42b3af2ae560b_rle_crop_3767639965_0.png.png imagette223876661745504673/1745504232_1024548_1353401325_c420d749615170e892bb9478d762f0cd_rle_crop_3767637135_0.png.png imagette223876661745504673/1745504593_1028400_1353401749_3e1f594b4dea4991f448d33f05fd1bd2_rle_crop_3767639994_0.png.png imagette223876661745504673/1745504621_158089_1353401687_8b25fcbd9ffba33ef9272300e4ee1092_rle_crop_3767640306_0.png.png imagette223876661745504673/1745504621_158089_1353401701_0c8012b57ab9242fcd4301d0cd1b07e3_rle_crop_3767640246_0.png.png imagette223876661745504673/1745504621_158089_1353401692_538aa66139203a16895063e818a41408_rle_crop_3767640283_0.png.png imagette223876661745504673/1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637157_0.png.png imagette223876661745504673/1745504621_158089_1353401687_8b25fcbd9ffba33ef9272300e4ee1092_rle_crop_3767640313_0.png.png imagette223876661745504673/1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637151_0.png.png imagette223876661745504673/1745504621_158089_1353401690_91af1f8e371e857a1ab8ae19298e80c6_rle_crop_3767640297_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4a0857229c9cee2ebe8ed0a00732d4d3_11422346.png imagette223876661745504673 22387668 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=22387668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353401756: '1745504473_1027338_1353401485_67353e9d7509c1b4ee631d12402b0930_rle_crop_3767639711_0.png', 1353401889: '1745504621_158089_1353401687_8b25fcbd9ffba33ef9272300e4ee1092_rle_crop_3767640309_0.png', 1353401888: '1745504621_158089_1353401690_91af1f8e371e857a1ab8ae19298e80c6_rle_crop_3767640291_0.png', 1353401887: '1745504621_158089_1353401701_0c8012b57ab9242fcd4301d0cd1b07e3_rle_crop_3767640243_0.png', 1353401853: '1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639981_0.png', 1353401852: '1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639979_0.png', 1353401786: '1745504531_1027859_1353401493_4ac0c83cdd86fedce39a1e880566d96b_rle_crop_3767639849_0.png', 1353401759: '1745504473_1027338_1353401482_25ee05df4ecc28de4a9eb2cc5eba0440_rle_crop_3767639739_0.png', 1353401758: '1745504473_1027338_1353401482_25ee05df4ecc28de4a9eb2cc5eba0440_rle_crop_3767639735_0.png', 1353401757: '1745504473_1027338_1353401485_67353e9d7509c1b4ee631d12402b0930_rle_crop_3767639714_0.png', 1353401404: '1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637156_0.png', 1353401755: '1745504473_1027338_1353401485_67353e9d7509c1b4ee631d12402b0930_rle_crop_3767639715_0.png', 1353401754: '1745504473_1027338_1353401489_1a196bca7144b8ecc8ec47508d01b7fa_rle_crop_3767639644_0.png', 1353401679: '1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639091_0.png', 1353401592: '1745504382_151740_1353401372_554d9d2d604f2e41ed3027f6a4f2665c_rle_crop_3767637626_0.png', 1353401571: '1745504353_1025963_1353401415_f81f22a1d1cf9b0d4c57d12eca78cbf8_rle_crop_3767637603_0.png', 1353401569: '1745504353_1025963_1353401415_f81f22a1d1cf9b0d4c57d12eca78cbf8_rle_crop_3767637598_0.png', 1353401567: '1745504353_1025963_1353401419_c63bcd19bb537ab242f84da795e8d3f1_rle_crop_3767637581_0.png', 1353401405: '1745504232_1024548_1353401319_1bb3c8afe7d833591513ba293920d40a_rle_crop_3767637167_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0e1a2bfbc0aaccfe4afd3d5bf605a7cc_88182948.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4cbd56fba7ea4d680e5a4775ec0739a0_70847019.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7d58090d115c387d85a2740dad5289cb_27966627.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ac85e383758bc771c79a0d1e8331b206_69480114.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b1f4bb3eadcd6b8494856d87df2ec829_84820540.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c81c51efdf418c0edc0a018393688212_51981199.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/22dbab2a289c67ff060e80ba56312f6b_33470988.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0320306dbb8e0ee14c22e7967cf751ec_35627444.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/adf91695435382524460700d5eb11fb6_87496849.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ef709a0a5b0300d33810bad0d088a6be_29358908.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8042b7fd99a24bc35b0cab54cf74668b_49498617.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/1d25b64639318c8d010ceb7b9f544cc7_22967768.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7bee4917ccf8587faae49e25b84ec29b_35607485.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5e3d1f4dc2c402160c03e06b619949b5_440423.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/e1d940dd84d8e4d38211bcbc3ff16de1_80739230.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/fe0248d7a7e8541d164b68d45b229798_87797481.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5a03d6704658cb9cd19d821664c0aa95_53455814.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4a3ea114673653f9337ff2d5d5be39c8_40136569.png change filename to text .imagette223876681745504675/ imagette223876681745504675/1745504621_158089_1353401690_91af1f8e371e857a1ab8ae19298e80c6_rle_crop_3767640291_0.png.png imagette223876681745504675/1745504473_1027338_1353401485_67353e9d7509c1b4ee631d12402b0930_rle_crop_3767639715_0.png.png imagette223876681745504675/1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639981_0.png.png imagette223876681745504675/1745504353_1025963_1353401415_f81f22a1d1cf9b0d4c57d12eca78cbf8_rle_crop_3767637603_0.png.png imagette223876681745504675/1745504353_1025963_1353401419_c63bcd19bb537ab242f84da795e8d3f1_rle_crop_3767637581_0.png.png imagette223876681745504675/1745504473_1027338_1353401482_25ee05df4ecc28de4a9eb2cc5eba0440_rle_crop_3767639735_0.png.png imagette223876681745504675/1745504232_1024548_1353401321_08f6008e601e5dcaea3bd6d7cddaa3e8_rle_crop_3767637156_0.png.png imagette223876681745504675/1745504382_151740_1353401372_554d9d2d604f2e41ed3027f6a4f2665c_rle_crop_3767637626_0.png.png imagette223876681745504675/1745504621_158089_1353401701_0c8012b57ab9242fcd4301d0cd1b07e3_rle_crop_3767640243_0.png.png imagette223876681745504675/1745504473_1027338_1353401485_67353e9d7509c1b4ee631d12402b0930_rle_crop_3767639711_0.png.png imagette223876681745504675/1745504473_1027338_1353401489_1a196bca7144b8ecc8ec47508d01b7fa_rle_crop_3767639644_0.png.png imagette223876681745504675/1745504412_1026596_1353401369_d8610b1ddf3de422ed8779fcf3a779d0_rle_crop_3767639091_0.png.png imagette223876681745504675/1745504232_1024548_1353401319_1bb3c8afe7d833591513ba293920d40a_rle_crop_3767637167_0.png.png imagette223876681745504675/1745504593_1028400_1353401765_c17133479761caca6a9621af69dd182e_rle_crop_3767639979_0.png.png imagette223876681745504675/1745504531_1027859_1353401493_4ac0c83cdd86fedce39a1e880566d96b_rle_crop_3767639849_0.png.png imagette223876681745504675/1745504353_1025963_1353401415_f81f22a1d1cf9b0d4c57d12eca78cbf8_rle_crop_3767637598_0.png.png imagette223876681745504675/1745504473_1027338_1353401482_25ee05df4ecc28de4a9eb2cc5eba0440_rle_crop_3767639739_0.png.png imagette223876681745504675/1745504621_158089_1353401687_8b25fcbd9ffba33ef9272300e4ee1092_rle_crop_3767640309_0.png.png imagette223876681745504675/1745504473_1027338_1353401485_67353e9d7509c1b4ee631d12402b0930_rle_crop_3767639714_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c7d315b94bb225ade57f9d6fceff865f_46604372.png imagette223876681745504675 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22387635 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22387674,22387675,22387676,22387677,22387678,22387679,22387680,22387681,22387682,22387683,22387684,22387685?tags=environnement,flou,Carton_gris,cartonnette,Teint_Dans_La_Masse,papier,Carton_brun,kraft,mal_croppe,plastique,metal,autre_refus your option no_mail is active, we will not send the real mail to your client args[1353401824] : ('0.07648481816068362',) no score found for photo 1353401824 We are sending mail with results at report@fotonower.com args[1353401821] : ('0.07648481816068362',) no score found for photo 1353401821 We are sending mail with results at report@fotonower.com args[1353401816] : ('0.07648481816068362',) no score found for photo 1353401816 We are sending mail with results at report@fotonower.com args[1353401811] : ('0.07648481816068362',) no score found for photo 1353401811 We are sending mail with results at report@fotonower.com args[1353401771] : ('0.07648481816068362',) no score found for photo 1353401771 We are sending mail with results at report@fotonower.com args[1353401768] : ('0.07648481816068362',) no score found for photo 1353401768 We are sending mail with results at report@fotonower.com args[1353401765] : ('0.07648481816068362',) no score found for photo 1353401765 We are sending mail with results at report@fotonower.com args[1353401749] : ('0.07648481816068362',) no score found for photo 1353401749 We are sending mail with results at report@fotonower.com args[1353401712] : ('0.07648481816068362',) no score found for photo 1353401712 We are sending mail with results at report@fotonower.com args[1353401701] : ('0.07648481816068362',) no score found for photo 1353401701 We are sending mail with results at report@fotonower.com args[1353401697] : ('0.07648481816068362',) no score found for photo 1353401697 We are sending mail with results at report@fotonower.com args[1353401692] : ('0.07648481816068362',) no score found for photo 1353401692 We are sending mail with results at report@fotonower.com args[1353401690] : ('0.07648481816068362',) no score found for photo 1353401690 We are sending mail with results at report@fotonower.com args[1353401687] : ('0.07648481816068362',) no score found for photo 1353401687 We are sending mail with results at report@fotonower.com refus_total : 0.07648481816068362 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=22387635 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_P22387635_24-04-2025_16_24_31.pdf results_Auto_P22387635_24-04-2025_16_24_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387635_24-04-2025_16_24_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22387635','results_Auto_P22387635_24-04-2025_16_24_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387635_24-04-2025_16_24_31.pdf','pdf','','0.32','0.07648481816068362') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22387635]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687] map_info['map_portfolio_photo'] : {22387635: [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687, 1353401648, 1353401615, 1353401604, 1353401601, 1353401493, 1353401489, 1353401485, 1353401482, 1353401479, 1353401476, 1353401430, 1353401424, 1353401419, 1353401415, 1353401372, 1353401369, 1353401365, 1353401360, 1353401325, 1353401321, 1353401319]} final : False mtd_id 4302 list_pids : [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687] 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, '2757938') ('4302', '22387635', '1353401824', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401821', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401816', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401811', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401771', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401768', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401765', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401749', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401712', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401701', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401697', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401692', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401690', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401687', None, None, None, None, None, '2757938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22387635', '1353401824', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401821', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401816', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401811', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401771', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401768', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401765', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401749', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401712', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401701', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401697', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401692', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401690', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401687', None, None, None, None, None, '2757938')] time used for this insertion : 0.016605138778686523 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.271346807479858 time spend to save output : 0.016918420791625977 total time spend for step 4 : 6.288265228271484 step5:split_time_score Thu Apr 24 16:24:37 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22387635'] 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 : [('22387635',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22387635) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353401821: {'path': 'temp/1745504671_1434458_1353401821_f618c1bec848b9a9f5354e263f22c52f.jpg', 'extension': 'jpg'}, 1353401824: {'path': 'temp/1745504671_1434458_1353401824_20d2b7851ba03addc72216b87e672b2c.jpg', 'extension': 'jpg'}, 1353401697: {'path': 'temp/1745504671_1434458_1353401697_5eeeba10c6da9ff506b9dc662963ebf0.jpg', 'extension': 'jpg'}, 1353401701: {'path': 'temp/1745504671_1434458_1353401701_0c8012b57ab9242fcd4301d0cd1b07e3.jpg', 'extension': 'jpg'}, 1353401712: {'path': 'temp/1745504671_1434458_1353401712_dcd38e1bc8d023859d9195b513a8595b.jpg', 'extension': 'jpg'}, 1353401687: {'path': 'temp/1745504671_1434458_1353401687_8b25fcbd9ffba33ef9272300e4ee1092.jpg', 'extension': 'jpg'}, 1353401690: {'path': 'temp/1745504671_1434458_1353401690_91af1f8e371e857a1ab8ae19298e80c6.jpg', 'extension': 'jpg'}, 1353401692: {'path': 'temp/1745504671_1434458_1353401692_538aa66139203a16895063e818a41408.jpg', 'extension': 'jpg'}, 1353401749: {'path': 'temp/1745504671_1434458_1353401749_3e1f594b4dea4991f448d33f05fd1bd2.jpg', 'extension': 'jpg'}, 1353401765: {'path': 'temp/1745504671_1434458_1353401765_c17133479761caca6a9621af69dd182e.jpg', 'extension': 'jpg'}, 1353401768: {'path': 'temp/1745504671_1434458_1353401768_a114f5a7085aa1eb0ed42b3af2ae560b.jpg', 'extension': 'jpg'}, 1353401771: {'path': 'temp/1745504671_1434458_1353401771_6175155e26f422b543796218da44c9f0.jpg', 'extension': 'jpg'}, 1353401811: {'path': 'temp/1745504671_1434458_1353401811_ae54a8cfebe64e51d02cc13cc5e70121.jpg', 'extension': 'jpg'}, 1353401816: {'path': 'temp/1745504671_1434458_1353401816_63ab91dd3987a1cce6fc4450dc7f2709.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 = 22387635; (('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 = 22387635 group by h (('16', 35),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22387635 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 (22387635) 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 (22387635) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24042025 22387635 Nombre de photos uploadées : 35 / 23040 (0%) 24042025 22387635 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 24042025 22387635 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1353401325, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c420d749615170e892bb9478d762f0cd.jpg', 'username': None, 'uploaded_at': 1745504167, 'text': 'image_24042025_16_15_14_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353401321, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/08f6008e601e5dcaea3bd6d7cddaa3e8.jpg', 'username': None, 'uploaded_at': 1745504167, 'text': 'image_24042025_16_15_34_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353401319, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/1bb3c8afe7d833591513ba293920d40a.jpg', 'username': None, 'uploaded_at': 1745504167, 'text': 'image_24042025_16_15_44_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353401372, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/554d9d2d604f2e41ed3027f6a4f2665c.jpg', 'username': None, 'uploaded_at': 1745504227, 'text': 'image_24042025_16_15_54_010136m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001789093017578125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22387635, '2025-04-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1743777,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026107072830200195 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= 1743777 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1743777, 'dashboard_run_id': 1753706, 'mtr_portfolio_id': 22386105, 'dashboard_result_id': 10073851, '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_P22386105_24-04-2025_15_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386157, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1753706, 'mtr_portfolio_id': 22386532, 'dashboard_result_id': 10073852, '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_P22386532_24-04-2025_16_02_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386549, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1753706, 'mtr_portfolio_id': 22387089, 'dashboard_result_id': 10073853, '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_P22387089_24-04-2025_16_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387105, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1753706, 'mtr_portfolio_id': 22387635, 'dashboard_result_id': 10073854, '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_P22387635_24-04-2025_16_20_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387673, '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 = 22386105 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': 2757750, 'mtr_portfolio_id': 22386105, 'created_at': datetime.datetime(2025, 4, 24, 15, 47), 'result': '0.06124602521363633', 'result_long': None, 'result_double': None}] Qualite : 0.06124602521363633 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22386105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22386105_24-04-2025_15_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22386105 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_P22386105_24-04-2025_15_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386157, 'pht': 3726}}" where mtr_portfolio_id = 22386105 and dashboard_run_id = 1753706 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`=22386105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10073851, 0.06124602521363633, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22386105_24-04-2025_15_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386157, '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 = 22386532 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': 2757807, 'mtr_portfolio_id': 22386532, 'created_at': datetime.datetime(2025, 4, 24, 16, 2, 30), 'result': '0.05765260509667263', 'result_long': None, 'result_double': None}] Qualite : 0.05765260509667263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22386532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22386532_24-04-2025_16_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22386532 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_P22386532_24-04-2025_16_02_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386549, 'pht': 3726}}" where mtr_portfolio_id = 22386532 and dashboard_run_id = 1753706 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`=22386532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10073852, 0.05765260509667263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22386532_24-04-2025_16_02_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22386538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22386539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22386540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22386541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22386542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22386543, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22386544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22386545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22386546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22386547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22386548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22386549, '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 = 22387089 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': 2757900, 'mtr_portfolio_id': 22387089, 'created_at': datetime.datetime(2025, 4, 24, 16, 17, 1), 'result': '0.05648683752681784', 'result_long': None, 'result_double': None}] Qualite : 0.05648683752681784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22387089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387089_24-04-2025_16_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22387089 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_P22387089_24-04-2025_16_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387105, 'pht': 3726}}" where mtr_portfolio_id = 22387089 and dashboard_run_id = 1753706 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`=22387089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10073853, 0.05648683752681784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387089_24-04-2025_16_17_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387102, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387105, '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 = 22387635 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': 2757938, 'mtr_portfolio_id': 22387635, 'created_at': datetime.datetime(2025, 4, 24, 16, 24, 30), 'result': '0.07648481816068362', 'result_long': None, 'result_double': None}] Qualite : 0.07648481816068362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22387635 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387635_24-04-2025_16_24_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22387635 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_P22387635_24-04-2025_16_24_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387673, 'pht': 3726}}" where mtr_portfolio_id = 22387635 and dashboard_run_id = 1753706 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`=22387635 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10073854, 0.07648481816068362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22387635_24-04-2025_16_24_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22387662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22387664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22387665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22387666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22387668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22387669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22387670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22387671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22387672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22387673, '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 (22386105,22386532,22387089,22387635) result : ((1353391289,), (1353391296,), (1353391302,), (1353391307,), (1353391312,), (1353391347,), (1353391351,), (1353391370,), (1353391414,), (1353391427,), (1353391431,), (1353391441,), (1353391454,), (1353391463,), (1353391805,), (1353391833,), (1353391861,), (1353392014,), (1353392017,), (1353392021,), (1353392052,), (1353392079,), (1353392096,), (1353392132,), (1353392135,), (1353392138,), (1353392141,), (1353392184,), (1353392189,), (1353392202,), (1353392205,), (1353392211,), (1353392213,), (1353392262,), (1353392276,), (1353392280,), (1353392286,), (1353392290,), (1353392294,), (1353392356,), (1353392359,), (1353392363,), (1353392366,), (1353392396,), (1353392401,), (1353392406,), (1353392410,), (1353392415,), (1353392419,), (1353392450,), (1353392454,), (1353392458,), (1353392461,), (1353392466,), (1353392521,), (1353392524,), (1353392529,), (1353392533,), (1353392635,), (1353392637,), (1353392643,), (1353392662,), (1353392683,), (1353392715,), (1353392895,), (1353392898,), (1353392902,), (1353392906,), (1353392910,), (1353392919,), (1353393018,), (1353393022,), (1353393024,), (1353393084,), (1353393078,), (1353393080,), (1353393083,), (1353393131,), (1353393134,), (1353393136,), (1353393140,), (1353393143,), (1353393146,), (1353393186,), (1353393188,), (1353393191,), (1353393246,), (1353393249,), (1353393252,), (1353393254,), (1353393258,), (1353393261,), (1353393292,), (1353393302,), (1353393304,), (1353393307,), (1353393312,), (1353393321,), (1353393350,), (1353393353,), (1353393355,), (1353393358,), (1353393361,), (1353393405,), (1353393406,), (1353393408,), (1353393410,), (1353393411,), (1353393415,), (1353393463,), (1353393470,), (1353393474,), (1353393477,), (1353393482,), (1353393621,), (1353393627,), (1353393633,), (1353393658,), (1353393685,), (1353393806,), (1353393813,), (1353393826,), (1353393838,), (1353393962,), (1353393968,), (1353393971,), (1353393974,), (1353394008,), (1353394009,), (1353394012,), (1353394015,), (1353394018,), (1353394023,), (1353394055,), (1353394063,), (1353394065,), (1353394068,), (1353394180,), (1353394210,), (1353394250,), (1353394286,), (1353394320,), (1353394354,), (1353394436,), (1353394476,), (1353394526,), (1353394589,), (1353394667,), (1353395087,), (1353394895,), (1353395012,), (1353396042,), (1353396132,), (1353396210,), (1353396287,), (1353396364,), (1353396446,), (1353397228,), (1353397281,), (1353397338,), (1353397391,), (1353397446,), (1353397497,), (1353398076,), (1353398217,), (1353398287,), (1353398359,), (1353399061,), (1353399095,), (1353399131,), (1353399169,), (1353399226,), (1353399288,), (1353399640,), (1353399684,), (1353399744,), (1353399804,), (1353399856,), (1353399892,), (1353400027,), (1353400032,), (1353400043,), (1353400113,), (1353400115,), (1353400118,), (1353400120,), (1353400121,), (1353400124,), (1353400294,), (1353400321,), (1353400350,), (1353400440,), (1353400549,), (1353400947,), (1353401111,), (1353401273,), (1353401276,), (1353401329,), (1353401319,), (1353401321,), (1353401325,), (1353401360,), (1353401365,), (1353401369,), (1353401372,), (1353401415,), (1353401419,), (1353401424,), (1353401430,), (1353401476,), (1353401479,), (1353401482,), (1353401485,), (1353401489,), (1353401493,), (1353401601,), (1353401604,), (1353401615,), (1353401648,), (1353401687,), (1353401690,), (1353401692,), (1353401697,), (1353401701,), (1353401712,), (1353401749,), (1353401765,), (1353401768,), (1353401771,), (1353401811,), (1353401816,), (1353401821,), (1353401824,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24042025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22387635]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687] map_info['map_portfolio_photo'] : {22387635: [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687, 1353401648, 1353401615, 1353401604, 1353401601, 1353401493, 1353401489, 1353401485, 1353401482, 1353401479, 1353401476, 1353401430, 1353401424, 1353401419, 1353401415, 1353401372, 1353401369, 1353401365, 1353401360, 1353401325, 1353401321, 1353401319]} final : True mtd_id 4302 list_pids : [1353401824, 1353401821, 1353401816, 1353401811, 1353401771, 1353401768, 1353401765, 1353401749, 1353401712, 1353401701, 1353401697, 1353401692, 1353401690, 1353401687] Looping around the photos to save general results len do output : 1 /22387635Didn'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, '2757938') ('4302', '22387635', '1353401824', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401821', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401816', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401811', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401771', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401768', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401765', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401749', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401712', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401701', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401697', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401692', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401690', None, None, None, None, None, '2757938') ('4302', None, None, None, None, None, None, None, '2757938') ('4302', '22387635', '1353401687', None, None, None, None, None, '2757938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22387635', 'None', None, None, None, None, '2757938'), ('4302', '22387635', '1353401824', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401821', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401816', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401811', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401771', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401768', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401765', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401749', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401712', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401701', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401697', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401692', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401690', None, None, None, None, None, '2757938'), ('4302', '22387635', '1353401687', None, None, None, None, None, '2757938')] time used for this insertion : 0.013653755187988281 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33882761001586914 time spend to save output : 0.013935327529907227 total time spend for step 5 : 0.35276293754577637 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 (2757938) 2.73user 2.24system 0:12.52elapsed 39%CPU (0avgtext+0avgdata 159536maxresident)k 1048inputs+17632outputs (24major+79131minor)pagefaults 0swaps