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 : 3660832 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 (2684599) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2684599) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635903 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2684599'] with mtr_portfolio_ids : ['21635903'] and first list_photo_ids : [] new path : /proc/3660832/ Name: python3 Umask: 0002 State: R (running) Tgid: 3660832 Ngid: 0 Pid: 3660832 PPid: 3660831 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3660832 NSpid: 3660832 NSpgid: 3656631 NSsid: 3656631 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97996 kB VmRSS: 97996 kB RssAnon: 59768 kB RssFile: 38228 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3660832', 'Ngid': '0', 'Pid': '3660832', 'PPid': '3660831', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3660832', 'NSpid': '3660832', 'NSpgid': '3656631', 'NSsid': '3656631', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97996 kB', 'VmRSS': '97996 kB', 'RssAnon': '59768 kB', 'RssFile': '38228 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '89'} ('datou_batch_current', '3660832', '1106932', '0', '1106932', '865680', '97996', b'', 'marlene', '2684599') 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 (21635903) 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 (2684599 ) ) 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 (21635903) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1346741192, 'portfolio_id': 21635903}, {'photo_id': 1346741190, 'portfolio_id': 21635903}, {'photo_id': 1346741185, 'portfolio_id': 21635903}, {'photo_id': 1346741182, 'portfolio_id': 21635903}, {'photo_id': 1346741132, 'portfolio_id': 21635903}, {'photo_id': 1346741119, 'portfolio_id': 21635903}, {'photo_id': 1346741106, 'portfolio_id': 21635903}, {'photo_id': 1346741097, 'portfolio_id': 21635903}, {'photo_id': 1346740895, 'portfolio_id': 21635903}, {'photo_id': 1346740892, 'portfolio_id': 21635903}, {'photo_id': 1346740889, 'portfolio_id': 21635903}, {'photo_id': 1346740886, 'portfolio_id': 21635903}, {'photo_id': 1346740881, 'portfolio_id': 21635903}, {'photo_id': 1346740842, 'portfolio_id': 21635903}, {'photo_id': 1346740838, 'portfolio_id': 21635903}, {'photo_id': 1346740828, 'portfolio_id': 21635903}, {'photo_id': 1346740816, 'portfolio_id': 21635903}, {'photo_id': 1346740813, 'portfolio_id': 21635903}, {'photo_id': 1346740742, 'portfolio_id': 21635903}, {'photo_id': 1346740738, 'portfolio_id': 21635903}, {'photo_id': 1346740734, 'portfolio_id': 21635903}, {'photo_id': 1346740648, 'portfolio_id': 21635903}, {'photo_id': 1346740645, 'portfolio_id': 21635903}, {'photo_id': 1346740640, 'portfolio_id': 21635903}, {'photo_id': 1346740638, 'portfolio_id': 21635903}, {'photo_id': 1346740580, 'portfolio_id': 21635903}, {'photo_id': 1346740573, 'portfolio_id': 21635903}, {'photo_id': 1346740568, 'portfolio_id': 21635903}, {'photo_id': 1346740565, 'portfolio_id': 21635903}, {'photo_id': 1346740562, 'portfolio_id': 21635903}, {'photo_id': 1346740559, 'portfolio_id': 21635903}, {'photo_id': 1346740527, 'portfolio_id': 21635903}, {'photo_id': 1346740522, 'portfolio_id': 21635903}, {'photo_id': 1346740517, 'portfolio_id': 21635903}, {'photo_id': 1346740514, 'portfolio_id': 21635903}, {'photo_id': 1346740511, 'portfolio_id': 21635903}, {'photo_id': 1346740509, 'portfolio_id': 21635903}, {'photo_id': 1346740453, 'portfolio_id': 21635903}, {'photo_id': 1346740450, 'portfolio_id': 21635903}, {'photo_id': 1346740448, 'portfolio_id': 21635903}, {'photo_id': 1346740401, 'portfolio_id': 21635903}, {'photo_id': 1346740398, 'portfolio_id': 21635903}, {'photo_id': 1346740396, 'portfolio_id': 21635903}, {'photo_id': 1346740336, 'portfolio_id': 21635903}] map_portfolio_id_photo_id: {21635903: [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881, 1346740842, 1346740838, 1346740828, 1346740816, 1346740813, 1346740742, 1346740738, 1346740734, 1346740648, 1346740645, 1346740640, 1346740638, 1346740580, 1346740573, 1346740568, 1346740565, 1346740562, 1346740559, 1346740527, 1346740522, 1346740517, 1346740514, 1346740511, 1346740509, 1346740453, 1346740450, 1346740448, 1346740401, 1346740398, 1346740396, 1346740336]} ##### 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.015103816986083984 #### 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 Mon Mar 24 09:57:00 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 (21635903) 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 : 21635903 get user id for portfolio 21635903 get sub ptf for main ptf 21635903, type 3726 and hashtags ['cartonnette', 'Teint_Dans_La_Masse', 'metal', 'environnement', 'Carton_gris', 'kraft', 'Carton_brun', 'plastique', 'papier', 'autre_refus', 'flou', 'mal_croppe'] 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`=21635903 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','environnement','Carton_gris','kraft','Carton_brun','plastique','papier','autre_refus','flou','mal_croppe')) 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`=21635903 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','environnement','Carton_gris','kraft','Carton_brun','plastique','papier','autre_refus','flou','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21635903, 'sub_port_id': 21635904, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173547, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}, 'cartonnette': {'main_port_id': 21635903, 'sub_port_id': 21635905, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173548, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}, 'Teint_Dans_La_Masse': {'main_port_id': 21635903, 'sub_port_id': 21635906, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173549, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}, 'plastique': {'main_port_id': 21635903, 'sub_port_id': 21635907, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173550, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}, 'Carton_brun': {'main_port_id': 21635903, 'sub_port_id': 21635908, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173551, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}, 'metal': {'main_port_id': 21635903, 'sub_port_id': 21635909, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173552, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}, 'flou': {'main_port_id': 21635903, 'sub_port_id': 21635910, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173553, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}, 'papier': {'main_port_id': 21635903, 'sub_port_id': 21635911, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173554, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}, 'kraft': {'main_port_id': 21635903, 'sub_port_id': 21635912, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173555, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}, 'mal_croppe': {'main_port_id': 21635903, 'sub_port_id': 21635913, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173556, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}, 'environnement': {'main_port_id': 21635903, 'sub_port_id': 21635914, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173557, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}, 'Carton_gris': {'main_port_id': 21635903, 'sub_port_id': 21635915, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173558, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21635904 , 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=21635903 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 (21635904) result : ((1346740649,), (1346740650,), (1346740681,), (1346740682,), (1346740683,), (1346740684,), (1346740710,), (1346740711,), (1346740712,), (1346740713,), (1346740714,), (1346740797,), (1346740798,), (1346740799,), (1346740818,), (1346740819,), (1346740820,), (1346740821,), (1346740822,), (1346740823,), (1346740920,), (1346740924,), (1346741048,), (1346741059,), (1346741069,), (1346741079,), (1346741088,), (1346741089,), (1346741090,), (1346741091,), (1346741198,), (1346741199,), (1346741200,), (1346741201,), (1346741202,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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 21635905 , 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=21635903 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 (21635905) result : ((1346740653,), (1346740691,), (1346740692,), (1346740693,), (1346740694,), (1346740695,), (1346740717,), (1346740718,), (1346740719,), (1346740720,), (1346740722,), (1346740829,), (1346740830,), (1346741205,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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 21635906 , 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=21635903 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 (21635906) result : ((1346740675,), (1346740676,), (1346740677,), (1346740707,), (1346740796,), (1346740960,), (1346740968,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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 21635907 , 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=21635903 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 (21635907) result : ((1346740699,), (1346740727,), (1346740832,), (1346740833,), (1346740834,), (1346740835,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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 21635908 , 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=21635903 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 (21635908) result : ((1346740656,), (1346740697,), (1346740698,), (1346740723,), (1346740725,), (1346740726,), (1346741098,), (1346741103,), (1346741104,), (1346741207,), (1346741208,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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 21635909 , 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=21635903 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 (21635909) result : ((1346740837,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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 21635910 , 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=21635903 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 (21635910) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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 21635911 , 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=21635903 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 (21635911) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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 21635912 , 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=21635903 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 (21635912) result : ((1346740729,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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 21635913 , 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=21635903 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 (21635913) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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 21635914 , 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=21635903 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 (21635914) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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 21635915 , 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=21635903 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 (21635915) result : ((1346740685,), (1346740801,), (1346740802,), (1346740824,), (1346740825,), (1346740826,), (1346741093,), (1346741204,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21635903) result : ((1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) 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`=21635903 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','environnement','Carton_gris','kraft','Carton_brun','plastique','papier','autre_refus','flou','mal_croppe')) 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`=21635903 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','metal','environnement','Carton_gris','kraft','Carton_brun','plastique','papier','autre_refus','flou','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21635903, 'sub_port_id': 21635916, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173559, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}, 'cartonnette': {'main_port_id': 21635903, 'sub_port_id': 21635917, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173560, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 21635903, 'sub_port_id': 21635918, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173561, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}, 'plastique': {'main_port_id': 21635903, 'sub_port_id': 21635919, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173562, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}, 'Carton_brun': {'main_port_id': 21635903, 'sub_port_id': 21635920, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173563, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}, 'metal': {'main_port_id': 21635903, 'sub_port_id': 21635921, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173564, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}, 'flou': {'main_port_id': 21635903, 'sub_port_id': 21635922, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173565, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}, 'papier': {'main_port_id': 21635903, 'sub_port_id': 21635923, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173566, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}, 'kraft': {'main_port_id': 21635903, 'sub_port_id': 21635924, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173567, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}, 'mal_croppe': {'main_port_id': 21635903, 'sub_port_id': 21635925, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173568, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}, 'environnement': {'main_port_id': 21635903, 'sub_port_id': 21635926, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173569, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}, 'Carton_gris': {'main_port_id': 21635903, 'sub_port_id': 21635927, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14173570, 'last_updated_at': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 9, 54, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 9, 51, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635916,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635904 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635917,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635905 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635918,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635906 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635919,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635907 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635920,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635908 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635921,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635909 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635922,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635910 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635923,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635911 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635924,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635912 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635925,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635913 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635926,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635914 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21635927,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21635915 lien utilise dans velours : https://www.fotonower.com/velours/21635916,21635917,21635918,21635919,21635920,21635921,21635922,21635923,21635924,21635925,21635926,21635927?tags=autre_refus,cartonnette,Teint_Dans_La_Masse,plastique,Carton_brun,metal,flou,papier,kraft,mal_croppe,environnement,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21635903]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881] map_info['map_portfolio_photo'] : {21635903: [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881, 1346740842, 1346740838, 1346740828, 1346740816, 1346740813, 1346740742, 1346740738, 1346740734, 1346740648, 1346740645, 1346740640, 1346740638, 1346740580, 1346740573, 1346740568, 1346740565, 1346740562, 1346740559, 1346740527, 1346740522, 1346740517, 1346740514, 1346740511, 1346740509, 1346740453, 1346740450, 1346740448, 1346740401, 1346740398, 1346740396, 1346740336]} final : False mtd_id 4302 list_pids : [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881] Looping around the photos to save general results len do output : 1 /21635903. 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, '2684599') ('4302', '21635903', '1346741192', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741190', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741185', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741182', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741132', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741119', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741106', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741097', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740895', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740892', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740889', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740886', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740881', None, None, None, None, None, '2684599') 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', None, '21635903', "{'autre_refus': 21635904, 'cartonnette': 21635905, 'Teint_Dans_La_Masse': 21635906, 'plastique': 21635907, 'Carton_brun': 21635908, 'metal': 21635909, 'flou': 21635910, 'papier': 21635911, 'kraft': 21635912, 'mal_croppe': 21635913, 'environnement': 21635914, 'Carton_gris': 21635915}", None, None, None, None, '2684599'), ('4302', '21635903', '1346741192', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741190', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741185', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741182', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741132', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741119', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741106', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741097', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740895', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740892', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740889', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740886', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740881', None, None, None, None, None, '2684599')] time used for this insertion : 0.013974189758300781 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4687354564666748 time spend to save output : 0.014205455780029297 total time spend for step 1 : 1.482940912246704 step2:final Mon Mar 24 09:57:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21635903) 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 21635903 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346740401,1346740398,1346740396,1346740336,1346740453,1346740450,1346740448,1346740527,1346740522,1346740517,1346740514,1346740511,1346740509,1346740580,1346740573,1346740568,1346740565,1346740562,1346740559,1346740648,1346740645,1346740640,1346740638,1346740742,1346740738,1346740734,1346740842,1346740838,1346740828,1346740816,1346740813,1346740895,1346740892,1346740889,1346740886,1346740881,1346741132,1346741119,1346741106,1346741097,1346741192,1346741190,1346741185,1346741182); 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([21635903]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} new output for save of step final : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881] map_info['map_portfolio_photo'] : {21635903: [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881, 1346740842, 1346740838, 1346740828, 1346740816, 1346740813, 1346740742, 1346740738, 1346740734, 1346740648, 1346740645, 1346740640, 1346740638, 1346740580, 1346740573, 1346740568, 1346740565, 1346740562, 1346740559, 1346740527, 1346740522, 1346740517, 1346740514, 1346740511, 1346740509, 1346740453, 1346740450, 1346740448, 1346740401, 1346740398, 1346740396, 1346740336]} final : False mtd_id 4302 list_pids : [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881] Looping around the photos to save general results len do output : 13 /1346741192.Didn't retrieve data . /1346741190.Didn't retrieve data . /1346741185.Didn't retrieve data . /1346741182.Didn't retrieve data . /1346741132.Didn't retrieve data . /1346741119.Didn't retrieve data . /1346741106.Didn't retrieve data . /1346741097.Didn't retrieve data . /1346740895.Didn't retrieve data . /1346740892.Didn't retrieve data . /1346740889.Didn't retrieve data . /1346740886.Didn't retrieve data . /1346740881.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, '2684599') ('4302', '21635903', '1346741192', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741190', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741185', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741182', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741132', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741119', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741106', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741097', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740895', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740892', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740889', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740886', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740881', None, None, None, None, None, '2684599') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '21635903', '1346741192', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346741190', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346741185', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346741182', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346741132', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346741119', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346741106', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346741097', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346740895', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346740892', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346740889', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346740886', '0.06646773079835153', None, None, None, None, '2684599'), ('4302', '21635903', '1346740881', '0.06646773079835153', None, None, None, None, '2684599')] time used for this insertion : 0.01379537582397461 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06690788269042969 time spend to save output : 0.014400720596313477 total time spend for step 2 : 0.08130860328674316 step3:velours_tree Mon Mar 24 09:57:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21635903: [{'autre_refus': 21635904, 'cartonnette': 21635905, 'Teint_Dans_La_Masse': 21635906, 'plastique': 21635907, 'Carton_brun': 21635908, 'metal': 21635909, 'flou': 21635910, 'papier': 21635911, 'kraft': 21635912, 'mal_croppe': 21635913, 'environnement': 21635914, 'Carton_gris': 21635915}]} input_args_next_step : {21635903: ()} output_args : {21635903: [{'autre_refus': 21635904, 'cartonnette': 21635905, 'Teint_Dans_La_Masse': 21635906, 'plastique': 21635907, 'Carton_brun': 21635908, 'metal': 21635909, 'flou': 21635910, 'papier': 21635911, 'kraft': 21635912, 'mal_croppe': 21635913, 'environnement': 21635914, 'Carton_gris': 21635915}]} args : 21635903 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 : ({'autre_refus': 21635904, 'cartonnette': 21635905, 'Teint_Dans_La_Masse': 21635906, 'plastique': 21635907, 'Carton_brun': 21635908, 'metal': 21635909, 'flou': 21635910, 'papier': 21635911, 'kraft': 21635912, 'mal_croppe': 21635913, 'environnement': 21635914, 'Carton_gris': 21635915},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21635903) 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([21635903]) 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.35041189193725586 time spend to save output : 5.602836608886719e-05 total time spend for step 3 : 0.3504679203033447 step4:send_mail_cod Mon Mar 24 09:57:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} input_args_next_step : {1346741192: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346741192 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346741190 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346741185 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346741182 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346741132 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346741119 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346741106 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346741097 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346740895 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346740892 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346740889 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346740886 depend.output_id : 0 input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ()} output_args : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',)} args : 1346740881 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 : {21635903: [{'autre_refus': 21635904, 'cartonnette': 21635905, 'Teint_Dans_La_Masse': 21635906, 'plastique': 21635907, 'Carton_brun': 21635908, 'metal': 21635909, 'flou': 21635910, 'papier': 21635911, 'kraft': 21635912, 'mal_croppe': 21635913, 'environnement': 21635914, 'Carton_gris': 21635915}]} input_args_next_step : {1346741192: ('0.06646773079835153',), 1346741190: ('0.06646773079835153',), 1346741185: ('0.06646773079835153',), 1346741182: ('0.06646773079835153',), 1346741132: ('0.06646773079835153',), 1346741119: ('0.06646773079835153',), 1346741106: ('0.06646773079835153',), 1346741097: ('0.06646773079835153',), 1346740895: ('0.06646773079835153',), 1346740892: ('0.06646773079835153',), 1346740889: ('0.06646773079835153',), 1346740886: ('0.06646773079835153',), 1346740881: ('0.06646773079835153',), 21635903: ()} output_args : {21635903: [{'autre_refus': 21635904, 'cartonnette': 21635905, 'Teint_Dans_La_Masse': 21635906, 'plastique': 21635907, 'Carton_brun': 21635908, 'metal': 21635909, 'flou': 21635910, 'papier': 21635911, 'kraft': 21635912, 'mal_croppe': 21635913, 'environnement': 21635914, 'Carton_gris': 21635915}]} args : 21635903 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 :14, first value : ('0.06646773079835153',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21635903) 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 (1346741192,1346741190,1346741185,1346741182,1346741132,1346741119,1346741106,1346741097,1346740895,1346740892,1346740889,1346740886,1346740881) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346740881 begin to download photo : 1346740892 begin to download photo : 1346741106 begin to download photo : 1346741182 begin to download photo : 1346741192 download finish for photo 1346741192 download finish for photo 1346741106 begin to download photo : 1346741119 download finish for photo 1346741182 begin to download photo : 1346741185 download finish for photo 1346740881 begin to download photo : 1346740886 download finish for photo 1346740892 begin to download photo : 1346740895 download finish for photo 1346740886 begin to download photo : 1346740889 download finish for photo 1346741185 begin to download photo : 1346741190 download finish for photo 1346741119 begin to download photo : 1346741132 download finish for photo 1346740895 begin to download photo : 1346741097 download finish for photo 1346740889 download finish for photo 1346741190 download finish for photo 1346741132 download finish for photo 1346741097 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P21635903_24-03-2025_09_57_02.pdf 21635904 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=21635904 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346741088: '1742806482_842902_1346740816_38a96d56dfecd152077e3c62a51f1297_rle_crop_3726361345_0.png', 1346740822: '1742806332_2732831_1346740562_9e67e21fe53f8ae7c0a3757821206b96_rle_crop_3726359570_0.png', 1346740823: '1742806332_2732831_1346740559_14ce12258e9cd76b72e347d173f56a45_rle_crop_3726359577_0.png', 1346740920: '1742806454_2733828_1346740842_07514401d51d6d3769816d49a1290053_rle_crop_3726361146_0.png', 1346740924: '1742806454_2733828_1346740734_e74fdfae080dde8d63989176b3ad60ff_rle_crop_3726361159_0.png', 1346741048: '1742806482_842902_1346740838_7cf492055d4745c5a3fa0886fcb27184_rle_crop_3726361316_0.png', 1346741059: '1742806482_842902_1346740828_1a10339b76fd6f8e71a790f62255967e_rle_crop_3726361326_0.png', 1346741069: '1742806482_842902_1346740828_1a10339b76fd6f8e71a790f62255967e_rle_crop_3726361329_0.png', 1346741079: '1742806482_842902_1346740828_1a10339b76fd6f8e71a790f62255967e_rle_crop_3726361332_0.png', 1346740821: '1742806332_2732831_1346740565_76102f42a9cf84a62e04242f2ff79849_rle_crop_3726359557_0.png', 1346741089: '1742806482_842902_1346740816_38a96d56dfecd152077e3c62a51f1297_rle_crop_3726361349_0.png', 1346741090: '1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361356_0.png', 1346741091: '1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361366_0.png', 1346741198: '1742806552_2734852_1346740892_41fbe7efd808cede0273828bf22065b4_rle_crop_3726368113_0.png', 1346741199: '1742806552_2734852_1346740889_f8b3e8903ad8829ab359a2f656e6b9fe_rle_crop_3726368428_0.png', 1346741200: '1742806552_2734852_1346740886_34349ae25d57ec9e30bce8a023b4a811_rle_crop_3726373839_0.png', 1346741201: '1742806552_2734852_1346740886_34349ae25d57ec9e30bce8a023b4a811_rle_crop_3726373840_0.png', 1346741202: '1742806552_2734852_1346740881_35b1c8b85739a1ccb831595d4497d2aa_rle_crop_3726373858_0.png', 1346740713: '1742806251_2731925_1346740396_d725815f1399d1094f568cd8bbbfb74c_rle_crop_3726358659_0.png', 1346740650: '1742806243_837453_1346740448_4c6764263d47ddc5678df92203dfe99a_rle_crop_3726358412_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9ec7f3cafc7550043ee3b1bd6ed9f785_32710597.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/353977742bb209ab4b72a91f75171b00_79064655.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/df09510a38d38768848bba246ec11bb4_54474544.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0407131f64f2ac5ccacf370cf2a2ea49_6160592.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d84a21d9931b6f481073874cf8f2cb89_93463558.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/123b9b01f040fd6435f2a04756dcb530_20187085.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ef4a671998015264e162ea3e12375a43_64733759.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d82371c5fddeaa525791a0cdea9cc89a_27473921.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/35bf519665120f64fcd91fae2dfea7d7_15642392.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/46c0414a089600cc45f13c52b17d02da_9050232.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ae8a96a3142c959d15e1ed2f96532055_25193713.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cac7660a9e0fc0b7ce5ad58845f5f7cf_31323744.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ac91c5b56d8fa0ee09815252c62af36f_2371484.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/99e88038b5b8853ddb9aeba596b0de01_92810683.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/edb9b10b84d90da7a1392dd746c93183_27800866.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b4ec8cfa66bb2b646aee42038a2fe026_22069044.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d3acda5f0793ed995eab6679b643318c_93603222.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b97784d8242d70055b7dffdfbb6b3069_28489129.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/39e298c486eb4e515ca8c5952da5fde2_75683214.png change filename to text .imagette216359041742806622/ imagette216359041742806622/1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361356_0.png.png imagette216359041742806622/1742806552_2734852_1346740886_34349ae25d57ec9e30bce8a023b4a811_rle_crop_3726373840_0.png.png imagette216359041742806622/1742806454_2733828_1346740734_e74fdfae080dde8d63989176b3ad60ff_rle_crop_3726361159_0.png.png imagette216359041742806622/1742806552_2734852_1346740886_34349ae25d57ec9e30bce8a023b4a811_rle_crop_3726373839_0.png.png imagette216359041742806622/1742806332_2732831_1346740565_76102f42a9cf84a62e04242f2ff79849_rle_crop_3726359557_0.png.png imagette216359041742806622/1742806552_2734852_1346740881_35b1c8b85739a1ccb831595d4497d2aa_rle_crop_3726373858_0.png.png imagette216359041742806622/1742806552_2734852_1346740889_f8b3e8903ad8829ab359a2f656e6b9fe_rle_crop_3726368428_0.png.png imagette216359041742806622/1742806482_842902_1346740828_1a10339b76fd6f8e71a790f62255967e_rle_crop_3726361329_0.png.png imagette216359041742806622/1742806332_2732831_1346740562_9e67e21fe53f8ae7c0a3757821206b96_rle_crop_3726359570_0.png.png imagette216359041742806622/1742806552_2734852_1346740892_41fbe7efd808cede0273828bf22065b4_rle_crop_3726368113_0.png.png imagette216359041742806622/1742806482_842902_1346740828_1a10339b76fd6f8e71a790f62255967e_rle_crop_3726361326_0.png.png imagette216359041742806622/1742806482_842902_1346740816_38a96d56dfecd152077e3c62a51f1297_rle_crop_3726361345_0.png.png imagette216359041742806622/1742806251_2731925_1346740396_d725815f1399d1094f568cd8bbbfb74c_rle_crop_3726358659_0.png.png imagette216359041742806622/1742806482_842902_1346740828_1a10339b76fd6f8e71a790f62255967e_rle_crop_3726361332_0.png.png imagette216359041742806622/1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361366_0.png.png imagette216359041742806622/1742806332_2732831_1346740559_14ce12258e9cd76b72e347d173f56a45_rle_crop_3726359577_0.png.png imagette216359041742806622/1742806482_842902_1346740816_38a96d56dfecd152077e3c62a51f1297_rle_crop_3726361349_0.png.png imagette216359041742806622/1742806243_837453_1346740448_4c6764263d47ddc5678df92203dfe99a_rle_crop_3726358412_0.png.png imagette216359041742806622/1742806454_2733828_1346740842_07514401d51d6d3769816d49a1290053_rle_crop_3726361146_0.png.png imagette216359041742806622/1742806482_842902_1346740838_7cf492055d4745c5a3fa0886fcb27184_rle_crop_3726361316_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1abf6cc5588a2eca97184f6e38287c3a_80481468.png imagette216359041742806622 21635905 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=21635905 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346740653: '1742806243_837453_1346740450_a22ddd741289aba35522b5ac3a8e52b0_rle_crop_3726358262_0.png', 1346740691: '1742806232_2731668_1346740517_48866b4400b02ad37d103b10a93a876f_rle_crop_3726358496_0.png', 1346740692: '1742806232_2731668_1346740514_ddaa5ea271cafa784f1e94da674afa0a_rle_crop_3726358518_0.png', 1346740693: '1742806232_2731668_1346740511_b669285308f8e19a731a115e311bc92e_rle_crop_3726358538_0.png', 1346740694: '1742806232_2731668_1346740509_0c13780e9ea994b128961fb301ee8cd8_rle_crop_3726358599_0.png', 1346740695: '1742806232_2731668_1346740509_0c13780e9ea994b128961fb301ee8cd8_rle_crop_3726358589_0.png', 1346740717: '1742806251_2731925_1346740453_868945c517d2445e11062568a738f72d_rle_crop_3726358611_0.png', 1346740718: '1742806251_2731925_1346740453_868945c517d2445e11062568a738f72d_rle_crop_3726358610_0.png', 1346740719: '1742806251_2731925_1346740396_d725815f1399d1094f568cd8bbbfb74c_rle_crop_3726358652_0.png', 1346740720: '1742806251_2731925_1346740336_da82cc517f5b35cc87f63d7dd51e151b_rle_crop_3726358668_0.png', 1346740722: '1742806251_2731925_1346740336_da82cc517f5b35cc87f63d7dd51e151b_rle_crop_3726358665_0.png', 1346740829: '1742806332_2732831_1346740568_22cc770c0170d6ac882c3237acc248bd_rle_crop_3726359474_0.png', 1346740830: '1742806332_2732831_1346740568_22cc770c0170d6ac882c3237acc248bd_rle_crop_3726359473_0.png', 1346741205: '1742806552_2734852_1346740886_34349ae25d57ec9e30bce8a023b4a811_rle_crop_3726373838_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5997bf4eb6e07134bd612da1b64c76c3_54502443.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d88b87806f83ccaff9eadf26533edc26_44995482.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f89f0c739961cc6f09d306475739b38f_86453913.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7a1619d0b9b6f7a5a71f2120f3040988_71467614.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/594dba2d92d133275012ad484837211e_62537384.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7b186ca076f7e2fb931a18a1c5f2fd10_44443928.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6ea60fa44d60e20da190544f6e09f04a_28666751.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d9b26c15d4433df6c0770289c76b4d81_73549574.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/285c6129c5cd182d0edd09f44937ef2d_31353924.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/57787781563eb223429ea90ada7857d8_7611132.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e789119d13c7e48a75977df6a66fe642_49630179.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c9776ed1d1775dc21a35636aeb1a26e5_94791371.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b5ea6e76d97c71ecdc5f2c689e0c9f23_80574920.png change filename to text .imagette216359051742806623/ imagette216359051742806623/1742806232_2731668_1346740517_48866b4400b02ad37d103b10a93a876f_rle_crop_3726358496_0.png.png imagette216359051742806623/1742806232_2731668_1346740511_b669285308f8e19a731a115e311bc92e_rle_crop_3726358538_0.png.png imagette216359051742806623/1742806552_2734852_1346740886_34349ae25d57ec9e30bce8a023b4a811_rle_crop_3726373838_0.png.png imagette216359051742806623/1742806332_2732831_1346740568_22cc770c0170d6ac882c3237acc248bd_rle_crop_3726359473_0.png.png imagette216359051742806623/1742806232_2731668_1346740514_ddaa5ea271cafa784f1e94da674afa0a_rle_crop_3726358518_0.png.png imagette216359051742806623/1742806332_2732831_1346740568_22cc770c0170d6ac882c3237acc248bd_rle_crop_3726359474_0.png.png imagette216359051742806623/1742806232_2731668_1346740509_0c13780e9ea994b128961fb301ee8cd8_rle_crop_3726358589_0.png.png imagette216359051742806623/1742806243_837453_1346740450_a22ddd741289aba35522b5ac3a8e52b0_rle_crop_3726358262_0.png.png imagette216359051742806623/1742806251_2731925_1346740336_da82cc517f5b35cc87f63d7dd51e151b_rle_crop_3726358668_0.png.png imagette216359051742806623/1742806251_2731925_1346740453_868945c517d2445e11062568a738f72d_rle_crop_3726358610_0.png.png imagette216359051742806623/1742806232_2731668_1346740509_0c13780e9ea994b128961fb301ee8cd8_rle_crop_3726358599_0.png.png imagette216359051742806623/1742806251_2731925_1346740396_d725815f1399d1094f568cd8bbbfb74c_rle_crop_3726358652_0.png.png imagette216359051742806623/1742806251_2731925_1346740336_da82cc517f5b35cc87f63d7dd51e151b_rle_crop_3726358665_0.png.png imagette216359051742806623/1742806251_2731925_1346740453_868945c517d2445e11062568a738f72d_rle_crop_3726358611_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/527186add5dd7c32968aebeb94a74e7f_88426998.png imagette216359051742806623 21635907 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=21635907 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346740699: '1742806232_2731668_1346740509_0c13780e9ea994b128961fb301ee8cd8_rle_crop_3726358593_0.png', 1346740727: '1742806251_2731925_1346740396_d725815f1399d1094f568cd8bbbfb74c_rle_crop_3726358653_0.png', 1346740832: '1742806332_2732831_1346740573_0d5c1e314ccdaae020d52cfcdbc3199f_rle_crop_3726359458_0.png', 1346740833: '1742806332_2732831_1346740568_22cc770c0170d6ac882c3237acc248bd_rle_crop_3726359484_0.png', 1346740834: '1742806332_2732831_1346740565_76102f42a9cf84a62e04242f2ff79849_rle_crop_3726359562_0.png', 1346740835: '1742806332_2732831_1346740562_9e67e21fe53f8ae7c0a3757821206b96_rle_crop_3726359571_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1cd2c9711f8089f4a3880bb49c1e355e_88984554.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/aacd903b13278d489f2807c57bebe789_95588067.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d03b17a18a5985d31235d897b0238101_21813478.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4c40a07509c6b96e2224e1bafbde50b6_84577763.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7e2975bc584530e999cad3d6a8bf3e6d_87701604.png change filename to text .imagette216359071742806624/ imagette216359071742806624/1742806332_2732831_1346740568_22cc770c0170d6ac882c3237acc248bd_rle_crop_3726359484_0.png.png imagette216359071742806624/1742806332_2732831_1346740562_9e67e21fe53f8ae7c0a3757821206b96_rle_crop_3726359571_0.png.png imagette216359071742806624/1742806332_2732831_1346740573_0d5c1e314ccdaae020d52cfcdbc3199f_rle_crop_3726359458_0.png.png imagette216359071742806624/1742806232_2731668_1346740509_0c13780e9ea994b128961fb301ee8cd8_rle_crop_3726358593_0.png.png imagette216359071742806624/1742806332_2732831_1346740565_76102f42a9cf84a62e04242f2ff79849_rle_crop_3726359562_0.png.png imagette216359071742806624/1742806251_2731925_1346740396_d725815f1399d1094f568cd8bbbfb74c_rle_crop_3726358653_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9a8f7604bd47dfe2b3496a755c3b6c90_27163025.png imagette216359071742806624 21635909 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=21635909 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346740837: '1742806332_2732831_1346740559_14ce12258e9cd76b72e347d173f56a45_rle_crop_3726359576_0.png'} change filename to text .imagette216359091742806624/ imagette216359091742806624/1742806332_2732831_1346740559_14ce12258e9cd76b72e347d173f56a45_rle_crop_3726359576_0.png.png imagette216359101742806624/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/20ebd7010cda5bf68470c613ea2f234e_83770094.png imagette216359091742806624 21635910 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=21635910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216359101742806624 21635912 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=21635912 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346740729: '1742806251_2731925_1346740401_1dec2ead9f9b036d569631abbdee4efd_rle_crop_3726358622_0.png'} change filename to text .imagette216359121742806624/ imagette216359121742806624/1742806251_2731925_1346740401_1dec2ead9f9b036d569631abbdee4efd_rle_crop_3726358622_0.png.png imagette216359131742806624/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c329a5e23ad774c1cfb9bd171217b12a_10932674.png imagette216359121742806624 21635913 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=21635913 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216359131742806624 21635906 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=21635906 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346740675: '1742806232_2731668_1346740522_f7441ccd6e61738c0e741e7279e26a3d_rle_crop_3726358484_0.png', 1346740676: '1742806232_2731668_1346740517_48866b4400b02ad37d103b10a93a876f_rle_crop_3726358495_0.png', 1346740677: '1742806232_2731668_1346740514_ddaa5ea271cafa784f1e94da674afa0a_rle_crop_3726358527_0.png', 1346740707: '1742806251_2731925_1346740401_1dec2ead9f9b036d569631abbdee4efd_rle_crop_3726358626_0.png', 1346740796: '1742806362_840315_1346740638_2e4c59dff2269fc4fad04ddbe15a5ed4_rle_crop_3726359422_0.png', 1346740960: '1742806482_842902_1346740838_7cf492055d4745c5a3fa0886fcb27184_rle_crop_3726361313_0.png', 1346740968: '1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361364_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b090efc9225134a589f192de62b8f1bf_80848323.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/44195b65049c40d07a39978ad67bfb06_39361141.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c48ea51d2639233cf42a3a014c4ccda8_56735659.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4e3bc8a7587203d2261b924a0ec77e6f_10249332.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7ba921b9d6de975307a9663d0b0d6939_57569882.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7bbd563a294681522eef1e6508339db8_3895774.png change filename to text .imagette216359061742806624/ imagette216359061742806624/1742806251_2731925_1346740401_1dec2ead9f9b036d569631abbdee4efd_rle_crop_3726358626_0.png.png imagette216359061742806624/1742806232_2731668_1346740517_48866b4400b02ad37d103b10a93a876f_rle_crop_3726358495_0.png.png imagette216359061742806624/1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361364_0.png.png imagette216359061742806624/1742806232_2731668_1346740514_ddaa5ea271cafa784f1e94da674afa0a_rle_crop_3726358527_0.png.png imagette216359061742806624/1742806232_2731668_1346740522_f7441ccd6e61738c0e741e7279e26a3d_rle_crop_3726358484_0.png.png imagette216359061742806624/1742806362_840315_1346740638_2e4c59dff2269fc4fad04ddbe15a5ed4_rle_crop_3726359422_0.png.png imagette216359061742806624/1742806482_842902_1346740838_7cf492055d4745c5a3fa0886fcb27184_rle_crop_3726361313_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/55fc028a73478a58fb4b004a44a82106_80902542.png imagette216359061742806624 21635908 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=21635908 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346740656: '1742806243_837453_1346740450_a22ddd741289aba35522b5ac3a8e52b0_rle_crop_3726358265_0.png', 1346740697: '1742806232_2731668_1346740511_b669285308f8e19a731a115e311bc92e_rle_crop_3726358546_0.png', 1346740698: '1742806232_2731668_1346740509_0c13780e9ea994b128961fb301ee8cd8_rle_crop_3726358600_0.png', 1346740723: '1742806251_2731925_1346740453_868945c517d2445e11062568a738f72d_rle_crop_3726358617_0.png', 1346740725: '1742806251_2731925_1346740401_1dec2ead9f9b036d569631abbdee4efd_rle_crop_3726358628_0.png', 1346740726: '1742806251_2731925_1346740336_da82cc517f5b35cc87f63d7dd51e151b_rle_crop_3726358669_0.png', 1346741098: '1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361361_0.png', 1346741103: '1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361367_0.png', 1346741104: '1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361360_0.png', 1346741207: '1742806552_2734852_1346740889_f8b3e8903ad8829ab359a2f656e6b9fe_rle_crop_3726368426_0.png', 1346741208: '1742806552_2734852_1346740886_34349ae25d57ec9e30bce8a023b4a811_rle_crop_3726373843_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4219a6c0587bb11ba6389e750b3559e8_85390545.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d904268cfc8f4aae1f44308c32a73093_23668145.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f23f4b9546f8fef84667f95cf5b97005_65926272.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a81b5663e8b1b848884d429236ce04bb_47742937.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/aac41d0bb7dfaba182468892b19d39d5_14055013.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/023a266e60b66b3418cb1bf3d2cb205b_98532681.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0e7058fe66873d6eee5c157235fc6f3b_60825889.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3d5d379de2c2c280027ca5176d3aa4cd_59272054.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6c9abbe5cd1aca055f29525c042439e7_86875941.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c216a6b89eb15becd3cf450dec8142e5_27950852.png change filename to text .imagette216359081742806625/ imagette216359081742806625/1742806232_2731668_1346740509_0c13780e9ea994b128961fb301ee8cd8_rle_crop_3726358600_0.png.png imagette216359081742806625/1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361367_0.png.png imagette216359081742806625/1742806251_2731925_1346740453_868945c517d2445e11062568a738f72d_rle_crop_3726358617_0.png.png imagette216359081742806625/1742806232_2731668_1346740511_b669285308f8e19a731a115e311bc92e_rle_crop_3726358546_0.png.png imagette216359081742806625/1742806251_2731925_1346740401_1dec2ead9f9b036d569631abbdee4efd_rle_crop_3726358628_0.png.png imagette216359081742806625/1742806552_2734852_1346740886_34349ae25d57ec9e30bce8a023b4a811_rle_crop_3726373843_0.png.png imagette216359081742806625/1742806552_2734852_1346740889_f8b3e8903ad8829ab359a2f656e6b9fe_rle_crop_3726368426_0.png.png imagette216359081742806625/1742806251_2731925_1346740336_da82cc517f5b35cc87f63d7dd51e151b_rle_crop_3726358669_0.png.png imagette216359081742806625/1742806243_837453_1346740450_a22ddd741289aba35522b5ac3a8e52b0_rle_crop_3726358265_0.png.png imagette216359081742806625/1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361360_0.png.png imagette216359081742806625/1742806482_842902_1346740813_3c62e60509aeacf971dd66d56042711f_rle_crop_3726361361_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1890aef7e83f8a9d95be63d1ee0f41d0_92517279.png imagette216359081742806625 21635915 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=21635915 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346740685: '1742806232_2731668_1346740522_f7441ccd6e61738c0e741e7279e26a3d_rle_crop_3726358480_0.png', 1346740801: '1742806362_840315_1346740645_23154b030d5d548dae031d48ade7c48f_rle_crop_3726359332_0.png', 1346740802: '1742806362_840315_1346740640_fa700d45a566fc96dec1dec83e1cad60_rle_crop_3726359345_0.png', 1346740824: '1742806332_2732831_1346740573_0d5c1e314ccdaae020d52cfcdbc3199f_rle_crop_3726359463_0.png', 1346740825: '1742806332_2732831_1346740568_22cc770c0170d6ac882c3237acc248bd_rle_crop_3726359476_0.png', 1346740826: '1742806332_2732831_1346740565_76102f42a9cf84a62e04242f2ff79849_rle_crop_3726359551_0.png', 1346741093: '1742806482_842902_1346740816_38a96d56dfecd152077e3c62a51f1297_rle_crop_3726361348_0.png', 1346741204: '1742806552_2734852_1346740886_34349ae25d57ec9e30bce8a023b4a811_rle_crop_3726373847_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c695435de05b49d2a8ec73b50b5bd4b0_90720761.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4c4e7650cbbe24f2ea8be3440c05d367_82329471.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e60ef834cb023fbd2feff6a2e788eb97_2754859.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/df8d8e7878c31b95a91341562824c4ba_33106375.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b9234311b568389fb7e333d3d5175956_50227850.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4a937769be4abb7ca4604307931ccefa_84623734.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e0cfddc0678030519509cbdd9ac1c816_26200007.png change filename to text .imagette216359151742806625/ imagette216359151742806625/1742806482_842902_1346740816_38a96d56dfecd152077e3c62a51f1297_rle_crop_3726361348_0.png.png imagette216359151742806625/1742806332_2732831_1346740565_76102f42a9cf84a62e04242f2ff79849_rle_crop_3726359551_0.png.png imagette216359151742806625/1742806362_840315_1346740640_fa700d45a566fc96dec1dec83e1cad60_rle_crop_3726359345_0.png.png imagette216359151742806625/1742806332_2732831_1346740573_0d5c1e314ccdaae020d52cfcdbc3199f_rle_crop_3726359463_0.png.png imagette216359151742806625/1742806552_2734852_1346740886_34349ae25d57ec9e30bce8a023b4a811_rle_crop_3726373847_0.png.png imagette216359151742806625/1742806362_840315_1346740645_23154b030d5d548dae031d48ade7c48f_rle_crop_3726359332_0.png.png imagette216359151742806625/1742806232_2731668_1346740522_f7441ccd6e61738c0e741e7279e26a3d_rle_crop_3726358480_0.png.png imagette216359151742806625/1742806332_2732831_1346740568_22cc770c0170d6ac882c3237acc248bd_rle_crop_3726359476_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7b2c877383c184cd6b655f92650e55db_51363294.png imagette216359151742806625 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21635903 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21635916,21635917,21635918,21635919,21635920,21635921,21635922,21635923,21635924,21635925,21635926,21635927?tags=autre_refus,cartonnette,Teint_Dans_La_Masse,plastique,Carton_brun,metal,flou,papier,kraft,mal_croppe,environnement,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1346741192] : ('0.06646773079835153',) no score found for photo 1346741192 We are sending mail with results at report@fotonower.com args[1346741190] : ('0.06646773079835153',) no score found for photo 1346741190 We are sending mail with results at report@fotonower.com args[1346741185] : ('0.06646773079835153',) no score found for photo 1346741185 We are sending mail with results at report@fotonower.com args[1346741182] : ('0.06646773079835153',) no score found for photo 1346741182 We are sending mail with results at report@fotonower.com args[1346741132] : ('0.06646773079835153',) no score found for photo 1346741132 We are sending mail with results at report@fotonower.com args[1346741119] : ('0.06646773079835153',) no score found for photo 1346741119 We are sending mail with results at report@fotonower.com args[1346741106] : ('0.06646773079835153',) no score found for photo 1346741106 We are sending mail with results at report@fotonower.com args[1346741097] : ('0.06646773079835153',) no score found for photo 1346741097 We are sending mail with results at report@fotonower.com args[1346740895] : ('0.06646773079835153',) no score found for photo 1346740895 We are sending mail with results at report@fotonower.com args[1346740892] : ('0.06646773079835153',) no score found for photo 1346740892 We are sending mail with results at report@fotonower.com args[1346740889] : ('0.06646773079835153',) no score found for photo 1346740889 We are sending mail with results at report@fotonower.com args[1346740886] : ('0.06646773079835153',) no score found for photo 1346740886 We are sending mail with results at report@fotonower.com args[1346740881] : ('0.06646773079835153',) no score found for photo 1346740881 We are sending mail with results at report@fotonower.com refus_total : 0.06646773079835153 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=21635903 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_P21635903_24-03-2025_09_57_02.pdf results_Auto_P21635903_24-03-2025_09_57_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21635903_24-03-2025_09_57_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21635903','results_Auto_P21635903_24-03-2025_09_57_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21635903_24-03-2025_09_57_02.pdf','pdf','','0.32','0.06646773079835153') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21635903]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881] map_info['map_portfolio_photo'] : {21635903: [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881, 1346740842, 1346740838, 1346740828, 1346740816, 1346740813, 1346740742, 1346740738, 1346740734, 1346740648, 1346740645, 1346740640, 1346740638, 1346740580, 1346740573, 1346740568, 1346740565, 1346740562, 1346740559, 1346740527, 1346740522, 1346740517, 1346740514, 1346740511, 1346740509, 1346740453, 1346740450, 1346740448, 1346740401, 1346740398, 1346740396, 1346740336]} final : False mtd_id 4302 list_pids : [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881] 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, '2684599') ('4302', '21635903', '1346741192', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741190', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741185', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741182', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741132', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741119', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741106', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741097', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740895', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740892', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740889', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740886', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740881', None, None, None, None, None, '2684599') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '21635903', '1346741192', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741190', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741185', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741182', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741132', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741119', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741106', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741097', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740895', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740892', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740889', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740886', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740881', None, None, None, None, None, '2684599')] time used for this insertion : 0.01552724838256836 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.345487833023071 time spend to save output : 0.015767574310302734 total time spend for step 4 : 5.361255407333374 step5:split_time_score Mon Mar 24 09:57:07 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 : ['21635903'] 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 : [('21635903',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21635903) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346741192: {'path': 'temp/1742806622_3660832_1346741192_8ffdc881564050e4c95748b7a4f109b4.jpg', 'extension': 'jpg'}, 1346740881: {'path': 'temp/1742806622_3660832_1346740881_35b1c8b85739a1ccb831595d4497d2aa.jpg', 'extension': 'jpg'}, 1346740886: {'path': 'temp/1742806622_3660832_1346740886_34349ae25d57ec9e30bce8a023b4a811.jpg', 'extension': 'jpg'}, 1346740889: {'path': 'temp/1742806622_3660832_1346740889_f8b3e8903ad8829ab359a2f656e6b9fe.jpg', 'extension': 'jpg'}, 1346741182: {'path': 'temp/1742806622_3660832_1346741182_ec1e9daadda9fda6fea617e7370fdce7.jpg', 'extension': 'jpg'}, 1346741185: {'path': 'temp/1742806622_3660832_1346741185_6185d05708d7df1504a3cbbc1764285f.jpg', 'extension': 'jpg'}, 1346741190: {'path': 'temp/1742806622_3660832_1346741190_b9225370091533a5183e34934dd39e9f.jpg', 'extension': 'jpg'}, 1346741106: {'path': 'temp/1742806622_3660832_1346741106_f3636fb1a17408df6c4ea548203b0243.jpg', 'extension': 'jpg'}, 1346741119: {'path': 'temp/1742806622_3660832_1346741119_3723090d31290560e34315584a188c7a.jpg', 'extension': 'jpg'}, 1346741132: {'path': 'temp/1742806622_3660832_1346741132_d55d779afef0bc573e095d7f593dbe29.jpg', 'extension': 'jpg'}, 1346740892: {'path': 'temp/1742806622_3660832_1346740892_41fbe7efd808cede0273828bf22065b4.jpg', 'extension': 'jpg'}, 1346740895: {'path': 'temp/1742806622_3660832_1346740895_c4023a3bf38f3c415d5b29bfb950bfb9.jpg', 'extension': 'jpg'}, 1346741097: {'path': 'temp/1742806622_3660832_1346741097_c3203aaa725f5452f059b541c62edea2.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 = 21635903; (('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 = 21635903 group by h (('09', 44),) 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=21635903 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 (21635903) 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 (21635903) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24032025 21635903 Nombre de photos uploadées : 44 / 23040 (0%) 24032025 21635903 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 24032025 21635903 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1346740401, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1dec2ead9f9b036d569631abbdee4efd.jpg', 'username': None, 'uploaded_at': 1742806029, 'text': 'image_24032025_09_45_04_010158m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346740398, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e05d7a3bbbc7f4f786064f019c9f64c7.jpg', 'username': None, 'uploaded_at': 1742806029, 'text': 'image_24032025_09_45_14_010151m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346740396, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d725815f1399d1094f568cd8bbbfb74c.jpg', 'username': None, 'uploaded_at': 1742806029, 'text': 'image_24032025_09_45_33_010141m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1346740336, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/da82cc517f5b35cc87f63d7dd51e151b.jpg', 'username': None, 'uploaded_at': 1742806029, 'text': 'image_24032025_09_45_43_010145m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002147674560546875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21635903, '2025-03-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1682789,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02330183982849121 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= 1682789 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690875, 'mtr_portfolio_id': 21635429, 'dashboard_result_id': 9570797, '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_P21635429_24-03-2025_09_47_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21635430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21635431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21635432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21635433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21635434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21635435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21635436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21635437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21635438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21635439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21635440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21635441, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690875, 'mtr_portfolio_id': 21635903, 'dashboard_result_id': 9570798, '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_P21635903_24-03-2025_09_55_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21635904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21635905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21635906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21635907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21635908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21635909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21635910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21635911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21635912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21635913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21635914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21635915, '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 = 21635429 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': 2684560, 'mtr_portfolio_id': 21635429, 'created_at': datetime.datetime(2025, 3, 24, 9, 47, 58), 'result': '0.0737746418590291', 'result_long': None, 'result_double': None}] Qualite : 0.0737746418590291 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21635429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21635429_24-03-2025_09_47_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21635429 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_P21635429_24-03-2025_09_47_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21635430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21635431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21635432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21635433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21635434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21635435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21635436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21635437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21635438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21635439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21635440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21635441, 'pht': 3726}}" where mtr_portfolio_id = 21635429 and dashboard_run_id = 1690875 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`=21635429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9570797, 0.0737746418590291, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21635429_24-03-2025_09_47_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21635430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21635431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21635432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21635433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21635434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21635435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21635436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21635437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21635438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21635439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21635440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21635441, '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 = 21635903 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': 2684599, 'mtr_portfolio_id': 21635903, 'created_at': datetime.datetime(2025, 3, 24, 9, 57, 1), 'result': '0.06646773079835153', 'result_long': None, 'result_double': None}] Qualite : 0.06646773079835153 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21635903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21635903_24-03-2025_09_57_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21635903 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_P21635903_24-03-2025_09_57_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21635904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21635905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21635906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21635907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21635908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21635909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21635910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21635911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21635912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21635913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21635914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21635915, 'pht': 3726}}" where mtr_portfolio_id = 21635903 and dashboard_run_id = 1690875 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`=21635903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9570798, 0.06646773079835153, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21635903_24-03-2025_09_57_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21635904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21635905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21635906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21635907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21635908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21635909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21635910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21635911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21635912, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21635913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21635914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21635915, '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 (21635429,21635903) result : ((1346738800,), (1346738803,), (1346738807,), (1346738860,), (1346739046,), (1346739079,), (1346739112,), (1346739150,), (1346739312,), (1346739315,), (1346739318,), (1346739321,), (1346739326,), (1346739331,), (1346739375,), (1346739379,), (1346739382,), (1346739425,), (1346739429,), (1346739433,), (1346739436,), (1346739443,), (1346739447,), (1346739594,), (1346739598,), (1346739607,), (1346739621,), (1346739629,), (1346739633,), (1346739657,), (1346739663,), (1346739668,), (1346739675,), (1346739730,), (1346739738,), (1346739744,), (1346739761,), (1346739767,), (1346739791,), (1346739797,), (1346739806,), (1346739811,), (1346739826,), (1346739833,), (1346739864,), (1346739874,), (1346739878,), (1346739891,), (1346739897,), (1346739901,), (1346740108,), (1346740112,), (1346740205,), (1346740207,), (1346740209,), (1346740253,), (1346740256,), (1346740259,), (1346740261,), (1346740408,), (1346740336,), (1346740396,), (1346740398,), (1346740401,), (1346740448,), (1346740450,), (1346740453,), (1346740509,), (1346740511,), (1346740514,), (1346740517,), (1346740522,), (1346740527,), (1346740559,), (1346740562,), (1346740565,), (1346740568,), (1346740573,), (1346740580,), (1346740638,), (1346740640,), (1346740645,), (1346740648,), (1346740734,), (1346740738,), (1346740742,), (1346740813,), (1346740816,), (1346740828,), (1346740838,), (1346740842,), (1346740881,), (1346740886,), (1346740889,), (1346740892,), (1346740895,), (1346741097,), (1346741106,), (1346741119,), (1346741132,), (1346741182,), (1346741185,), (1346741190,), (1346741192,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24032025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21635903]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881] map_info['map_portfolio_photo'] : {21635903: [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881, 1346740842, 1346740838, 1346740828, 1346740816, 1346740813, 1346740742, 1346740738, 1346740734, 1346740648, 1346740645, 1346740640, 1346740638, 1346740580, 1346740573, 1346740568, 1346740565, 1346740562, 1346740559, 1346740527, 1346740522, 1346740517, 1346740514, 1346740511, 1346740509, 1346740453, 1346740450, 1346740448, 1346740401, 1346740398, 1346740396, 1346740336]} final : True mtd_id 4302 list_pids : [1346741192, 1346741190, 1346741185, 1346741182, 1346741132, 1346741119, 1346741106, 1346741097, 1346740895, 1346740892, 1346740889, 1346740886, 1346740881] Looping around the photos to save general results len do output : 1 /21635903Didn'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, '2684599') ('4302', '21635903', '1346741192', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741190', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741185', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741182', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741132', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741119', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741106', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346741097', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740895', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740892', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740889', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740886', None, None, None, None, None, '2684599') ('4302', None, None, None, None, None, None, None, '2684599') ('4302', '21635903', '1346740881', None, None, None, None, None, '2684599') 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', None, '21635903', 'None', None, None, None, None, '2684599'), ('4302', '21635903', '1346741192', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741190', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741185', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741182', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741132', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741119', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741106', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346741097', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740895', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740892', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740889', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740886', None, None, None, None, None, '2684599'), ('4302', '21635903', '1346740881', None, None, None, None, None, '2684599')] time used for this insertion : 0.014328479766845703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.23595952987670898 time spend to save output : 0.014580726623535156 total time spend for step 5 : 0.25054025650024414 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 (2684599) 2.41user 2.34system 0:10.94elapsed 43%CPU (0avgtext+0avgdata 161356maxresident)k 23520inputs+18136outputs (128major+75238minor)pagefaults 0swaps