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 : 3507842 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 (4030066) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4030066) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415165 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4030066'] with mtr_portfolio_ids : ['28415165'] and first list_photo_ids : [] new path : /proc/3507842/ Name: python3 Umask: 0002 State: R (running) Tgid: 3507842 Ngid: 0 Pid: 3507842 PPid: 3507841 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3507842 NSpid: 3507842 NSpgid: 3506408 NSsid: 3506408 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98376 kB VmRSS: 98376 kB RssAnon: 59904 kB RssFile: 38472 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 43 nonvoluntary_ctxt_switches: 100 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3507842', 'Ngid': '0', 'Pid': '3507842', 'PPid': '3507841', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3507842', 'NSpid': '3507842', 'NSpgid': '3506408', 'NSsid': '3506408', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98376 kB', 'VmRSS': '98376 kB', 'RssAnon': '59904 kB', 'RssFile': '38472 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '43', 'nonvoluntary_ctxt_switches': '100'} ('datou_batch_current', '3507842', '1106908', '0', '1106884', '865636', '98376', b'', 'marlene', '4030066') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28415165) 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 (4030066 ) ) 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 (28415165) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1393841678, 'portfolio_id': 28415165}, {'photo_id': 1393841676, 'portfolio_id': 28415165}, {'photo_id': 1393841674, 'portfolio_id': 28415165}, {'photo_id': 1393841629, 'portfolio_id': 28415165}, {'photo_id': 1393841625, 'portfolio_id': 28415165}, {'photo_id': 1393841622, 'portfolio_id': 28415165}, {'photo_id': 1393841620, 'portfolio_id': 28415165}, {'photo_id': 1393841618, 'portfolio_id': 28415165}, {'photo_id': 1393841616, 'portfolio_id': 28415165}, {'photo_id': 1393841592, 'portfolio_id': 28415165}, {'photo_id': 1393841588, 'portfolio_id': 28415165}, {'photo_id': 1393841586, 'portfolio_id': 28415165}, {'photo_id': 1393841584, 'portfolio_id': 28415165}, {'photo_id': 1393841554, 'portfolio_id': 28415165}, {'photo_id': 1393841549, 'portfolio_id': 28415165}, {'photo_id': 1393841546, 'portfolio_id': 28415165}, {'photo_id': 1393841544, 'portfolio_id': 28415165}, {'photo_id': 1393841542, 'portfolio_id': 28415165}, {'photo_id': 1393841522, 'portfolio_id': 28415165}, {'photo_id': 1393841519, 'portfolio_id': 28415165}, {'photo_id': 1393841517, 'portfolio_id': 28415165}, {'photo_id': 1393841514, 'portfolio_id': 28415165}, {'photo_id': 1393841489, 'portfolio_id': 28415165}, {'photo_id': 1393841485, 'portfolio_id': 28415165}, {'photo_id': 1393841480, 'portfolio_id': 28415165}, {'photo_id': 1393841478, 'portfolio_id': 28415165}, {'photo_id': 1393841476, 'portfolio_id': 28415165}, {'photo_id': 1393841474, 'portfolio_id': 28415165}, {'photo_id': 1393841457, 'portfolio_id': 28415165}, {'photo_id': 1393841452, 'portfolio_id': 28415165}, {'photo_id': 1393841448, 'portfolio_id': 28415165}, {'photo_id': 1393841446, 'portfolio_id': 28415165}, {'photo_id': 1393841444, 'portfolio_id': 28415165}, {'photo_id': 1393841368, 'portfolio_id': 28415165}, {'photo_id': 1393841364, 'portfolio_id': 28415165}, {'photo_id': 1393841361, 'portfolio_id': 28415165}, {'photo_id': 1393841358, 'portfolio_id': 28415165}, {'photo_id': 1393841340, 'portfolio_id': 28415165}, {'photo_id': 1393841336, 'portfolio_id': 28415165}, {'photo_id': 1393841334, 'portfolio_id': 28415165}, {'photo_id': 1393841320, 'portfolio_id': 28415165}, {'photo_id': 1393841305, 'portfolio_id': 28415165}, {'photo_id': 1393841301, 'portfolio_id': 28415165}, {'photo_id': 1393841298, 'portfolio_id': 28415165}, {'photo_id': 1393841296, 'portfolio_id': 28415165}, {'photo_id': 1393841295, 'portfolio_id': 28415165}, {'photo_id': 1393841294, 'portfolio_id': 28415165}, {'photo_id': 1393841228, 'portfolio_id': 28415165}, {'photo_id': 1393841207, 'portfolio_id': 28415165}, {'photo_id': 1393841188, 'portfolio_id': 28415165}, {'photo_id': 1393840912, 'portfolio_id': 28415165}, {'photo_id': 1393840911, 'portfolio_id': 28415165}, {'photo_id': 1393840909, 'portfolio_id': 28415165}, {'photo_id': 1393840736, 'portfolio_id': 28415165}, {'photo_id': 1393840703, 'portfolio_id': 28415165}, {'photo_id': 1393840672, 'portfolio_id': 28415165}, {'photo_id': 1393840638, 'portfolio_id': 28415165}, {'photo_id': 1393840163, 'portfolio_id': 28415165}, {'photo_id': 1393840116, 'portfolio_id': 28415165}] map_portfolio_id_photo_id: {28415165: [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616, 1393841592, 1393841588, 1393841586, 1393841584, 1393841554, 1393841549, 1393841546, 1393841544, 1393841542, 1393841522, 1393841519, 1393841517, 1393841514, 1393841489, 1393841485, 1393841480, 1393841478, 1393841476, 1393841474, 1393841457, 1393841452, 1393841448, 1393841446, 1393841444, 1393841368, 1393841364, 1393841361, 1393841358, 1393841340, 1393841336, 1393841334, 1393841320, 1393841305, 1393841301, 1393841298, 1393841296, 1393841295, 1393841294, 1393841228, 1393841207, 1393841188, 1393840912, 1393840911, 1393840909, 1393840736, 1393840703, 1393840672, 1393840638, 1393840163, 1393840116]} ##### 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.016552209854125977 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Nov 11 00:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28415165) 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 : 28415165 get user id for portfolio 28415165 get sub ptf for main ptf 28415165, type 3726 and hashtags ['mal_croppe', 'autre_refus', 'kraft', 'flou', 'Teint_Dans_La_Masse', 'environnement', 'Carton_brun', 'plastique', 'cartonnette', 'Carton_gris', 'papier', 'metal'] 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`=28415165 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','kraft','flou','Teint_Dans_La_Masse','environnement','Carton_brun','plastique','cartonnette','Carton_gris','papier','metal')) 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`=28415165 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','kraft','flou','Teint_Dans_La_Masse','environnement','Carton_brun','plastique','cartonnette','Carton_gris','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 28415165, 'sub_port_id': 28415183, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244203, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 28415165, 'sub_port_id': 28415184, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244204, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}, 'autre_refus': {'main_port_id': 28415165, 'sub_port_id': 28415185, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244205, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}, 'environnement': {'main_port_id': 28415165, 'sub_port_id': 28415186, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244206, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}, 'Carton_brun': {'main_port_id': 28415165, 'sub_port_id': 28415188, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244207, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}, 'kraft': {'main_port_id': 28415165, 'sub_port_id': 28415189, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244208, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}, 'metal': {'main_port_id': 28415165, 'sub_port_id': 28415190, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244209, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}, 'papier': {'main_port_id': 28415165, 'sub_port_id': 28415192, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244210, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}, 'cartonnette': {'main_port_id': 28415165, 'sub_port_id': 28415193, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244211, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}, 'Carton_gris': {'main_port_id': 28415165, 'sub_port_id': 28415194, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244212, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}, 'plastique': {'main_port_id': 28415165, 'sub_port_id': 28415196, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244213, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}, 'mal_croppe': {'main_port_id': 28415165, 'sub_port_id': 28415197, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244214, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28415183 , 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=28415165 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 (28415183) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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 28415184 , 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=28415165 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 (28415184) result : ((1393840955,), (1393841300,), (1393841394,), (1393841565,), (1393841566,), (1393841577,), (1393841659,), (1393841660,), (1393841661,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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 28415185 , 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=28415165 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 (28415185) result : ((1393841493,), (1393841568,), (1393841569,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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 28415186 , 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=28415165 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 (28415186) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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 28415188 , 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=28415165 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 (28415188) result : ((1393841303,), (1393841325,), (1393841326,), (1393841433,), (1393841434,), (1393841498,), (1393841579,), (1393841670,), (1393841671,), (1393841672,), (1393841673,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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 28415189 , 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=28415165 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 (28415189) result : ((1393841637,), (1393841638,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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 28415190 , 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=28415165 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 (28415190) result : ((1393841499,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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 28415192 , 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=28415165 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 (28415192) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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 28415193 , 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=28415165 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 (28415193) result : ((1393841324,), (1393841399,), (1393841401,), (1393841403,), (1393841405,), (1393841432,), (1393841495,), (1393841506,), (1393841572,), (1393841669,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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 28415194 , 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=28415165 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 (28415194) result : ((1393840964,), (1393841397,), (1393841494,), (1393841570,), (1393841578,), (1393841635,), (1393841662,), (1393841663,), (1393841664,), (1393841665,), (1393841666,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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 28415196 , 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=28415165 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 (28415196) result : ((1393841304,), (1393841507,), (1393841508,), (1393841509,), (1393841573,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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 28415197 , 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=28415165 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 (28415197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) 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`=28415165 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','kraft','flou','Teint_Dans_La_Masse','environnement','Carton_brun','plastique','cartonnette','Carton_gris','papier','metal')) 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`=28415165 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','kraft','flou','Teint_Dans_La_Masse','environnement','Carton_brun','plastique','cartonnette','Carton_gris','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 28415165, 'sub_port_id': 28415202, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244233, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28415165, 'sub_port_id': 28415203, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244234, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}, 'autre_refus': {'main_port_id': 28415165, 'sub_port_id': 28415204, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244235, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}, 'environnement': {'main_port_id': 28415165, 'sub_port_id': 28415205, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244236, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}, 'Carton_brun': {'main_port_id': 28415165, 'sub_port_id': 28415206, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244237, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}, 'kraft': {'main_port_id': 28415165, 'sub_port_id': 28415207, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244238, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}, 'metal': {'main_port_id': 28415165, 'sub_port_id': 28415208, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244239, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}, 'papier': {'main_port_id': 28415165, 'sub_port_id': 28415209, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244240, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}, 'cartonnette': {'main_port_id': 28415165, 'sub_port_id': 28415210, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244241, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}, 'Carton_gris': {'main_port_id': 28415165, 'sub_port_id': 28415211, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244242, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}, 'plastique': {'main_port_id': 28415165, 'sub_port_id': 28415212, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244243, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}, 'mal_croppe': {'main_port_id': 28415165, 'sub_port_id': 28415213, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19244244, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415202,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415183 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415203,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415184 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415185 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415186 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415188 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415189 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415190 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415192 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28415213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28415197 lien utilise dans velours : https://marlene.fotonower.com/velours/28415202,28415203,28415204,28415205,28415206,28415207,28415208,28415209,28415210,28415211,28415212,28415213?tags=flou,Teint_Dans_La_Masse,autre_refus,environnement,Carton_brun,kraft,metal,papier,cartonnette,Carton_gris,plastique,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28415165]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616] map_info['map_portfolio_photo'] : {28415165: [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616, 1393841592, 1393841588, 1393841586, 1393841584, 1393841554, 1393841549, 1393841546, 1393841544, 1393841542, 1393841522, 1393841519, 1393841517, 1393841514, 1393841489, 1393841485, 1393841480, 1393841478, 1393841476, 1393841474, 1393841457, 1393841452, 1393841448, 1393841446, 1393841444, 1393841368, 1393841364, 1393841361, 1393841358, 1393841340, 1393841336, 1393841334, 1393841320, 1393841305, 1393841301, 1393841298, 1393841296, 1393841295, 1393841294, 1393841228, 1393841207, 1393841188, 1393840912, 1393840911, 1393840909, 1393840736, 1393840703, 1393840672, 1393840638, 1393840163, 1393840116]} final : False mtd_id 4302 list_pids : [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616] Looping around the photos to save general results len do output : 1 /28415165. 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, '4030066') ('4302', '28415165', '1393841678', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841676', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841674', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841629', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841625', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841622', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841620', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841618', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841616', None, None, None, None, None, '4030066') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '28415165', "{'flou': 28415183, 'Teint_Dans_La_Masse': 28415184, 'autre_refus': 28415185, 'environnement': 28415186, 'Carton_brun': 28415188, 'kraft': 28415189, 'metal': 28415190, 'papier': 28415192, 'cartonnette': 28415193, 'Carton_gris': 28415194, 'plastique': 28415196, 'mal_croppe': 28415197}", None, None, None, None, '4030066'), ('4302', '28415165', '1393841678', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841676', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841674', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841629', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841625', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841622', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841620', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841618', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841616', None, None, None, None, None, '4030066')] time used for this insertion : 0.013560295104980469 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.523444652557373 time spend to save output : 0.013914346694946289 total time spend for step 1 : 1.5373589992523193 step2:final Tue Nov 11 00:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (28415165) 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 28415165 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1393840163,1393840116,1393840736,1393840703,1393840672,1393840638,1393840912,1393840911,1393840909,1393841228,1393841320,1393841207,1393841305,1393841188,1393841301,1393841298,1393841296,1393841295,1393841294,1393841340,1393841336,1393841334,1393841368,1393841364,1393841361,1393841358,1393841457,1393841452,1393841448,1393841446,1393841444,1393841489,1393841485,1393841480,1393841478,1393841476,1393841474,1393841522,1393841519,1393841517,1393841514,1393841554,1393841549,1393841546,1393841544,1393841542,1393841592,1393841588,1393841586,1393841584,1393841629,1393841625,1393841622,1393841620,1393841618,1393841616,1393841678,1393841676,1393841674); 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([28415165]) Inside saveOutput : final : False verbose : True original output for save of step final : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} new output for save of step final : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616] map_info['map_portfolio_photo'] : {28415165: [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616, 1393841592, 1393841588, 1393841586, 1393841584, 1393841554, 1393841549, 1393841546, 1393841544, 1393841542, 1393841522, 1393841519, 1393841517, 1393841514, 1393841489, 1393841485, 1393841480, 1393841478, 1393841476, 1393841474, 1393841457, 1393841452, 1393841448, 1393841446, 1393841444, 1393841368, 1393841364, 1393841361, 1393841358, 1393841340, 1393841336, 1393841334, 1393841320, 1393841305, 1393841301, 1393841298, 1393841296, 1393841295, 1393841294, 1393841228, 1393841207, 1393841188, 1393840912, 1393840911, 1393840909, 1393840736, 1393840703, 1393840672, 1393840638, 1393840163, 1393840116]} final : False mtd_id 4302 list_pids : [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616] Looping around the photos to save general results len do output : 9 /1393841678.Didn't retrieve data . /1393841676.Didn't retrieve data . /1393841674.Didn't retrieve data . /1393841629.Didn't retrieve data . /1393841625.Didn't retrieve data . /1393841622.Didn't retrieve data . /1393841620.Didn't retrieve data . /1393841618.Didn't retrieve data . /1393841616.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, '4030066') ('4302', '28415165', '1393841678', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841676', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841674', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841629', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841625', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841622', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841620', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841618', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841616', None, None, None, None, None, '4030066') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '28415165', '1393841678', '0.0629042975880281', None, None, None, None, '4030066'), ('4302', '28415165', '1393841676', '0.0629042975880281', None, None, None, None, '4030066'), ('4302', '28415165', '1393841674', '0.0629042975880281', None, None, None, None, '4030066'), ('4302', '28415165', '1393841629', '0.0629042975880281', None, None, None, None, '4030066'), ('4302', '28415165', '1393841625', '0.0629042975880281', None, None, None, None, '4030066'), ('4302', '28415165', '1393841622', '0.0629042975880281', None, None, None, None, '4030066'), ('4302', '28415165', '1393841620', '0.0629042975880281', None, None, None, None, '4030066'), ('4302', '28415165', '1393841618', '0.0629042975880281', None, None, None, None, '4030066'), ('4302', '28415165', '1393841616', '0.0629042975880281', None, None, None, None, '4030066')] time used for this insertion : 0.016239166259765625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06700611114501953 time spend to save output : 0.016811609268188477 total time spend for step 2 : 0.08381772041320801 step3:velours_tree Tue Nov 11 00:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28415165: [{'flou': 28415183, 'Teint_Dans_La_Masse': 28415184, 'autre_refus': 28415185, 'environnement': 28415186, 'Carton_brun': 28415188, 'kraft': 28415189, 'metal': 28415190, 'papier': 28415192, 'cartonnette': 28415193, 'Carton_gris': 28415194, 'plastique': 28415196, 'mal_croppe': 28415197}]} input_args_next_step : {28415165: ()} output_args : {28415165: [{'flou': 28415183, 'Teint_Dans_La_Masse': 28415184, 'autre_refus': 28415185, 'environnement': 28415186, 'Carton_brun': 28415188, 'kraft': 28415189, 'metal': 28415190, 'papier': 28415192, 'cartonnette': 28415193, 'Carton_gris': 28415194, 'plastique': 28415196, 'mal_croppe': 28415197}]} args : 28415165 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 : ({'flou': 28415183, 'Teint_Dans_La_Masse': 28415184, 'autre_refus': 28415185, 'environnement': 28415186, 'Carton_brun': 28415188, 'kraft': 28415189, 'metal': 28415190, 'papier': 28415192, 'cartonnette': 28415193, 'Carton_gris': 28415194, 'plastique': 28415196, 'mal_croppe': 28415197},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28415165) 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([28415165]) 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.30432796478271484 time spend to save output : 6.723403930664062e-05 total time spend for step 3 : 0.3043951988220215 step4:send_mail_cod Tue Nov 11 00:15: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 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 : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} input_args_next_step : {1393841678: ()} output_args : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} args : 1393841678 depend.output_id : 0 input_args_next_step : {1393841678: ('0.0629042975880281',), 1393841676: ()} output_args : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} args : 1393841676 depend.output_id : 0 input_args_next_step : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ()} output_args : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} args : 1393841674 depend.output_id : 0 input_args_next_step : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ()} output_args : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} args : 1393841629 depend.output_id : 0 input_args_next_step : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ()} output_args : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} args : 1393841625 depend.output_id : 0 input_args_next_step : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ()} output_args : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} args : 1393841622 depend.output_id : 0 input_args_next_step : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ()} output_args : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} args : 1393841620 depend.output_id : 0 input_args_next_step : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ()} output_args : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} args : 1393841618 depend.output_id : 0 input_args_next_step : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ()} output_args : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',)} args : 1393841616 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 : {28415165: [{'flou': 28415183, 'Teint_Dans_La_Masse': 28415184, 'autre_refus': 28415185, 'environnement': 28415186, 'Carton_brun': 28415188, 'kraft': 28415189, 'metal': 28415190, 'papier': 28415192, 'cartonnette': 28415193, 'Carton_gris': 28415194, 'plastique': 28415196, 'mal_croppe': 28415197}]} input_args_next_step : {1393841678: ('0.0629042975880281',), 1393841676: ('0.0629042975880281',), 1393841674: ('0.0629042975880281',), 1393841629: ('0.0629042975880281',), 1393841625: ('0.0629042975880281',), 1393841622: ('0.0629042975880281',), 1393841620: ('0.0629042975880281',), 1393841618: ('0.0629042975880281',), 1393841616: ('0.0629042975880281',), 28415165: ()} output_args : {28415165: [{'flou': 28415183, 'Teint_Dans_La_Masse': 28415184, 'autre_refus': 28415185, 'environnement': 28415186, 'Carton_brun': 28415188, 'kraft': 28415189, 'metal': 28415190, 'papier': 28415192, 'cartonnette': 28415193, 'Carton_gris': 28415194, 'plastique': 28415196, 'mal_croppe': 28415197}]} args : 28415165 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 :10, first value : ('0.0629042975880281',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28415165) 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_view ph WHERE photo_id IN (1393841678,1393841676,1393841674,1393841629,1393841625,1393841622,1393841620,1393841618,1393841616) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1393841616 begin to download photo : 1393841620 begin to download photo : 1393841625 begin to download photo : 1393841674 begin to download photo : 1393841678 download finish for photo 1393841678 download finish for photo 1393841625 begin to download photo : 1393841629 download finish for photo 1393841674 begin to download photo : 1393841676 download finish for photo 1393841616 begin to download photo : 1393841618 download finish for photo 1393841620 begin to download photo : 1393841622 download finish for photo 1393841629 download finish for photo 1393841676 download finish for photo 1393841618 download finish for photo 1393841622 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette284151831762816500/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P28415165_11-11-2025_00_15_00.pdf 28415183 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415183 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284151831762816500 28415185 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415185 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393841493: '1762816145_146669_1393841448_8ad4e02c6100d56aecf5909835c6166f_rle_crop_4030112137_0.png', 1393841568: '1762816266_153133_1393841522_563359b3c427ab122ac27c85bea7831a_rle_crop_4030112434_0.png', 1393841569: '1762816266_153133_1393841474_441e39047aa1c33e6f138c559109934b_rle_crop_4030112556_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/c0bb72f981c9cd5dbe2091366558307a_5381666.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/4c2d5091c251f278368305173d042856_24713241.png change filename to text .imagette284151851762816500/ imagette284151851762816500/1762816145_146669_1393841448_8ad4e02c6100d56aecf5909835c6166f_rle_crop_4030112137_0.png.png imagette284151851762816500/1762816266_153133_1393841474_441e39047aa1c33e6f138c559109934b_rle_crop_4030112556_0.png.png imagette284151851762816500/1762816266_153133_1393841522_563359b3c427ab122ac27c85bea7831a_rle_crop_4030112434_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/63354e5b208f328c4468c89792bb5824_93119947.png imagette284151851762816500 28415189 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415189 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393841637: '1762816387_159501_1393841588_1708d4652cae02a341c704f314dbe7bc_rle_crop_4030112705_0.png', 1393841638: '1762816387_159501_1393841586_d27012e8875d110fd3a418572e55b18d_rle_crop_4030112721_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/b5c18e595898bed9635654703e7cfb20_73791602.png change filename to text .imagette284151891762816500/ imagette284151891762816500/1762816387_159501_1393841588_1708d4652cae02a341c704f314dbe7bc_rle_crop_4030112705_0.png.png imagette284151891762816500/1762816387_159501_1393841586_d27012e8875d110fd3a418572e55b18d_rle_crop_4030112721_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/d8652d8e68180abf76c7f6e99385b1fa_75636245.png imagette284151891762816500 28415190 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415190 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393841499: '1762816145_146669_1393841448_8ad4e02c6100d56aecf5909835c6166f_rle_crop_4030112139_0.png'} change filename to text .imagette284151901762816501/ imagette284151901762816501/1762816145_146669_1393841448_8ad4e02c6100d56aecf5909835c6166f_rle_crop_4030112139_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/961f77799bc1b8e720bfbbd601d6639c_28209276.png imagette284151901762816501 28415193 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415193 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393841324: '1762815925_134020_1393841228_5d21f163a4e1a1b24448919ccdf16239_rle_crop_4030111577_0.png', 1393841399: '1762816026_141108_1393841296_a1b693564b40882e58b03c6208e29415_rle_crop_4030111977_0.png', 1393841401: '1762816026_141108_1393841295_66b9ade6b190b9c4e80b76bf1436c45b_rle_crop_4030111988_0.png', 1393841403: '1762816026_141108_1393841295_66b9ade6b190b9c4e80b76bf1436c45b_rle_crop_4030111989_0.png', 1393841405: '1762816026_141108_1393841294_b96234f4ef9a1ad3658c3985500eb0e0_rle_crop_4030112005_0.png', 1393841432: '1762816045_141582_1393841320_b10973ee369aa2c9328ac4929f65ac8e_rle_crop_4030112038_0.png', 1393841495: '1762816145_146669_1393841444_b51c7360955cdef1bd092c9d78dd14c4_rle_crop_4030112162_0.png', 1393841506: '1762816165_147043_1393841358_74f0b90e4fb813e9813b8c6e0b4644e4_rle_crop_4030112270_0.png', 1393841572: '1762816266_153133_1393841474_441e39047aa1c33e6f138c559109934b_rle_crop_4030112559_0.png', 1393841669: '1762816405_160131_1393841592_19f1a4db558bd3b596a5d8657618a299_rle_crop_4030112922_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/6161ce48ff075ea080d68bcff0010c74_22601580.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/a7df19eb28e9b5eb723d00a316d1d17e_65828831.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/73b79cf58339697c06a0c455073ffc55_64355246.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/3a0292a425f0ea84a1b98cd6b430db59_7439168.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/e87d10b34c254846065c6e3b91629293_58315360.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/6161ce48ff075ea080d68bcff0010c74_54753368.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/0176774e207a94f3429c011d491e6d96_3053914.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/472b16bd27decfc06bbc269fb7f2e691_24010539.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/c196783c37e8b6612c8c09aad44c2875_38397301.png change filename to text .imagette284151931762816501/ imagette284151931762816501/1762816405_160131_1393841592_19f1a4db558bd3b596a5d8657618a299_rle_crop_4030112922_0.png.png imagette284151931762816501/1762816026_141108_1393841296_a1b693564b40882e58b03c6208e29415_rle_crop_4030111977_0.png.png imagette284151931762816501/1762816045_141582_1393841320_b10973ee369aa2c9328ac4929f65ac8e_rle_crop_4030112038_0.png.png imagette284151931762816501/1762816145_146669_1393841444_b51c7360955cdef1bd092c9d78dd14c4_rle_crop_4030112162_0.png.png imagette284151931762816501/1762816026_141108_1393841295_66b9ade6b190b9c4e80b76bf1436c45b_rle_crop_4030111988_0.png.png imagette284151931762816501/1762816165_147043_1393841358_74f0b90e4fb813e9813b8c6e0b4644e4_rle_crop_4030112270_0.png.png imagette284151931762816501/1762816266_153133_1393841474_441e39047aa1c33e6f138c559109934b_rle_crop_4030112559_0.png.png imagette284151931762816501/1762815925_134020_1393841228_5d21f163a4e1a1b24448919ccdf16239_rle_crop_4030111577_0.png.png imagette284151931762816501/1762816026_141108_1393841294_b96234f4ef9a1ad3658c3985500eb0e0_rle_crop_4030112005_0.png.png imagette284151931762816501/1762816026_141108_1393841295_66b9ade6b190b9c4e80b76bf1436c45b_rle_crop_4030111989_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/0ea914fd12fd257e9e21c82b26a18f76_15659515.png imagette284151931762816501 28415196 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393841304: '1762815905_133618_1393841188_0292cf0942fb9bb2f4570a206994586f_rle_crop_4030111525_0.png', 1393841507: '1762816165_147043_1393841457_c19df0368130d5241d8b89a906e334f6_rle_crop_4030112247_0.png', 1393841508: '1762816165_147043_1393841361_dc3b68fc536d12fdc77536fb31b46d87_rle_crop_4030112263_0.png', 1393841509: '1762816165_147043_1393841358_74f0b90e4fb813e9813b8c6e0b4644e4_rle_crop_4030112271_0.png', 1393841573: '1762816266_153133_1393841522_563359b3c427ab122ac27c85bea7831a_rle_crop_4030112438_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/66a6790a85e070e0e382f830c75e66e6_57213498.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/dc0df530e3e806a92470dafe855c1eee_6920601.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/acc6f2502c7c03d7ad167a1566cba2e6_27790243.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/24534ab45a40d33c9af13a3f9988e6ce_84673421.png change filename to text .imagette284151961762816501/ imagette284151961762816501/1762816165_147043_1393841457_c19df0368130d5241d8b89a906e334f6_rle_crop_4030112247_0.png.png imagette284151961762816501/1762816266_153133_1393841522_563359b3c427ab122ac27c85bea7831a_rle_crop_4030112438_0.png.png imagette284151961762816501/1762816165_147043_1393841358_74f0b90e4fb813e9813b8c6e0b4644e4_rle_crop_4030112271_0.png.png imagette284151961762816501/1762816165_147043_1393841361_dc3b68fc536d12fdc77536fb31b46d87_rle_crop_4030112263_0.png.png imagette284151961762816501/1762815905_133618_1393841188_0292cf0942fb9bb2f4570a206994586f_rle_crop_4030111525_0.png.png imagette284151971762816502/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/15997ae2928842adfb50bc38345b7a34_31298917.png imagette284151961762816501 28415197 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284151971762816502 28415184 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415184 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393840955: '1762815785_129007_1393840672_314c4abe979c0f2a639adfea94a85b0b_rle_crop_4030111434_0.png', 1393841300: '1762815905_133618_1393841207_edc96c20a01c4d4a1a3319773719a04f_rle_crop_4030111507_0.png', 1393841394: '1762816026_141108_1393841294_b96234f4ef9a1ad3658c3985500eb0e0_rle_crop_4030112009_0.png', 1393841565: '1762816266_153133_1393841485_8170aa5c9f787bbdd93f34f9e6a6cf1f_rle_crop_4030112449_0.png', 1393841566: '1762816266_153133_1393841476_c0116b0a406100277816914d73724668_rle_crop_4030112485_0.png', 1393841577: '1762816286_154215_1393841517_ec8bf009c23cc6b0d208d8eddfcd11e7_rle_crop_4030112582_0.png', 1393841659: '1762816405_160131_1393841546_bb09739d3b42992d41da06ef96442d70_rle_crop_4030112946_0.png', 1393841660: '1762816405_160131_1393841544_ba117545fbeb313eb82e3d7a432ae0ac_rle_crop_4030112964_0.png', 1393841661: '1762816405_160131_1393841542_4b3566c20e65b59f60374ddea928bd33_rle_crop_4030112979_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/d9e1b44136cd279cb0b2cff95bef9afc_81262089.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/0ce64c53bf93cf12622ec4a3c90439e6_27820599.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/f5afd39126f848dad50d281e24f7390a_43765432.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/07737cfb996e0b80fdebd3d497eeaea3_70844071.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/4bc8c5ce71002264a280ff31b16e6dfc_96956568.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/ac0dc88accce0593a237229dfaea2429_45243670.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/9aa4dc0d7eb4283c9b3071d854961a93_90603953.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/86d5050dc956d163a016d8fd84b344dc_5784913.png change filename to text .imagette284151841762816502/ imagette284151841762816502/1762815905_133618_1393841207_edc96c20a01c4d4a1a3319773719a04f_rle_crop_4030111507_0.png.png imagette284151841762816502/1762816405_160131_1393841542_4b3566c20e65b59f60374ddea928bd33_rle_crop_4030112979_0.png.png imagette284151841762816502/1762815785_129007_1393840672_314c4abe979c0f2a639adfea94a85b0b_rle_crop_4030111434_0.png.png imagette284151841762816502/1762816286_154215_1393841517_ec8bf009c23cc6b0d208d8eddfcd11e7_rle_crop_4030112582_0.png.png imagette284151841762816502/1762816405_160131_1393841546_bb09739d3b42992d41da06ef96442d70_rle_crop_4030112946_0.png.png imagette284151841762816502/1762816026_141108_1393841294_b96234f4ef9a1ad3658c3985500eb0e0_rle_crop_4030112009_0.png.png imagette284151841762816502/1762816266_153133_1393841485_8170aa5c9f787bbdd93f34f9e6a6cf1f_rle_crop_4030112449_0.png.png imagette284151841762816502/1762816266_153133_1393841476_c0116b0a406100277816914d73724668_rle_crop_4030112485_0.png.png imagette284151841762816502/1762816405_160131_1393841544_ba117545fbeb313eb82e3d7a432ae0ac_rle_crop_4030112964_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/acd87706352bd18766b67cb6605f6346_80248329.png imagette284151841762816502 28415188 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415188 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393841303: '1762815905_133618_1393841188_0292cf0942fb9bb2f4570a206994586f_rle_crop_4030111523_0.png', 1393841325: '1762815925_134020_1393841228_5d21f163a4e1a1b24448919ccdf16239_rle_crop_4030111579_0.png', 1393841326: '1762815925_134020_1393841228_5d21f163a4e1a1b24448919ccdf16239_rle_crop_4030111580_0.png', 1393841433: '1762816045_141582_1393841320_b10973ee369aa2c9328ac4929f65ac8e_rle_crop_4030112040_0.png', 1393841434: '1762816045_141582_1393841320_b10973ee369aa2c9328ac4929f65ac8e_rle_crop_4030112041_0.png', 1393841498: '1762816145_146669_1393841446_b520dba9178e0d046f9c2a031002d1e0_rle_crop_4030112154_0.png', 1393841579: '1762816286_154215_1393841517_ec8bf009c23cc6b0d208d8eddfcd11e7_rle_crop_4030112584_0.png', 1393841670: '1762816405_160131_1393841592_19f1a4db558bd3b596a5d8657618a299_rle_crop_4030112926_0.png', 1393841671: '1762816405_160131_1393841592_19f1a4db558bd3b596a5d8657618a299_rle_crop_4030112917_0.png', 1393841672: '1762816405_160131_1393841592_19f1a4db558bd3b596a5d8657618a299_rle_crop_4030112915_0.png', 1393841673: '1762816405_160131_1393841542_4b3566c20e65b59f60374ddea928bd33_rle_crop_4030112980_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/1d8efdce444c249b0b4a5d286d778de4_2307839.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/6959f5c7d97c258a0b116559702454eb_43915048.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/a8a86a1d535118866972ba6361d0d18b_75694667.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/6959f5c7d97c258a0b116559702454eb_96901056.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/a8a86a1d535118866972ba6361d0d18b_94448177.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/2cef774db91ba2237c13faf7f86efe5c_1283981.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/231df0fddf9feec077d1c61760096942_93459553.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/2d7753fe0f766d59f1adedd57388c93b_32212076.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/d0bd1670e623601dc37ea029e30f68a1_9857779.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/95c79102af20f7799ad8df9a2fd0002c_52593109.png change filename to text .imagette284151881762816502/ imagette284151881762816502/1762815925_134020_1393841228_5d21f163a4e1a1b24448919ccdf16239_rle_crop_4030111580_0.png.png imagette284151881762816502/1762816145_146669_1393841446_b520dba9178e0d046f9c2a031002d1e0_rle_crop_4030112154_0.png.png imagette284151881762816502/1762816405_160131_1393841592_19f1a4db558bd3b596a5d8657618a299_rle_crop_4030112917_0.png.png imagette284151881762816502/1762816405_160131_1393841542_4b3566c20e65b59f60374ddea928bd33_rle_crop_4030112980_0.png.png imagette284151881762816502/1762816405_160131_1393841592_19f1a4db558bd3b596a5d8657618a299_rle_crop_4030112926_0.png.png imagette284151881762816502/1762816286_154215_1393841517_ec8bf009c23cc6b0d208d8eddfcd11e7_rle_crop_4030112584_0.png.png imagette284151881762816502/1762815925_134020_1393841228_5d21f163a4e1a1b24448919ccdf16239_rle_crop_4030111579_0.png.png imagette284151881762816502/1762816405_160131_1393841592_19f1a4db558bd3b596a5d8657618a299_rle_crop_4030112915_0.png.png imagette284151881762816502/1762815905_133618_1393841188_0292cf0942fb9bb2f4570a206994586f_rle_crop_4030111523_0.png.png imagette284151881762816502/1762816045_141582_1393841320_b10973ee369aa2c9328ac4929f65ac8e_rle_crop_4030112041_0.png.png imagette284151881762816502/1762816045_141582_1393841320_b10973ee369aa2c9328ac4929f65ac8e_rle_crop_4030112040_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/517a589a729bde2ec0bb390356b3e51d_5110733.png imagette284151881762816502 28415194 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393840964: '1762815785_129007_1393840703_582b138327d26784202b127f902410b4_rle_crop_4030111417_0.png', 1393841397: '1762816026_141108_1393841295_66b9ade6b190b9c4e80b76bf1436c45b_rle_crop_4030111985_0.png', 1393841494: '1762816145_146669_1393841452_5b492ac1ec7fc834cfea4d00719e12d5_rle_crop_4030112132_0.png', 1393841570: '1762816266_153133_1393841478_e1c9f5cb6ad11ece143ad52e34869dba_rle_crop_4030112468_0.png', 1393841578: '1762816286_154215_1393841517_ec8bf009c23cc6b0d208d8eddfcd11e7_rle_crop_4030112580_0.png', 1393841635: '1762816387_159501_1393841586_d27012e8875d110fd3a418572e55b18d_rle_crop_4030112727_0.png', 1393841662: '1762816405_160131_1393841592_19f1a4db558bd3b596a5d8657618a299_rle_crop_4030112916_0.png', 1393841663: '1762816405_160131_1393841549_a8272f6835216f0d26b08883dc9934d5_rle_crop_4030112931_0.png', 1393841664: '1762816405_160131_1393841546_bb09739d3b42992d41da06ef96442d70_rle_crop_4030112942_0.png', 1393841665: '1762816405_160131_1393841546_bb09739d3b42992d41da06ef96442d70_rle_crop_4030112939_0.png', 1393841666: '1762816405_160131_1393841544_ba117545fbeb313eb82e3d7a432ae0ac_rle_crop_4030112959_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/55f3dea75a697b85769d5761949fcac7_40103251.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/26e245784c0b1e18356c47879d2416d5_55471579.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/a610c05c97034c71cb96a90a0efe19db_41063379.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/627cf121f043256dbd76193b85538c9c_33320247.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/ec20a7f51139aac5f40b5ed6084fb4dd_41123735.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/a60722da53fb8bca237e07da2facc665_99655973.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/5f4d2988ba01fab464dff70ed91d7206_10955876.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/18bfd4a542e2fec4d873a7175e4dc4ec_82512094.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/23c42676d86783f7de25ba54ee6d3e6e_94823131.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/af7e8fb8a9858072a7ca98720d0928bd_44750977.png change filename to text .imagette284151941762816503/ imagette284151941762816503/1762816405_160131_1393841549_a8272f6835216f0d26b08883dc9934d5_rle_crop_4030112931_0.png.png imagette284151941762816503/1762816405_160131_1393841546_bb09739d3b42992d41da06ef96442d70_rle_crop_4030112942_0.png.png imagette284151941762816503/1762816387_159501_1393841586_d27012e8875d110fd3a418572e55b18d_rle_crop_4030112727_0.png.png imagette284151941762816503/1762816405_160131_1393841544_ba117545fbeb313eb82e3d7a432ae0ac_rle_crop_4030112959_0.png.png imagette284151941762816503/1762816026_141108_1393841295_66b9ade6b190b9c4e80b76bf1436c45b_rle_crop_4030111985_0.png.png imagette284151941762816503/1762816266_153133_1393841478_e1c9f5cb6ad11ece143ad52e34869dba_rle_crop_4030112468_0.png.png imagette284151941762816503/1762815785_129007_1393840703_582b138327d26784202b127f902410b4_rle_crop_4030111417_0.png.png imagette284151941762816503/1762816145_146669_1393841452_5b492ac1ec7fc834cfea4d00719e12d5_rle_crop_4030112132_0.png.png imagette284151941762816503/1762816405_160131_1393841546_bb09739d3b42992d41da06ef96442d70_rle_crop_4030112939_0.png.png imagette284151941762816503/1762816286_154215_1393841517_ec8bf009c23cc6b0d208d8eddfcd11e7_rle_crop_4030112580_0.png.png imagette284151941762816503/1762816405_160131_1393841592_19f1a4db558bd3b596a5d8657618a299_rle_crop_4030112916_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/046c1f34ae4423b189e228891c9c5ef8_60039724.png imagette284151941762816503 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28415165 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28415202,28415203,28415204,28415205,28415206,28415207,28415208,28415209,28415210,28415211,28415212,28415213?tags=flou,Teint_Dans_La_Masse,autre_refus,environnement,Carton_brun,kraft,metal,papier,cartonnette,Carton_gris,plastique,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1393841678] : ('0.0629042975880281',) no score found for photo 1393841678 We are sending mail with results at report@fotonower.com args[1393841676] : ('0.0629042975880281',) no score found for photo 1393841676 We are sending mail with results at report@fotonower.com args[1393841674] : ('0.0629042975880281',) no score found for photo 1393841674 We are sending mail with results at report@fotonower.com args[1393841629] : ('0.0629042975880281',) no score found for photo 1393841629 We are sending mail with results at report@fotonower.com args[1393841625] : ('0.0629042975880281',) no score found for photo 1393841625 We are sending mail with results at report@fotonower.com args[1393841622] : ('0.0629042975880281',) no score found for photo 1393841622 We are sending mail with results at report@fotonower.com args[1393841620] : ('0.0629042975880281',) no score found for photo 1393841620 We are sending mail with results at report@fotonower.com args[1393841618] : ('0.0629042975880281',) no score found for photo 1393841618 We are sending mail with results at report@fotonower.com args[1393841616] : ('0.0629042975880281',) no score found for photo 1393841616 We are sending mail with results at report@fotonower.com refus_total : 0.0629042975880281 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415165 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_P28415165_11-11-2025_00_15_00.pdf results_Auto_P28415165_11-11-2025_00_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28415165_11-11-2025_00_15_00.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','28415165','results_Auto_P28415165_11-11-2025_00_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28415165_11-11-2025_00_15_00.pdf','pdf','','0.23','0.0629042975880281') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28415165]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616] map_info['map_portfolio_photo'] : {28415165: [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616, 1393841592, 1393841588, 1393841586, 1393841584, 1393841554, 1393841549, 1393841546, 1393841544, 1393841542, 1393841522, 1393841519, 1393841517, 1393841514, 1393841489, 1393841485, 1393841480, 1393841478, 1393841476, 1393841474, 1393841457, 1393841452, 1393841448, 1393841446, 1393841444, 1393841368, 1393841364, 1393841361, 1393841358, 1393841340, 1393841336, 1393841334, 1393841320, 1393841305, 1393841301, 1393841298, 1393841296, 1393841295, 1393841294, 1393841228, 1393841207, 1393841188, 1393840912, 1393840911, 1393840909, 1393840736, 1393840703, 1393840672, 1393840638, 1393840163, 1393840116]} final : False mtd_id 4302 list_pids : [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616] 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, '4030066') ('4302', '28415165', '1393841678', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841676', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841674', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841629', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841625', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841622', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841620', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841618', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841616', None, None, None, None, None, '4030066') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '28415165', '1393841678', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841676', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841674', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841629', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841625', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841622', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841620', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841618', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841616', None, None, None, None, None, '4030066')] time used for this insertion : 0.013820886611938477 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.478691101074219 time spend to save output : 0.014067411422729492 total time spend for step 4 : 5.492758512496948 step5:split_time_score Tue Nov 11 00:15:05 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 : ['28415165'] 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 : [('28415165',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28415165) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1393841678: {'path': 'temp/1762816500_3507842_1393841678_6e2ba359e1146733e6ada6dfcd2cfc45.jpg', 'extension': 'jpg'}, 1393841625: {'path': 'temp/1762816500_3507842_1393841625_f58b315ba394a9f23d2df8e4cae4d6f0.jpg', 'extension': 'jpg'}, 1393841629: {'path': 'temp/1762816500_3507842_1393841629_fc8919560abd1bd6b13f183931d9e278.jpg', 'extension': 'jpg'}, 1393841674: {'path': 'temp/1762816500_3507842_1393841674_ff0b941d2a4099572e537a7abac1eee2.jpg', 'extension': 'jpg'}, 1393841676: {'path': 'temp/1762816500_3507842_1393841676_0e70c076a4d6b37d95692f717ec72741.jpg', 'extension': 'jpg'}, 1393841616: {'path': 'temp/1762816500_3507842_1393841616_925a85c7fdb46b74121d5cb71cbd96e6.jpg', 'extension': 'jpg'}, 1393841618: {'path': 'temp/1762816500_3507842_1393841618_b7e9606597b0bcd4793e69bf7aeedb52.jpg', 'extension': 'jpg'}, 1393841620: {'path': 'temp/1762816500_3507842_1393841620_ecffd4c330de7b6fea55f9345b8b9542.jpg', 'extension': 'jpg'}, 1393841622: {'path': 'temp/1762816500_3507842_1393841622_9a8d2df3936e442d15ca291b3bd9a998.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 = 28415165; (('arc_en_ciel_jrm_live',),) 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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28415165 group by h (('00', 59),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28415165 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 (28415165) 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 (28415165) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11112025 28415165 Nombre de photos uploadées : 59 / 23040 (0%) 11112025 28415165 Nombre de photos taguées (types de déchets): 0 / 59 (0%) 11112025 28415165 Nombre de photos taguées (volume) : 0 / 59 (0%) [{'photo_id': 1393840163, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/ba0baa0f7e5b8761c385b2d736c06c56.jpg', 'username': None, 'uploaded_at': 1762815668, 'text': 'image_11112025_00_00_14_10179.jpg'}, {'photo_id': 1393840116, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/80fb822b47b53566e81b73a3ac89fd55.jpg', 'username': None, 'uploaded_at': 1762815668, 'text': 'image_11112025_00_00_25_10149.jpg'}, {'photo_id': 1393840736, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/27ee2d3cd8229ba5f11fafc63bf950d8.jpg', 'username': None, 'uploaded_at': 1762815727, 'text': 'image_11112025_00_00_45_10137.jpg'}, {'photo_id': 1393840703, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/582b138327d26784202b127f902410b4.jpg', 'username': None, 'uploaded_at': 1762815727, 'text': 'image_11112025_00_01_05_010158m0.jpg 1e-05 for time 1, id_amount 1 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 4.76837158203125e-06 ??????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027353763580322266 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 28415165, '2025-11-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-11-11' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2556532,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20011234283447266 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= 2556532 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2556532, 'dashboard_run_id': 2563828, 'mtr_portfolio_id': 28415165, 'dashboard_result_id': 17113337, '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_P28415165_11-11-2025_00_13_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28415183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28415184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28415185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28415186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28415188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28415189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28415190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28415192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28415193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28415194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28415196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28415197, '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 = 28415165 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': 4030066, 'mtr_portfolio_id': 28415165, 'created_at': datetime.datetime(2025, 11, 11, 0, 14, 59), 'result': '0.0629042975880281', 'result_long': None, 'result_double': None}] Qualite : 0.0629042975880281 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28415165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28415165_11-11-2025_00_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28415165 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_P28415165_11-11-2025_00_15_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28415183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28415184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28415185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28415186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28415188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28415189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28415190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28415192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28415193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28415194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28415196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28415197, 'pht': 3726}}" where mtr_portfolio_id = 28415165 and dashboard_run_id = 2563828 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`=28415165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17113337, 0.0629042975880281, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28415165_11-11-2025_00_15_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28415183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28415184, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28415185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28415186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28415188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28415189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28415190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28415192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28415193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28415194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28415196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28415197, '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 (28415165) result : ((1393840116,), (1393840163,), (1393840638,), (1393840672,), (1393840703,), (1393840736,), (1393840909,), (1393840911,), (1393840912,), (1393841188,), (1393841207,), (1393841228,), (1393841294,), (1393841295,), (1393841296,), (1393841298,), (1393841301,), (1393841305,), (1393841320,), (1393841334,), (1393841336,), (1393841340,), (1393841358,), (1393841361,), (1393841364,), (1393841368,), (1393841444,), (1393841446,), (1393841448,), (1393841452,), (1393841457,), (1393841474,), (1393841476,), (1393841478,), (1393841480,), (1393841485,), (1393841489,), (1393841514,), (1393841517,), (1393841519,), (1393841522,), (1393841542,), (1393841544,), (1393841546,), (1393841549,), (1393841554,), (1393841584,), (1393841586,), (1393841588,), (1393841592,), (1393841616,), (1393841618,), (1393841620,), (1393841622,), (1393841625,), (1393841629,), (1393841674,), (1393841676,), (1393841678,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11112025': {'nb_upload': 59, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28415165]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616] map_info['map_portfolio_photo'] : {28415165: [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616, 1393841592, 1393841588, 1393841586, 1393841584, 1393841554, 1393841549, 1393841546, 1393841544, 1393841542, 1393841522, 1393841519, 1393841517, 1393841514, 1393841489, 1393841485, 1393841480, 1393841478, 1393841476, 1393841474, 1393841457, 1393841452, 1393841448, 1393841446, 1393841444, 1393841368, 1393841364, 1393841361, 1393841358, 1393841340, 1393841336, 1393841334, 1393841320, 1393841305, 1393841301, 1393841298, 1393841296, 1393841295, 1393841294, 1393841228, 1393841207, 1393841188, 1393840912, 1393840911, 1393840909, 1393840736, 1393840703, 1393840672, 1393840638, 1393840163, 1393840116]} final : True mtd_id 4302 list_pids : [1393841678, 1393841676, 1393841674, 1393841629, 1393841625, 1393841622, 1393841620, 1393841618, 1393841616] Looping around the photos to save general results len do output : 1 /28415165Didn'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, '4030066') ('4302', '28415165', '1393841678', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841676', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841674', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841629', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841625', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841622', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841620', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841618', None, None, None, None, None, '4030066') ('4302', None, None, None, None, None, None, None, '4030066') ('4302', '28415165', '1393841616', None, None, None, None, None, '4030066') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '28415165', 'None', None, None, None, None, '4030066'), ('4302', '28415165', '1393841678', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841676', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841674', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841629', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841625', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841622', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841620', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841618', None, None, None, None, None, '4030066'), ('4302', '28415165', '1393841616', None, None, None, None, None, '4030066')] time used for this insertion : 0.013431310653686523 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36315107345581055 time spend to save output : 0.013651609420776367 total time spend for step 5 : 0.3768026828765869 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 (4030066) 2.13user 2.35system 0:11.29elapsed 39%CPU (0avgtext+0avgdata 160080maxresident)k 312inputs+12744outputs (2major+64172minor)pagefaults 0swaps