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 : 3115600 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 (2654463) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2654463) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222733 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2654463'] with mtr_portfolio_ids : ['21222733'] and first list_photo_ids : [] new path : /proc/3115600/ Name: python3 Umask: 0002 State: R (running) Tgid: 3115600 Ngid: 0 Pid: 3115600 PPid: 3115599 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3115600 NSpid: 3115600 NSpgid: 3112579 NSsid: 3112579 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97632 kB VmRSS: 97632 kB RssAnon: 59760 kB RssFile: 37872 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 102 nonvoluntary_ctxt_switches: 217 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3115600', 'Ngid': '0', 'Pid': '3115600', 'PPid': '3115599', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3115600', 'NSpid': '3115600', 'NSpgid': '3112579', 'NSsid': '3112579', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97632 kB', 'VmRSS': '97632 kB', 'RssAnon': '59760 kB', 'RssFile': '37872 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '102', 'nonvoluntary_ctxt_switches': '217'} ('datou_batch_current', '3115600', '1106844', '0', '1106844', '865592', '97632', b'', 'marlene', '2654463') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (21222733) 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 (2654463 ) ) 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 (21222733) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342552041, 'portfolio_id': 21222733}, {'photo_id': 1342551976, 'portfolio_id': 21222733}, {'photo_id': 1342551877, 'portfolio_id': 21222733}, {'photo_id': 1342551818, 'portfolio_id': 21222733}, {'photo_id': 1342551556, 'portfolio_id': 21222733}, {'photo_id': 1342551508, 'portfolio_id': 21222733}, {'photo_id': 1342551232, 'portfolio_id': 21222733}, {'photo_id': 1342551227, 'portfolio_id': 21222733}, {'photo_id': 1342551216, 'portfolio_id': 21222733}, {'photo_id': 1342551195, 'portfolio_id': 21222733}, {'photo_id': 1342551082, 'portfolio_id': 21222733}, {'photo_id': 1342551035, 'portfolio_id': 21222733}, {'photo_id': 1342551018, 'portfolio_id': 21222733}, {'photo_id': 1342550995, 'portfolio_id': 21222733}, {'photo_id': 1342550960, 'portfolio_id': 21222733}, {'photo_id': 1342550955, 'portfolio_id': 21222733}, {'photo_id': 1342550934, 'portfolio_id': 21222733}, {'photo_id': 1342550922, 'portfolio_id': 21222733}, {'photo_id': 1342550901, 'portfolio_id': 21222733}, {'photo_id': 1342550704, 'portfolio_id': 21222733}, {'photo_id': 1342550668, 'portfolio_id': 21222733}, {'photo_id': 1342550650, 'portfolio_id': 21222733}, {'photo_id': 1342550615, 'portfolio_id': 21222733}, {'photo_id': 1342550316, 'portfolio_id': 21222733}, {'photo_id': 1342550274, 'portfolio_id': 21222733}, {'photo_id': 1342550218, 'portfolio_id': 21222733}, {'photo_id': 1342549958, 'portfolio_id': 21222733}, {'photo_id': 1342549903, 'portfolio_id': 21222733}, {'photo_id': 1342549859, 'portfolio_id': 21222733}, {'photo_id': 1342549841, 'portfolio_id': 21222733}, {'photo_id': 1342548917, 'portfolio_id': 21222733}, {'photo_id': 1342548901, 'portfolio_id': 21222733}, {'photo_id': 1342548893, 'portfolio_id': 21222733}, {'photo_id': 1342548888, 'portfolio_id': 21222733}, {'photo_id': 1342548884, 'portfolio_id': 21222733}, {'photo_id': 1342548777, 'portfolio_id': 21222733}, {'photo_id': 1342548740, 'portfolio_id': 21222733}, {'photo_id': 1342548689, 'portfolio_id': 21222733}, {'photo_id': 1342548585, 'portfolio_id': 21222733}, {'photo_id': 1342548517, 'portfolio_id': 21222733}, {'photo_id': 1342547272, 'portfolio_id': 21222733}, {'photo_id': 1342547206, 'portfolio_id': 21222733}, {'photo_id': 1342547141, 'portfolio_id': 21222733}, {'photo_id': 1342546465, 'portfolio_id': 21222733}, {'photo_id': 1342546230, 'portfolio_id': 21222733}, {'photo_id': 1342546037, 'portfolio_id': 21222733}, {'photo_id': 1342545908, 'portfolio_id': 21222733}, {'photo_id': 1342544498, 'portfolio_id': 21222733}, {'photo_id': 1342544451, 'portfolio_id': 21222733}, {'photo_id': 1342544402, 'portfolio_id': 21222733}, {'photo_id': 1342543945, 'portfolio_id': 21222733}, {'photo_id': 1342543910, 'portfolio_id': 21222733}] map_portfolio_id_photo_id: {21222733: [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995, 1342550960, 1342550955, 1342550934, 1342550922, 1342550901, 1342550704, 1342550668, 1342550650, 1342550615, 1342550316, 1342550274, 1342550218, 1342549958, 1342549903, 1342549859, 1342549841, 1342548917, 1342548901, 1342548893, 1342548888, 1342548884, 1342548777, 1342548740, 1342548689, 1342548585, 1342548517, 1342547272, 1342547206, 1342547141, 1342546465, 1342546230, 1342546037, 1342545908, 1342544498, 1342544451, 1342544402, 1342543945, 1342543910]} ##### 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.03802609443664551 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 10 15:16:57 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 (21222733) 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 : 21222733 get user id for portfolio 21222733 get sub ptf for main ptf 21222733, type 3726 and hashtags ['kraft', 'Carton_gris', 'flou', 'cartonnette', 'Teint_Dans_La_Masse', 'plastique', 'mal_croppe', 'papier', 'metal', 'Carton_brun', 'environnement', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21222733 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','cartonnette','Teint_Dans_La_Masse','plastique','mal_croppe','papier','metal','Carton_brun','environnement','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21222733 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','cartonnette','Teint_Dans_La_Masse','plastique','mal_croppe','papier','metal','Carton_brun','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21222733, 'sub_port_id': 21222736, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813778, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}, 'cartonnette': {'main_port_id': 21222733, 'sub_port_id': 21222737, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813779, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}, 'kraft': {'main_port_id': 21222733, 'sub_port_id': 21222738, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813780, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}, 'environnement': {'main_port_id': 21222733, 'sub_port_id': 21222739, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813781, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}, 'plastique': {'main_port_id': 21222733, 'sub_port_id': 21222740, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813782, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 21222733, 'sub_port_id': 21222741, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813783, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}, 'Carton_gris': {'main_port_id': 21222733, 'sub_port_id': 21222742, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813784, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}, 'mal_croppe': {'main_port_id': 21222733, 'sub_port_id': 21222743, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813785, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}, 'metal': {'main_port_id': 21222733, 'sub_port_id': 21222744, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813786, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}, 'Carton_brun': {'main_port_id': 21222733, 'sub_port_id': 21222745, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813787, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}, 'flou': {'main_port_id': 21222733, 'sub_port_id': 21222746, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813788, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}, 'papier': {'main_port_id': 21222733, 'sub_port_id': 21222747, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813789, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21222736 , 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=21222733 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 (21222736) result : ((1342549351,), (1342550812,), (1342550813,), (1342550814,), (1342550815,), (1342550816,), (1342550817,), (1342551064,), (1342551065,), (1342551066,), (1342551067,), (1342551068,), (1342551071,), (1342551072,), (1342551073,), (1342551089,), (1342551090,), (1342551091,), (1342551121,), (1342551123,), (1342551126,), (1342551128,), (1342551241,), (1342551242,), (1342551243,), (1342551244,), (1342551245,), (1342551603,), (1342551605,), (1342551607,), (1342551610,), (1342551613,), (1342551615,), (1342551617,), (1342551619,), (1342551621,), (1342552273,), (1342552274,), (1342552275,), (1342552277,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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 21222737 , 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=21222733 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 (21222737) result : ((1342549950,), (1342549952,), (1342551131,), (1342551133,), (1342551250,), (1342551321,), (1342552282,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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 21222738 , 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=21222733 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 (21222738) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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 21222739 , 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=21222733 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 (21222739) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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 21222740 , 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=21222733 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 (21222740) result : ((1342549378,), (1342551103,), (1342551116,), (1342551660,), (1342552285,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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 21222741 , 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=21222733 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 (21222741) result : ((1342549917,), (1342549919,), (1342549920,), (1342550780,), (1342551028,), (1342551030,), (1342551031,), (1342551588,), (1342551590,), (1342551592,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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 21222742 , 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=21222733 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 (21222742) result : ((1342549939,), (1342550829,), (1342551107,), (1342551129,), (1342551130,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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 21222743 , 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=21222733 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 (21222743) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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 21222744 , 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=21222733 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 (21222744) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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 21222745 , 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=21222733 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 (21222745) result : ((1342549965,), (1342551078,), (1342551081,), (1342551086,), (1342551135,), (1342551136,), (1342551137,), (1342551254,), (1342551635,), (1342551637,), (1342551639,), (1342551644,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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 21222746 , 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=21222733 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 (21222746) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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 21222747 , 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=21222733 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 (21222747) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21222733) result : ((1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) 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`=21222733 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','cartonnette','Teint_Dans_La_Masse','plastique','mal_croppe','papier','metal','Carton_brun','environnement','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21222733 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','flou','cartonnette','Teint_Dans_La_Masse','plastique','mal_croppe','papier','metal','Carton_brun','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21222733, 'sub_port_id': 21222749, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813790, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}, 'cartonnette': {'main_port_id': 21222733, 'sub_port_id': 21222750, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813791, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}, 'kraft': {'main_port_id': 21222733, 'sub_port_id': 21222751, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813792, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}, 'environnement': {'main_port_id': 21222733, 'sub_port_id': 21222752, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813793, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}, 'plastique': {'main_port_id': 21222733, 'sub_port_id': 21222753, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813794, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 21222733, 'sub_port_id': 21222754, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813795, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}, 'Carton_gris': {'main_port_id': 21222733, 'sub_port_id': 21222755, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813796, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}, 'mal_croppe': {'main_port_id': 21222733, 'sub_port_id': 21222756, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813797, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}, 'metal': {'main_port_id': 21222733, 'sub_port_id': 21222757, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813798, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}, 'Carton_brun': {'main_port_id': 21222733, 'sub_port_id': 21222758, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813799, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}, 'flou': {'main_port_id': 21222733, 'sub_port_id': 21222759, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813800, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 7, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}, 'papier': {'main_port_id': 21222733, 'sub_port_id': 21222760, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13813801, 'last_updated_at': datetime.datetime(2025, 3, 10, 15, 13, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 15, 13, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 15, 7, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222749,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222736 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222750,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222737 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222751,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222738 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222752,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222739 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222753,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222740 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222754,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222741 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222742 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21222760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21222747 lien utilise dans velours : https://www.fotonower.com/velours/21222749,21222750,21222751,21222752,21222753,21222754,21222755,21222756,21222757,21222758,21222759,21222760?tags=autre_refus,cartonnette,kraft,environnement,plastique,Teint_Dans_La_Masse,Carton_gris,mal_croppe,metal,Carton_brun,flou,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21222733]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995] map_info['map_portfolio_photo'] : {21222733: [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995, 1342550960, 1342550955, 1342550934, 1342550922, 1342550901, 1342550704, 1342550668, 1342550650, 1342550615, 1342550316, 1342550274, 1342550218, 1342549958, 1342549903, 1342549859, 1342549841, 1342548917, 1342548901, 1342548893, 1342548888, 1342548884, 1342548777, 1342548740, 1342548689, 1342548585, 1342548517, 1342547272, 1342547206, 1342547141, 1342546465, 1342546230, 1342546037, 1342545908, 1342544498, 1342544451, 1342544402, 1342543945, 1342543910]} final : False mtd_id 4302 list_pids : [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995] Looping around the photos to save general results len do output : 1 /21222733. 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, '2654463') ('4302', '21222733', '1342552041', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551976', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551877', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551818', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551556', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551508', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551232', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551227', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551216', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551195', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551082', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551035', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551018', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342550995', None, None, None, None, None, '2654463') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21222733', "{'autre_refus': 21222736, 'cartonnette': 21222737, 'kraft': 21222738, 'environnement': 21222739, 'plastique': 21222740, 'Teint_Dans_La_Masse': 21222741, 'Carton_gris': 21222742, 'mal_croppe': 21222743, 'metal': 21222744, 'Carton_brun': 21222745, 'flou': 21222746, 'papier': 21222747}", None, None, None, None, '2654463'), ('4302', '21222733', '1342552041', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551976', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551877', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551818', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551556', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551508', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551232', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551227', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551216', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551195', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551082', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551035', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551018', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342550995', None, None, None, None, None, '2654463')] time used for this insertion : 0.042028188705444336 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.545196294784546 time spend to save output : 0.04240298271179199 total time spend for step 1 : 4.587599277496338 step2:final Mon Mar 10 15:17:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (21222733) 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 21222733 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342543945,1342543910,1342544498,1342544451,1342544402,1342546465,1342546230,1342546037,1342545908,1342547272,1342547206,1342547141,1342548777,1342548740,1342548689,1342548585,1342548517,1342548917,1342548901,1342548893,1342548888,1342548884,1342549958,1342549903,1342549859,1342549841,1342550316,1342550274,1342550218,1342550704,1342550668,1342550650,1342550615,1342550960,1342550955,1342550934,1342550922,1342550901,1342551082,1342551035,1342551018,1342550995,1342551232,1342551227,1342551216,1342551195,1342551556,1342551508,1342552041,1342551976,1342551877,1342551818); 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([21222733]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} new output for save of step final : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995] map_info['map_portfolio_photo'] : {21222733: [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995, 1342550960, 1342550955, 1342550934, 1342550922, 1342550901, 1342550704, 1342550668, 1342550650, 1342550615, 1342550316, 1342550274, 1342550218, 1342549958, 1342549903, 1342549859, 1342549841, 1342548917, 1342548901, 1342548893, 1342548888, 1342548884, 1342548777, 1342548740, 1342548689, 1342548585, 1342548517, 1342547272, 1342547206, 1342547141, 1342546465, 1342546230, 1342546037, 1342545908, 1342544498, 1342544451, 1342544402, 1342543945, 1342543910]} final : False mtd_id 4302 list_pids : [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995] Looping around the photos to save general results len do output : 14 /1342552041.Didn't retrieve data . /1342551976.Didn't retrieve data . /1342551877.Didn't retrieve data . /1342551818.Didn't retrieve data . /1342551556.Didn't retrieve data . /1342551508.Didn't retrieve data . /1342551232.Didn't retrieve data . /1342551227.Didn't retrieve data . /1342551216.Didn't retrieve data . /1342551195.Didn't retrieve data . /1342551082.Didn't retrieve data . /1342551035.Didn't retrieve data . /1342551018.Didn't retrieve data . /1342550995.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, '2654463') ('4302', '21222733', '1342552041', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551976', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551877', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551818', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551556', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551508', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551232', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551227', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551216', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551195', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551082', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551035', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551018', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342550995', None, None, None, None, None, '2654463') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21222733', '1342552041', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551976', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551877', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551818', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551556', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551508', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551232', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551227', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551216', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551195', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551082', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551035', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342551018', '0.09020474931148317', None, None, None, None, '2654463'), ('4302', '21222733', '1342550995', '0.09020474931148317', None, None, None, None, '2654463')] time used for this insertion : 0.04095053672790527 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.20645546913146973 time spend to save output : 0.041654348373413086 total time spend for step 2 : 0.2481098175048828 step3:velours_tree Mon Mar 10 15:17:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21222733: [{'autre_refus': 21222736, 'cartonnette': 21222737, 'kraft': 21222738, 'environnement': 21222739, 'plastique': 21222740, 'Teint_Dans_La_Masse': 21222741, 'Carton_gris': 21222742, 'mal_croppe': 21222743, 'metal': 21222744, 'Carton_brun': 21222745, 'flou': 21222746, 'papier': 21222747}]} input_args_next_step : {21222733: ()} output_args : {21222733: [{'autre_refus': 21222736, 'cartonnette': 21222737, 'kraft': 21222738, 'environnement': 21222739, 'plastique': 21222740, 'Teint_Dans_La_Masse': 21222741, 'Carton_gris': 21222742, 'mal_croppe': 21222743, 'metal': 21222744, 'Carton_brun': 21222745, 'flou': 21222746, 'papier': 21222747}]} args : 21222733 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'autre_refus': 21222736, 'cartonnette': 21222737, 'kraft': 21222738, 'environnement': 21222739, 'plastique': 21222740, 'Teint_Dans_La_Masse': 21222741, 'Carton_gris': 21222742, 'mal_croppe': 21222743, 'metal': 21222744, 'Carton_brun': 21222745, 'flou': 21222746, 'papier': 21222747},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21222733) 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([21222733]) 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.5010271072387695 time spend to save output : 7.748603820800781e-05 total time spend for step 3 : 0.5011045932769775 step4:send_mail_cod Mon Mar 10 15:17:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} input_args_next_step : {1342552041: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342552041 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551976 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551877 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551818 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551556 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551508 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551232 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551227 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551216 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551195 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551082 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551035 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342551018 depend.output_id : 0 input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ()} output_args : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',)} args : 1342550995 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 : {21222733: [{'autre_refus': 21222736, 'cartonnette': 21222737, 'kraft': 21222738, 'environnement': 21222739, 'plastique': 21222740, 'Teint_Dans_La_Masse': 21222741, 'Carton_gris': 21222742, 'mal_croppe': 21222743, 'metal': 21222744, 'Carton_brun': 21222745, 'flou': 21222746, 'papier': 21222747}]} input_args_next_step : {1342552041: ('0.09020474931148317',), 1342551976: ('0.09020474931148317',), 1342551877: ('0.09020474931148317',), 1342551818: ('0.09020474931148317',), 1342551556: ('0.09020474931148317',), 1342551508: ('0.09020474931148317',), 1342551232: ('0.09020474931148317',), 1342551227: ('0.09020474931148317',), 1342551216: ('0.09020474931148317',), 1342551195: ('0.09020474931148317',), 1342551082: ('0.09020474931148317',), 1342551035: ('0.09020474931148317',), 1342551018: ('0.09020474931148317',), 1342550995: ('0.09020474931148317',), 21222733: ()} output_args : {21222733: [{'autre_refus': 21222736, 'cartonnette': 21222737, 'kraft': 21222738, 'environnement': 21222739, 'plastique': 21222740, 'Teint_Dans_La_Masse': 21222741, 'Carton_gris': 21222742, 'mal_croppe': 21222743, 'metal': 21222744, 'Carton_brun': 21222745, 'flou': 21222746, 'papier': 21222747}]} args : 21222733 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.09020474931148317',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21222733) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1342552041,1342551976,1342551877,1342551818,1342551556,1342551508,1342551232,1342551227,1342551216,1342551195,1342551082,1342551035,1342551018,1342550995) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342550995 begin to download photo : 1342551082 begin to download photo : 1342551227 begin to download photo : 1342551556 begin to download photo : 1342551976 download finish for photo 1342551082 begin to download photo : 1342551195 download finish for photo 1342550995 begin to download photo : 1342551018 download finish for photo 1342551556 begin to download photo : 1342551818 download finish for photo 1342551976 begin to download photo : 1342552041 download finish for photo 1342551227 begin to download photo : 1342551232 download finish for photo 1342551818 begin to download photo : 1342551877 download finish for photo 1342552041 download finish for photo 1342551195 begin to download photo : 1342551216 download finish for photo 1342551018 begin to download photo : 1342551035 download finish for photo 1342551232 begin to download photo : 1342551508 download finish for photo 1342551877 download finish for photo 1342551035 download finish for photo 1342551216 download finish for photo 1342551508 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P21222733_10-03-2025_15_17_03.pdf 21222736 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222736 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342551610: '1741616067_4114606_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893848_0.png', 1342551128: '1741615947_4111555_1342549841_dacb2ac1076dc428de3cb350b63303a0_rle_crop_3702894259_0.png', 1342551241: '1741615955_3755973_1342550668_81d640cea36d4ba2f3a0e9ede5c31123_rle_crop_3702895261_0.png', 1342551242: '1741615955_3755973_1342550650_c896f0b299734bded8f920c2eafca80d_rle_crop_3702895559_0.png', 1342551243: '1741615955_3755973_1342550615_bf817825551a601b186d2e3dab7f03ef_rle_crop_3702895582_0.png', 1342551244: '1741615955_3755973_1342550615_bf817825551a601b186d2e3dab7f03ef_rle_crop_3702895583_0.png', 1342551245: '1741615955_3755973_1342550615_bf817825551a601b186d2e3dab7f03ef_rle_crop_3702895586_0.png', 1342551603: '1741616067_4114606_1342549958_a2f064e650f2d29c2f2ead4eb8a6f8b6_rle_crop_3702896067_0.png', 1342551605: '1741616067_4114606_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893845_0.png', 1342551607: '1741616067_4114606_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893852_0.png', 1342551126: '1741615947_4111555_1342549859_e23e745fcdf0f693ece9f34bbb51e1c7_rle_crop_3702894123_0.png', 1342551613: '1741616067_4114606_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893860_0.png', 1342551615: '1741616067_4114606_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893859_0.png', 1342551617: '1741616067_4114606_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893864_0.png', 1342551619: '1741616067_4114606_1342548888_a2934f84dd45cda932504a9026a81e0c_rle_crop_3702894043_0.png', 1342551621: '1741616067_4114606_1342548884_a4b0ec38280b00fafbca795e67cc7f84_rle_crop_3702894059_0.png', 1342552273: '1741616134_3760454_1342547272_864d37cf5dbabea9e1ce2c25ad250123_rle_crop_3702899081_0.png', 1342552274: '1741616134_3760454_1342546230_4d46a5cfee78db9e0b7402197c64edc5_rle_crop_3702899278_0.png', 1342552275: '1741616134_3760454_1342546037_608a97bc6caf45bdf84b8ff79da1b04c_rle_crop_3702899313_0.png', 1342552277: '1741616134_3760454_1342545908_6c667996ec3f1142a2a1ae43fc1da0eb_rle_crop_3702899321_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4419d0162076cc80b6a1e8c95f64d105_98497349.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6482194a836fb472eed8a2496c8f2013_7289382.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1c7b7524e483ca16e6b4c47aaf5862d8_68807561.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e19d0ce4a1351cc1236c357b5c669b51_10912411.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/be3933eb665c07922b429bf50b1bb1a3_30008802.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/daaa9785e85dd00b7c781e695552e49d_26969981.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4fc9d8d510be2f9d4a749c82628c7fb7_82959281.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9ca856d6b70514b55b3ee4089e629f80_6550680.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1979bb7483a6d430249cb69d3fbea384_42099241.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/10653e758ae6660cb720853f11d7cc7a_35176810.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5b38c4236dd4532ee2b2d5abcc35153a_3726286.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/93f45c6f3bf5a2ca94e6e6fbe0175559_65109042.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/eda000803b6ddcf1e1de999e4699853b_31656347.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/ad068a4cb424255f3bc42bec8a375f2b_58405529.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a89c6f552cad8c0340b5755e41d50c45_57248630.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/05d4b215b5e38d2897bb530261b1ff51_36960033.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/43c320e2bcb1804f7f3840516c6d1be0_62986686.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b3a81b11162e6aef1d10f8337662efa6_59589381.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1c4afd8a5019367db34c491f75cbfeae_155920.png change filename to text .imagette212227361741616223/ imagette212227361741616223/1741615947_4111555_1342549859_e23e745fcdf0f693ece9f34bbb51e1c7_rle_crop_3702894123_0.png.png imagette212227361741616223/1741616067_4114606_1342548888_a2934f84dd45cda932504a9026a81e0c_rle_crop_3702894043_0.png.png imagette212227361741616223/1741615955_3755973_1342550615_bf817825551a601b186d2e3dab7f03ef_rle_crop_3702895582_0.png.png imagette212227361741616223/1741616134_3760454_1342545908_6c667996ec3f1142a2a1ae43fc1da0eb_rle_crop_3702899321_0.png.png imagette212227361741616223/1741615955_3755973_1342550668_81d640cea36d4ba2f3a0e9ede5c31123_rle_crop_3702895261_0.png.png imagette212227361741616223/1741616134_3760454_1342546037_608a97bc6caf45bdf84b8ff79da1b04c_rle_crop_3702899313_0.png.png imagette212227361741616223/1741616067_4114606_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893852_0.png.png imagette212227361741616223/1741615955_3755973_1342550615_bf817825551a601b186d2e3dab7f03ef_rle_crop_3702895586_0.png.png imagette212227361741616223/1741616067_4114606_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893848_0.png.png imagette212227361741616223/1741616067_4114606_1342548884_a4b0ec38280b00fafbca795e67cc7f84_rle_crop_3702894059_0.png.png imagette212227361741616223/1741616134_3760454_1342547272_864d37cf5dbabea9e1ce2c25ad250123_rle_crop_3702899081_0.png.png imagette212227361741616223/1741616067_4114606_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893864_0.png.png imagette212227361741616223/1741616067_4114606_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893859_0.png.png imagette212227361741616223/1741615955_3755973_1342550615_bf817825551a601b186d2e3dab7f03ef_rle_crop_3702895583_0.png.png imagette212227361741616223/1741616134_3760454_1342546230_4d46a5cfee78db9e0b7402197c64edc5_rle_crop_3702899278_0.png.png imagette212227361741616223/1741616067_4114606_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893845_0.png.png imagette212227361741616223/1741616067_4114606_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893860_0.png.png imagette212227361741616223/1741616067_4114606_1342549958_a2f064e650f2d29c2f2ead4eb8a6f8b6_rle_crop_3702896067_0.png.png imagette212227361741616223/1741615947_4111555_1342549841_dacb2ac1076dc428de3cb350b63303a0_rle_crop_3702894259_0.png.png imagette212227361741616223/1741615955_3755973_1342550650_c896f0b299734bded8f920c2eafca80d_rle_crop_3702895559_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f9616f4bb75d718514ac370d5e32c1ee_6044041.png imagette212227361741616223 21222737 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222737 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342549950: '1741615693_3749548_1342544498_3c3c3f264eea4d6e68e8aa4e444414ee_rle_crop_3702890276_0.png', 1342549952: '1741615693_3749548_1342543910_1bf46f07158e83be026908e180a99b90_rle_crop_3702890366_0.png', 1342551131: '1741615947_4111555_1342550316_c556ff87fc9882b04eacfe0c852c7e26_rle_crop_3702894076_0.png', 1342551133: '1741615947_4111555_1342549841_dacb2ac1076dc428de3cb350b63303a0_rle_crop_3702894254_0.png', 1342551250: '1741615955_3755973_1342550615_bf817825551a601b186d2e3dab7f03ef_rle_crop_3702895585_0.png', 1342551321: '1741615974_3756269_1342550274_340639131ba253d0c27042af1d4ba8ba_rle_crop_3702895633_0.png', 1342552282: '1741616134_3760454_1342546230_4d46a5cfee78db9e0b7402197c64edc5_rle_crop_3702899274_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/bf4b7fdc93035db457f9d4350f07c756_81995694.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/fa1e5807c97fecd81619b5e223edd827_26531862.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8bda2e1ccb163b05a59234a41fff440a_75779040.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4ee64767dadbcb473bcf2f59ba6503da_38649480.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/0f67899dbddf77d32606c483d869d3ac_24828438.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/7442183978d5c5e9e529017d7a260f3c_78369103.png change filename to text .imagette212227371741616224/ imagette212227371741616224/1741615955_3755973_1342550615_bf817825551a601b186d2e3dab7f03ef_rle_crop_3702895585_0.png.png imagette212227371741616224/1741616134_3760454_1342546230_4d46a5cfee78db9e0b7402197c64edc5_rle_crop_3702899274_0.png.png imagette212227371741616224/1741615693_3749548_1342544498_3c3c3f264eea4d6e68e8aa4e444414ee_rle_crop_3702890276_0.png.png imagette212227371741616224/1741615693_3749548_1342543910_1bf46f07158e83be026908e180a99b90_rle_crop_3702890366_0.png.png imagette212227371741616224/1741615947_4111555_1342549841_dacb2ac1076dc428de3cb350b63303a0_rle_crop_3702894254_0.png.png imagette212227371741616224/1741615974_3756269_1342550274_340639131ba253d0c27042af1d4ba8ba_rle_crop_3702895633_0.png.png imagette212227371741616224/1741615947_4111555_1342550316_c556ff87fc9882b04eacfe0c852c7e26_rle_crop_3702894076_0.png.png imagette212227381741616225/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b5b3ba14c4cde81bb79730060c1ecc60_92014898.png imagette212227371741616224 21222738 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222738 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212227381741616225 21222740 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222740 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342549378: '1741615673_3749174_1342544402_a21b42f06c711111844008e3daeb526c_rle_crop_3702889198_0.png', 1342551103: '1741615892_3754921_1342548888_a2934f84dd45cda932504a9026a81e0c_rle_crop_3702894037_0.png', 1342551116: '1741615913_3755156_1342547206_04ef3c606fc85a961cde63d855aba43f_rle_crop_3702894088_0.png', 1342551660: '1741616067_4114606_1342548888_a2934f84dd45cda932504a9026a81e0c_rle_crop_3702894037_0.png', 1342552285: '1741616134_3760454_1342546230_4d46a5cfee78db9e0b7402197c64edc5_rle_crop_3702899276_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/df1b61af1e0184dc36d3847f2fad256b_68797153.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/42f31c4d8bb8e95eb0a4be4bf787434d_74654557.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/13cfc1673f878f9fe958b5b6b5d51745_89957096.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/42f31c4d8bb8e95eb0a4be4bf787434d_70264372.png change filename to text .imagette212227401741616225/ imagette212227401741616225/1741615913_3755156_1342547206_04ef3c606fc85a961cde63d855aba43f_rle_crop_3702894088_0.png.png imagette212227401741616225/1741615673_3749174_1342544402_a21b42f06c711111844008e3daeb526c_rle_crop_3702889198_0.png.png imagette212227401741616225/1741616067_4114606_1342548888_a2934f84dd45cda932504a9026a81e0c_rle_crop_3702894037_0.png.png imagette212227401741616225/1741615892_3754921_1342548888_a2934f84dd45cda932504a9026a81e0c_rle_crop_3702894037_0.png.png imagette212227401741616225/1741616134_3760454_1342546230_4d46a5cfee78db9e0b7402197c64edc5_rle_crop_3702899276_0.png.png imagette212227431741616225/ imagette212227441741616225/ imagette212227461741616225/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e7723932761f63fca655939dffd92dae_20889281.png imagette212227401741616225 21222743 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222743 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212227431741616225 21222744 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212227441741616225 21222746 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212227461741616225 21222741 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222741 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342549917: '1741615693_3749548_1342544498_3c3c3f264eea4d6e68e8aa4e444414ee_rle_crop_3702890279_0.png', 1342549919: '1741615693_3749548_1342544498_3c3c3f264eea4d6e68e8aa4e444414ee_rle_crop_3702890278_0.png', 1342549920: '1741615693_3749548_1342543910_1bf46f07158e83be026908e180a99b90_rle_crop_3702890378_0.png', 1342550780: '1741615788_3750764_1342548917_faec369832da643d7f6c85f540b6f93a_rle_crop_3702892072_0.png', 1342551028: '1741615892_3754921_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893851_0.png', 1342551030: '1741615892_3754921_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893869_0.png', 1342551031: '1741615892_3754921_1342548888_a2934f84dd45cda932504a9026a81e0c_rle_crop_3702894047_0.png', 1342551588: '1741616067_4114606_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893851_0.png', 1342551590: '1741616067_4114606_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893869_0.png', 1342551592: '1741616067_4114606_1342548888_a2934f84dd45cda932504a9026a81e0c_rle_crop_3702894047_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b3d4455694582df7bd499b022df3de66_84388294.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d36866d0a4bab620f8cc151699474e68_800308.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d8be6c2250c475cca6a62ed0fd1a3ba5_86454016.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4e496d09040d51bddc32ca27e4e78210_75165962.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6063a6922268770169373a52cfb97b1c_21557737.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/42345490e0f0907af2599b9b5e760a90_61257760.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8c254abde80ef44f72f37f3e26e62b1e_24848803.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6063a6922268770169373a52cfb97b1c_87108404.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/42345490e0f0907af2599b9b5e760a90_26274413.png change filename to text .imagette212227411741616225/ imagette212227411741616225/1741616067_4114606_1342548888_a2934f84dd45cda932504a9026a81e0c_rle_crop_3702894047_0.png.png imagette212227411741616225/1741616067_4114606_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893869_0.png.png imagette212227411741616225/1741615892_3754921_1342548888_a2934f84dd45cda932504a9026a81e0c_rle_crop_3702894047_0.png.png imagette212227411741616225/1741615892_3754921_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893851_0.png.png imagette212227411741616225/1741615788_3750764_1342548917_faec369832da643d7f6c85f540b6f93a_rle_crop_3702892072_0.png.png imagette212227411741616225/1741616067_4114606_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893851_0.png.png imagette212227411741616225/1741615892_3754921_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893869_0.png.png imagette212227411741616225/1741615693_3749548_1342544498_3c3c3f264eea4d6e68e8aa4e444414ee_rle_crop_3702890279_0.png.png imagette212227411741616225/1741615693_3749548_1342544498_3c3c3f264eea4d6e68e8aa4e444414ee_rle_crop_3702890278_0.png.png imagette212227411741616225/1741615693_3749548_1342543910_1bf46f07158e83be026908e180a99b90_rle_crop_3702890378_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8c254abde80ef44f72f37f3e26e62b1e_16113898.png imagette212227411741616225 21222742 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342549939: '1741615693_3749548_1342543910_1bf46f07158e83be026908e180a99b90_rle_crop_3702890370_0.png', 1342550829: '1741615788_3750764_1342548917_faec369832da643d7f6c85f540b6f93a_rle_crop_3702892070_0.png', 1342551107: '1741615913_3755156_1342548777_e7ab8da064057a1363ae0218ee73bb73_rle_crop_3702894068_0.png', 1342551129: '1741615947_4111555_1342550316_c556ff87fc9882b04eacfe0c852c7e26_rle_crop_3702894075_0.png', 1342551130: '1741615947_4111555_1342549903_47343155004a6c69354a72b3e8476558_rle_crop_3702894103_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a1efda461c64509403b8f02508f08dd5_30661674.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1a649fb481997dd7881c5fade25fff13_75689529.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e892479e36e4938f64ca0127f5f201b0_63383510.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9a10d66041f9d906c0c646b3e7ce15c0_73170351.png change filename to text .imagette212227421741616226/ imagette212227421741616226/1741615913_3755156_1342548777_e7ab8da064057a1363ae0218ee73bb73_rle_crop_3702894068_0.png.png imagette212227421741616226/1741615947_4111555_1342549903_47343155004a6c69354a72b3e8476558_rle_crop_3702894103_0.png.png imagette212227421741616226/1741615788_3750764_1342548917_faec369832da643d7f6c85f540b6f93a_rle_crop_3702892070_0.png.png imagette212227421741616226/1741615693_3749548_1342543910_1bf46f07158e83be026908e180a99b90_rle_crop_3702890370_0.png.png imagette212227421741616226/1741615947_4111555_1342550316_c556ff87fc9882b04eacfe0c852c7e26_rle_crop_3702894075_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d98f6901858e0399297c8a7d6f4a66a3_38783661.png imagette212227421741616226 21222745 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342549965: '1741615693_3749548_1342543910_1bf46f07158e83be026908e180a99b90_rle_crop_3702890372_0.png', 1342551078: '1741615892_3754921_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893850_0.png', 1342551081: '1741615892_3754921_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893865_0.png', 1342551086: '1741615892_3754921_1342548884_a4b0ec38280b00fafbca795e67cc7f84_rle_crop_3702894055_0.png', 1342551135: '1741615947_4111555_1342549903_47343155004a6c69354a72b3e8476558_rle_crop_3702894110_0.png', 1342551136: '1741615947_4111555_1342549903_47343155004a6c69354a72b3e8476558_rle_crop_3702894105_0.png', 1342551137: '1741615947_4111555_1342549841_dacb2ac1076dc428de3cb350b63303a0_rle_crop_3702894258_0.png', 1342551254: '1741615955_3755973_1342550650_c896f0b299734bded8f920c2eafca80d_rle_crop_3702895558_0.png', 1342551635: '1741616067_4114606_1342549958_a2f064e650f2d29c2f2ead4eb8a6f8b6_rle_crop_3702896065_0.png', 1342551637: '1741616067_4114606_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893850_0.png', 1342551639: '1741616067_4114606_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893865_0.png', 1342551644: '1741616067_4114606_1342548884_a4b0ec38280b00fafbca795e67cc7f84_rle_crop_3702894055_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/02ea4ded4c2b4c02c0358a50c1e99a7d_97384499.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/99f506255a5d21ea5e8307fbe5c1d2f6_57431093.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/86bb89f259dee8eabcfaafcde0076aa3_37953342.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/066b55dad3a98b6eeb5e7e4bdbba8780_83744064.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/09aea609c10823672763f34fa4596a14_58395261.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9cc1e42dff2d5fb5241457eacd57bc3f_95024302.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a9ec692cf9986e3e24b1f25a6cf0ace5_28491485.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e352fffd5a5ce98ad126a19155a49304_18007214.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2c7c4170ec9e57efd9c3965b9df4a052_94451090.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/99f506255a5d21ea5e8307fbe5c1d2f6_59624514.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/86bb89f259dee8eabcfaafcde0076aa3_16155905.png change filename to text .imagette212227451741616226/ imagette212227451741616226/1741615892_3754921_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893850_0.png.png imagette212227451741616226/1741615947_4111555_1342549841_dacb2ac1076dc428de3cb350b63303a0_rle_crop_3702894258_0.png.png imagette212227451741616226/1741615892_3754921_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893865_0.png.png imagette212227451741616226/1741615955_3755973_1342550650_c896f0b299734bded8f920c2eafca80d_rle_crop_3702895558_0.png.png imagette212227451741616226/1741615693_3749548_1342543910_1bf46f07158e83be026908e180a99b90_rle_crop_3702890372_0.png.png imagette212227451741616226/1741616067_4114606_1342549958_a2f064e650f2d29c2f2ead4eb8a6f8b6_rle_crop_3702896065_0.png.png imagette212227451741616226/1741615947_4111555_1342549903_47343155004a6c69354a72b3e8476558_rle_crop_3702894105_0.png.png imagette212227451741616226/1741616067_4114606_1342548893_55e3332d5c00805eed742fb4e7271ea0_rle_crop_3702893865_0.png.png imagette212227451741616226/1741616067_4114606_1342548884_a4b0ec38280b00fafbca795e67cc7f84_rle_crop_3702894055_0.png.png imagette212227451741616226/1741615947_4111555_1342549903_47343155004a6c69354a72b3e8476558_rle_crop_3702894110_0.png.png imagette212227451741616226/1741615892_3754921_1342548884_a4b0ec38280b00fafbca795e67cc7f84_rle_crop_3702894055_0.png.png imagette212227451741616226/1741616067_4114606_1342548901_055668120d9b9ce6951eae0f8dca87c3_rle_crop_3702893850_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/066b55dad3a98b6eeb5e7e4bdbba8780_18072217.png imagette212227451741616226 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21222733 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21222749,21222750,21222751,21222752,21222753,21222754,21222755,21222756,21222757,21222758,21222759,21222760?tags=autre_refus,cartonnette,kraft,environnement,plastique,Teint_Dans_La_Masse,Carton_gris,mal_croppe,metal,Carton_brun,flou,papier your option no_mail is active, we will not send the real mail to your client args[1342552041] : ('0.09020474931148317',) no score found for photo 1342552041 We are sending mail with results at report@fotonower.com args[1342551976] : ('0.09020474931148317',) no score found for photo 1342551976 We are sending mail with results at report@fotonower.com args[1342551877] : ('0.09020474931148317',) no score found for photo 1342551877 We are sending mail with results at report@fotonower.com args[1342551818] : ('0.09020474931148317',) no score found for photo 1342551818 We are sending mail with results at report@fotonower.com args[1342551556] : ('0.09020474931148317',) no score found for photo 1342551556 We are sending mail with results at report@fotonower.com args[1342551508] : ('0.09020474931148317',) no score found for photo 1342551508 We are sending mail with results at report@fotonower.com args[1342551232] : ('0.09020474931148317',) no score found for photo 1342551232 We are sending mail with results at report@fotonower.com args[1342551227] : ('0.09020474931148317',) no score found for photo 1342551227 We are sending mail with results at report@fotonower.com args[1342551216] : ('0.09020474931148317',) no score found for photo 1342551216 We are sending mail with results at report@fotonower.com args[1342551195] : ('0.09020474931148317',) no score found for photo 1342551195 We are sending mail with results at report@fotonower.com args[1342551082] : ('0.09020474931148317',) no score found for photo 1342551082 We are sending mail with results at report@fotonower.com args[1342551035] : ('0.09020474931148317',) no score found for photo 1342551035 We are sending mail with results at report@fotonower.com args[1342551018] : ('0.09020474931148317',) no score found for photo 1342551018 We are sending mail with results at report@fotonower.com args[1342550995] : ('0.09020474931148317',) no score found for photo 1342550995 We are sending mail with results at report@fotonower.com refus_total : 0.09020474931148317 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222733 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_P21222733_10-03-2025_15_17_03.pdf results_Auto_P21222733_10-03-2025_15_17_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21222733_10-03-2025_15_17_03.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','21222733','results_Auto_P21222733_10-03-2025_15_17_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21222733_10-03-2025_15_17_03.pdf','pdf','','0.29','0.09020474931148317') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21222733]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995] map_info['map_portfolio_photo'] : {21222733: [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995, 1342550960, 1342550955, 1342550934, 1342550922, 1342550901, 1342550704, 1342550668, 1342550650, 1342550615, 1342550316, 1342550274, 1342550218, 1342549958, 1342549903, 1342549859, 1342549841, 1342548917, 1342548901, 1342548893, 1342548888, 1342548884, 1342548777, 1342548740, 1342548689, 1342548585, 1342548517, 1342547272, 1342547206, 1342547141, 1342546465, 1342546230, 1342546037, 1342545908, 1342544498, 1342544451, 1342544402, 1342543945, 1342543910]} final : False mtd_id 4302 list_pids : [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995] 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, '2654463') ('4302', '21222733', '1342552041', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551976', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551877', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551818', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551556', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551508', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551232', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551227', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551216', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551195', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551082', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551035', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551018', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342550995', None, None, None, None, None, '2654463') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21222733', '1342552041', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551976', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551877', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551818', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551556', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551508', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551232', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551227', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551216', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551195', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551082', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551035', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551018', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342550995', None, None, None, None, None, '2654463')] time used for this insertion : 0.040062904357910156 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.92149806022644 time spend to save output : 0.040450096130371094 total time spend for step 4 : 5.9619481563568115 step5:split_time_score Mon Mar 10 15:17:08 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 : ['21222733'] 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 : [('21222733',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21222733) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342551976: {'path': 'temp/1741616222_3115600_1342551976_5401feaf29061b21e0f400c5934973ad.jpg', 'extension': 'jpg'}, 1342552041: {'path': 'temp/1741616222_3115600_1342552041_37dc489d25222c73cc5a3032556218d2.jpg', 'extension': 'jpg'}, 1342551556: {'path': 'temp/1741616222_3115600_1342551556_ac2bc32db1c7ccbf09c126cc781af932.jpg', 'extension': 'jpg'}, 1342551818: {'path': 'temp/1741616222_3115600_1342551818_5a09d5895c0c1412174b67db19d073c3.jpg', 'extension': 'jpg'}, 1342551877: {'path': 'temp/1741616222_3115600_1342551877_ea62798164fbb3e958c7ce680016de57.jpg', 'extension': 'jpg'}, 1342550995: {'path': 'temp/1741616222_3115600_1342550995_db5942480b4e94c725e8af944cb8a5bd.jpg', 'extension': 'jpg'}, 1342551018: {'path': 'temp/1741616222_3115600_1342551018_6b88afc238f5117862e54189c48fc078.jpg', 'extension': 'jpg'}, 1342551035: {'path': 'temp/1741616222_3115600_1342551035_8132b2c1a6c43590aa0bc96234aca769.jpg', 'extension': 'jpg'}, 1342551082: {'path': 'temp/1741616222_3115600_1342551082_e5ac5aec45bfaae453471c5cae3d93c2.jpg', 'extension': 'jpg'}, 1342551195: {'path': 'temp/1741616222_3115600_1342551195_afe1bc59748bd0370fbe96251f3f14f3.jpg', 'extension': 'jpg'}, 1342551216: {'path': 'temp/1741616222_3115600_1342551216_27d5eac44324e1811181fab4c2839aa7.jpg', 'extension': 'jpg'}, 1342551227: {'path': 'temp/1741616222_3115600_1342551227_64dd7549811ca18fede403dac42c41a6.jpg', 'extension': 'jpg'}, 1342551232: {'path': 'temp/1741616222_3115600_1342551232_0d1ead8195ecc0791a8464c1a932f0bc.jpg', 'extension': 'jpg'}, 1342551508: {'path': 'temp/1741616222_3115600_1342551508_90d2e945eab2b78f9b579fbc9e8a90a7.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 = 21222733; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21222733 group by h (('15', 52),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21222733 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 (21222733) 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 (21222733) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10032025 21222733 Nombre de photos uploadées : 52 / 23040 (0%) 10032025 21222733 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 10032025 21222733 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1342543945, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/223e18f16b5a77ecf8058bc2dd3c0da7.jpg', 'username': None, 'uploaded_at': 1741615377, 'text': 'image_10032025_15_00_14_10202.jpg'}, {'photo_id': 1342543910, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1bf46f07158e83be026908e180a99b90.jpg', 'username': None, 'uploaded_at': 1741615377, 'text': 'image_10032025_15_01_14_009125m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342544498, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3c3c3f264eea4d6e68e8aa4e444414ee.jpg', 'username': None, 'uploaded_at': 1741615422, 'text': 'image_10032025_15_01_54_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342544451, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4fcda1729d1b8bb3d148078e8ca121a9.jpg', 'username': None, 'uploaded_at': 1741615422, 'text': 'image_10032025_15_02_24_9125.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.76837158203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.2159347534179688e-05 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022776126861572266 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21222733, '2025-03-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1654691,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.07754039764404297 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= 1654691 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1654691, 'dashboard_run_id': 1662649, 'mtr_portfolio_id': 21222729, 'dashboard_result_id': 9310782, '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_P21222729_10-03-2025_15_08_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21222789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21222790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21222792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21222795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21222797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21222799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21222801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21222803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21222806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21222808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21222810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21222812, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1662649, 'mtr_portfolio_id': 21222733, 'dashboard_result_id': 9310783, '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_P21222733_10-03-2025_15_13_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21222736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21222737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21222738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21222739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21222740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21222741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21222742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21222743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21222744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21222745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21222746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21222747, '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 = 21222729 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 21222729 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21222729 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21222729 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21222729 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21222729 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21222729_10-03-2025_15_08_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21222729 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_P21222729_10-03-2025_15_08_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21222789, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21222790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21222792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21222795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21222797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21222799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21222801, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21222803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21222806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21222808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21222810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21222812, 'pht': 3726}}" where mtr_portfolio_id = 21222729 and dashboard_run_id = 1662649 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 = 21222733 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': 2654463, 'mtr_portfolio_id': 21222733, 'created_at': datetime.datetime(2025, 3, 10, 15, 17, 2), 'result': '0.09020474931148317', 'result_long': None, 'result_double': None}] Qualite : 0.09020474931148317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21222733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21222733_10-03-2025_15_17_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21222733 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_P21222733_10-03-2025_15_17_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21222736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21222737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21222738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21222739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21222740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21222741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21222742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21222743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21222744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21222745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21222746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21222747, 'pht': 3726}}" where mtr_portfolio_id = 21222733 and dashboard_run_id = 1662649 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`=21222733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9310783, 0.09020474931148317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21222733_10-03-2025_15_17_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21222736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21222737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21222738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21222739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21222740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21222741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21222742, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21222743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21222744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21222745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21222746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21222747, '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 (21222729,21222733) result : ((1342543589,), (1342543596,), (1342543630,), (1342543643,), (1342543676,), (1342543681,), (1342543726,), (1342543730,), (1342543770,), (1342543774,), (1342543814,), (1342543817,), (1342544025,), (1342544079,), (1342544128,), (1342544185,), (1342544593,), (1342544689,), (1342544779,), (1342545186,), (1342545309,), (1342545429,), (1342545492,), (1342545581,), (1342545666,), (1342546677,), (1342546911,), (1342547309,), (1342547361,), (1342543910,), (1342543945,), (1342544402,), (1342544451,), (1342544498,), (1342545908,), (1342546037,), (1342546230,), (1342546465,), (1342547141,), (1342547206,), (1342547272,), (1342548517,), (1342548585,), (1342548689,), (1342548740,), (1342548777,), (1342548884,), (1342548888,), (1342548893,), (1342548901,), (1342548917,), (1342549841,), (1342549859,), (1342549903,), (1342549958,), (1342550218,), (1342550274,), (1342550316,), (1342550615,), (1342550650,), (1342550668,), (1342550704,), (1342550901,), (1342550922,), (1342550934,), (1342550955,), (1342550960,), (1342550995,), (1342551018,), (1342551035,), (1342551082,), (1342551195,), (1342551216,), (1342551227,), (1342551232,), (1342551508,), (1342551556,), (1342551818,), (1342551877,), (1342551976,), (1342552041,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10032025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21222733]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995] map_info['map_portfolio_photo'] : {21222733: [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995, 1342550960, 1342550955, 1342550934, 1342550922, 1342550901, 1342550704, 1342550668, 1342550650, 1342550615, 1342550316, 1342550274, 1342550218, 1342549958, 1342549903, 1342549859, 1342549841, 1342548917, 1342548901, 1342548893, 1342548888, 1342548884, 1342548777, 1342548740, 1342548689, 1342548585, 1342548517, 1342547272, 1342547206, 1342547141, 1342546465, 1342546230, 1342546037, 1342545908, 1342544498, 1342544451, 1342544402, 1342543945, 1342543910]} final : True mtd_id 4302 list_pids : [1342552041, 1342551976, 1342551877, 1342551818, 1342551556, 1342551508, 1342551232, 1342551227, 1342551216, 1342551195, 1342551082, 1342551035, 1342551018, 1342550995] Looping around the photos to save general results len do output : 1 /21222733Didn'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, '2654463') ('4302', '21222733', '1342552041', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551976', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551877', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551818', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551556', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551508', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551232', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551227', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551216', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551195', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551082', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551035', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342551018', None, None, None, None, None, '2654463') ('4302', None, None, None, None, None, None, None, '2654463') ('4302', '21222733', '1342550995', None, None, None, None, None, '2654463') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21222733', 'None', None, None, None, None, '2654463'), ('4302', '21222733', '1342552041', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551976', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551877', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551818', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551556', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551508', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551232', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551227', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551216', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551195', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551082', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551035', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342551018', None, None, None, None, None, '2654463'), ('4302', '21222733', '1342550995', None, None, None, None, None, '2654463')] time used for this insertion : 0.040430307388305664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.768404483795166 time spend to save output : 0.04079771041870117 total time spend for step 5 : 0.8092021942138672 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 (2654463) 2.69user 2.41system 0:14.45elapsed 35%CPU (0avgtext+0avgdata 160068maxresident)k 26000inputs+16960outputs (156major+77389minor)pagefaults 0swaps