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 : 3761086 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 (2611821) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2611821) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791187 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2611821'] with mtr_portfolio_ids : ['20791187'] and first list_photo_ids : [] new path : /proc/3761086/ Name: python3 Umask: 0002 State: R (running) Tgid: 3761086 Ngid: 0 Pid: 3761086 PPid: 3761085 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3761086 NSpid: 3761086 NSpgid: 3758935 NSsid: 3758935 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100604 kB VmRSS: 100604 kB RssAnon: 59764 kB RssFile: 40840 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 48 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3761086', 'Ngid': '0', 'Pid': '3761086', 'PPid': '3761085', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3761086', 'NSpid': '3761086', 'NSpgid': '3758935', 'NSsid': '3758935', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100604 kB', 'VmRSS': '100604 kB', 'RssAnon': '59764 kB', 'RssFile': '40840 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '48', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '3761086', '1106844', '0', '1106844', '865592', '100604', b'', 'marlene', '2611821') 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 (20791187) 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 (2611821 ) ) 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 (20791187) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339505608, 'portfolio_id': 20791187}, {'photo_id': 1339505601, 'portfolio_id': 20791187}, {'photo_id': 1339505595, 'portfolio_id': 20791187}, {'photo_id': 1339505590, 'portfolio_id': 20791187}, {'photo_id': 1339505584, 'portfolio_id': 20791187}, {'photo_id': 1339505578, 'portfolio_id': 20791187}, {'photo_id': 1339505523, 'portfolio_id': 20791187}, {'photo_id': 1339505520, 'portfolio_id': 20791187}, {'photo_id': 1339505516, 'portfolio_id': 20791187}, {'photo_id': 1339505512, 'portfolio_id': 20791187}, {'photo_id': 1339505508, 'portfolio_id': 20791187}, {'photo_id': 1339505480, 'portfolio_id': 20791187}, {'photo_id': 1339505477, 'portfolio_id': 20791187}, {'photo_id': 1339505474, 'portfolio_id': 20791187}, {'photo_id': 1339505467, 'portfolio_id': 20791187}, {'photo_id': 1339505464, 'portfolio_id': 20791187}, {'photo_id': 1339505438, 'portfolio_id': 20791187}, {'photo_id': 1339505437, 'portfolio_id': 20791187}, {'photo_id': 1339505434, 'portfolio_id': 20791187}, {'photo_id': 1339505431, 'portfolio_id': 20791187}, {'photo_id': 1339505428, 'portfolio_id': 20791187}, {'photo_id': 1339505424, 'portfolio_id': 20791187}, {'photo_id': 1339505407, 'portfolio_id': 20791187}, {'photo_id': 1339505403, 'portfolio_id': 20791187}, {'photo_id': 1339505395, 'portfolio_id': 20791187}, {'photo_id': 1339505386, 'portfolio_id': 20791187}, {'photo_id': 1339505356, 'portfolio_id': 20791187}, {'photo_id': 1339505351, 'portfolio_id': 20791187}, {'photo_id': 1339505328, 'portfolio_id': 20791187}, {'photo_id': 1339505313, 'portfolio_id': 20791187}, {'photo_id': 1339505310, 'portfolio_id': 20791187}, {'photo_id': 1339505309, 'portfolio_id': 20791187}, {'photo_id': 1339505292, 'portfolio_id': 20791187}, {'photo_id': 1339505279, 'portfolio_id': 20791187}, {'photo_id': 1339505254, 'portfolio_id': 20791187}, {'photo_id': 1339505213, 'portfolio_id': 20791187}, {'photo_id': 1339505182, 'portfolio_id': 20791187}, {'photo_id': 1339505177, 'portfolio_id': 20791187}, {'photo_id': 1339504741, 'portfolio_id': 20791187}, {'photo_id': 1339504738, 'portfolio_id': 20791187}, {'photo_id': 1339504735, 'portfolio_id': 20791187}, {'photo_id': 1339504732, 'portfolio_id': 20791187}, {'photo_id': 1339504708, 'portfolio_id': 20791187}, {'photo_id': 1339504704, 'portfolio_id': 20791187}, {'photo_id': 1339504701, 'portfolio_id': 20791187}, {'photo_id': 1339504698, 'portfolio_id': 20791187}] map_portfolio_id_photo_id: {20791187: [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508, 1339505480, 1339505477, 1339505474, 1339505467, 1339505464, 1339505438, 1339505437, 1339505434, 1339505431, 1339505428, 1339505424, 1339505407, 1339505403, 1339505395, 1339505386, 1339505356, 1339505351, 1339505328, 1339505313, 1339505310, 1339505309, 1339505292, 1339505279, 1339505254, 1339505213, 1339505182, 1339505177, 1339504741, 1339504738, 1339504735, 1339504732, 1339504708, 1339504704, 1339504701, 1339504698]} ##### 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.016430377960205078 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 25 07:16:56 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 (20791187) 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 : 20791187 get user id for portfolio 20791187 get sub ptf for main ptf 20791187, type 3726 and hashtags ['kraft', 'metal', 'Carton_gris', 'Teint_Dans_La_Masse', 'environnement', 'autre_refus', 'cartonnette', 'mal_croppe', 'plastique', 'Carton_brun', 'papier', 'flou'] 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`=20791187 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Carton_gris','Teint_Dans_La_Masse','environnement','autre_refus','cartonnette','mal_croppe','plastique','Carton_brun','papier','flou')) 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`=20791187 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Carton_gris','Teint_Dans_La_Masse','environnement','autre_refus','cartonnette','mal_croppe','plastique','Carton_brun','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20791187, 'sub_port_id': 20791212, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429747, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}, 'papier': {'main_port_id': 20791187, 'sub_port_id': 20791213, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429748, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}, 'environnement': {'main_port_id': 20791187, 'sub_port_id': 20791214, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429749, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}, 'metal': {'main_port_id': 20791187, 'sub_port_id': 20791215, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429750, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}, 'Carton_brun': {'main_port_id': 20791187, 'sub_port_id': 20791216, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429751, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}, 'cartonnette': {'main_port_id': 20791187, 'sub_port_id': 20791217, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429752, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20791187, 'sub_port_id': 20791218, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429753, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}, 'kraft': {'main_port_id': 20791187, 'sub_port_id': 20791219, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429754, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}, 'autre_refus': {'main_port_id': 20791187, 'sub_port_id': 20791220, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429755, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}, 'flou': {'main_port_id': 20791187, 'sub_port_id': 20791221, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429756, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}, 'Carton_gris': {'main_port_id': 20791187, 'sub_port_id': 20791222, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429757, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}, 'mal_croppe': {'main_port_id': 20791187, 'sub_port_id': 20791223, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429758, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20791212 , 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=20791187 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 (20791212) result : ((1339505295,), (1339505296,), (1339505454,), (1339505489,), (1339505500,), (1339505536,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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 20791213 , 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=20791187 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 (20791213) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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 20791214 , 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=20791187 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 (20791214) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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 20791215 , 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=20791187 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 (20791215) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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 20791216 , 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=20791187 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 (20791216) result : ((1339505453,), (1339505472,), (1339505497,), (1339505498,), (1339505535,), (1339505541,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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 20791217 , 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=20791187 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 (20791217) result : ((1339505294,), (1339505450,), (1339505451,), (1339505495,), (1339505496,), (1339505532,), (1339505533,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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 20791218 , 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=20791187 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 (20791218) result : ((1339505290,), (1339505525,), (1339505526,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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 20791219 , 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=20791187 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 (20791219) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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 20791220 , 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=20791187 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 (20791220) result : ((1339505527,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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 20791221 , 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=20791187 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 (20791221) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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 20791222 , 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=20791187 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 (20791222) result : ((1339505291,), (1339505293,), (1339505441,), (1339505470,), (1339505471,), (1339505487,), (1339505488,), (1339505491,), (1339505492,), (1339505493,), (1339505528,), (1339505529,), (1339505530,), (1339505531,), (1339505538,), (1339505539,), (1339505540,), (1339505573,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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 20791223 , 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=20791187 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 (20791223) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20791187) result : ((1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) 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`=20791187 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Carton_gris','Teint_Dans_La_Masse','environnement','autre_refus','cartonnette','mal_croppe','plastique','Carton_brun','papier','flou')) 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`=20791187 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','metal','Carton_gris','Teint_Dans_La_Masse','environnement','autre_refus','cartonnette','mal_croppe','plastique','Carton_brun','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20791187, 'sub_port_id': 20791224, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429759, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}, 'papier': {'main_port_id': 20791187, 'sub_port_id': 20791225, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429760, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}, 'environnement': {'main_port_id': 20791187, 'sub_port_id': 20791226, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429761, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}, 'metal': {'main_port_id': 20791187, 'sub_port_id': 20791227, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429762, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}, 'Carton_brun': {'main_port_id': 20791187, 'sub_port_id': 20791228, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429763, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}, 'cartonnette': {'main_port_id': 20791187, 'sub_port_id': 20791229, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429764, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20791187, 'sub_port_id': 20791230, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429765, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}, 'kraft': {'main_port_id': 20791187, 'sub_port_id': 20791231, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429766, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}, 'autre_refus': {'main_port_id': 20791187, 'sub_port_id': 20791232, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429767, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}, 'flou': {'main_port_id': 20791187, 'sub_port_id': 20791233, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429768, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}, 'Carton_gris': {'main_port_id': 20791187, 'sub_port_id': 20791234, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429769, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 4, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}, 'mal_croppe': {'main_port_id': 20791187, 'sub_port_id': 20791235, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13429770, 'last_updated_at': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 25, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 25, 7, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791214 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791227,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791215 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791228,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791216 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791219 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20791235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20791223 lien utilise dans velours : https://www.fotonower.com/velours/20791224,20791225,20791226,20791227,20791228,20791229,20791230,20791231,20791232,20791233,20791234,20791235?tags=plastique,papier,environnement,metal,Carton_brun,cartonnette,Teint_Dans_La_Masse,kraft,autre_refus,flou,Carton_gris,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20791187]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508] map_info['map_portfolio_photo'] : {20791187: [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508, 1339505480, 1339505477, 1339505474, 1339505467, 1339505464, 1339505438, 1339505437, 1339505434, 1339505431, 1339505428, 1339505424, 1339505407, 1339505403, 1339505395, 1339505386, 1339505356, 1339505351, 1339505328, 1339505313, 1339505310, 1339505309, 1339505292, 1339505279, 1339505254, 1339505213, 1339505182, 1339505177, 1339504741, 1339504738, 1339504735, 1339504732, 1339504708, 1339504704, 1339504701, 1339504698]} final : False mtd_id 4302 list_pids : [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508] Looping around the photos to save general results len do output : 1 /20791187. 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, '2611821') ('4302', '20791187', '1339505608', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505601', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505595', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505590', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505584', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505578', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505523', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505520', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505516', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505512', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505508', None, None, None, None, None, '2611821') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20791187', "{'plastique': 20791212, 'papier': 20791213, 'environnement': 20791214, 'metal': 20791215, 'Carton_brun': 20791216, 'cartonnette': 20791217, 'Teint_Dans_La_Masse': 20791218, 'kraft': 20791219, 'autre_refus': 20791220, 'flou': 20791221, 'Carton_gris': 20791222, 'mal_croppe': 20791223}", None, None, None, None, '2611821'), ('4302', '20791187', '1339505608', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505601', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505595', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505590', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505584', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505578', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505523', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505520', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505516', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505512', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505508', None, None, None, None, None, '2611821')] time used for this insertion : 0.015692472457885742 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.219113826751709 time spend to save output : 0.016032695770263672 total time spend for step 1 : 2.2351465225219727 step2:final Tue Feb 25 07:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (20791187) 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 20791187 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339504708,1339504704,1339504701,1339504698,1339504741,1339504738,1339504735,1339504732,1339505292,1339505279,1339505254,1339505213,1339505182,1339505177,1339505356,1339505351,1339505328,1339505313,1339505310,1339505309,1339505407,1339505403,1339505395,1339505386,1339505438,1339505437,1339505434,1339505431,1339505428,1339505424,1339505480,1339505477,1339505474,1339505467,1339505464,1339505523,1339505520,1339505516,1339505512,1339505508,1339505608,1339505601,1339505595,1339505590,1339505584,1339505578); 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([20791187]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} new output for save of step final : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508] map_info['map_portfolio_photo'] : {20791187: [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508, 1339505480, 1339505477, 1339505474, 1339505467, 1339505464, 1339505438, 1339505437, 1339505434, 1339505431, 1339505428, 1339505424, 1339505407, 1339505403, 1339505395, 1339505386, 1339505356, 1339505351, 1339505328, 1339505313, 1339505310, 1339505309, 1339505292, 1339505279, 1339505254, 1339505213, 1339505182, 1339505177, 1339504741, 1339504738, 1339504735, 1339504732, 1339504708, 1339504704, 1339504701, 1339504698]} final : False mtd_id 4302 list_pids : [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508] Looping around the photos to save general results len do output : 11 /1339505608.Didn't retrieve data . /1339505601.Didn't retrieve data . /1339505595.Didn't retrieve data . /1339505590.Didn't retrieve data . /1339505584.Didn't retrieve data . /1339505578.Didn't retrieve data . /1339505523.Didn't retrieve data . /1339505520.Didn't retrieve data . /1339505516.Didn't retrieve data . /1339505512.Didn't retrieve data . /1339505508.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, '2611821') ('4302', '20791187', '1339505608', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505601', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505595', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505590', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505584', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505578', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505523', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505520', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505516', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505512', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505508', None, None, None, None, None, '2611821') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '20791187', '1339505608', '0.033692121655439486', None, None, None, None, '2611821'), ('4302', '20791187', '1339505601', '0.033692121655439486', None, None, None, None, '2611821'), ('4302', '20791187', '1339505595', '0.033692121655439486', None, None, None, None, '2611821'), ('4302', '20791187', '1339505590', '0.033692121655439486', None, None, None, None, '2611821'), ('4302', '20791187', '1339505584', '0.033692121655439486', None, None, None, None, '2611821'), ('4302', '20791187', '1339505578', '0.033692121655439486', None, None, None, None, '2611821'), ('4302', '20791187', '1339505523', '0.033692121655439486', None, None, None, None, '2611821'), ('4302', '20791187', '1339505520', '0.033692121655439486', None, None, None, None, '2611821'), ('4302', '20791187', '1339505516', '0.033692121655439486', None, None, None, None, '2611821'), ('4302', '20791187', '1339505512', '0.033692121655439486', None, None, None, None, '2611821'), ('4302', '20791187', '1339505508', '0.033692121655439486', None, None, None, None, '2611821')] time used for this insertion : 0.013797283172607422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10655832290649414 time spend to save output : 0.014411211013793945 total time spend for step 2 : 0.12096953392028809 step3:velours_tree Tue Feb 25 07:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20791187: [{'plastique': 20791212, 'papier': 20791213, 'environnement': 20791214, 'metal': 20791215, 'Carton_brun': 20791216, 'cartonnette': 20791217, 'Teint_Dans_La_Masse': 20791218, 'kraft': 20791219, 'autre_refus': 20791220, 'flou': 20791221, 'Carton_gris': 20791222, 'mal_croppe': 20791223}]} input_args_next_step : {20791187: ()} output_args : {20791187: [{'plastique': 20791212, 'papier': 20791213, 'environnement': 20791214, 'metal': 20791215, 'Carton_brun': 20791216, 'cartonnette': 20791217, 'Teint_Dans_La_Masse': 20791218, 'kraft': 20791219, 'autre_refus': 20791220, 'flou': 20791221, 'Carton_gris': 20791222, 'mal_croppe': 20791223}]} args : 20791187 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 : ({'plastique': 20791212, 'papier': 20791213, 'environnement': 20791214, 'metal': 20791215, 'Carton_brun': 20791216, 'cartonnette': 20791217, 'Teint_Dans_La_Masse': 20791218, 'kraft': 20791219, 'autre_refus': 20791220, 'flou': 20791221, 'Carton_gris': 20791222, 'mal_croppe': 20791223},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20791187) 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([20791187]) 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.32164621353149414 time spend to save output : 5.269050598144531e-05 total time spend for step 3 : 0.3216989040374756 step4:send_mail_cod Tue Feb 25 07:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} input_args_next_step : {1339505608: ()} output_args : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} args : 1339505608 depend.output_id : 0 input_args_next_step : {1339505608: ('0.033692121655439486',), 1339505601: ()} output_args : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} args : 1339505601 depend.output_id : 0 input_args_next_step : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ()} output_args : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} args : 1339505595 depend.output_id : 0 input_args_next_step : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ()} output_args : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} args : 1339505590 depend.output_id : 0 input_args_next_step : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ()} output_args : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} args : 1339505584 depend.output_id : 0 input_args_next_step : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ()} output_args : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} args : 1339505578 depend.output_id : 0 input_args_next_step : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ()} output_args : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} args : 1339505523 depend.output_id : 0 input_args_next_step : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ()} output_args : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} args : 1339505520 depend.output_id : 0 input_args_next_step : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ()} output_args : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} args : 1339505516 depend.output_id : 0 input_args_next_step : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ()} output_args : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} args : 1339505512 depend.output_id : 0 input_args_next_step : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ()} output_args : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',)} args : 1339505508 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 : {20791187: [{'plastique': 20791212, 'papier': 20791213, 'environnement': 20791214, 'metal': 20791215, 'Carton_brun': 20791216, 'cartonnette': 20791217, 'Teint_Dans_La_Masse': 20791218, 'kraft': 20791219, 'autre_refus': 20791220, 'flou': 20791221, 'Carton_gris': 20791222, 'mal_croppe': 20791223}]} input_args_next_step : {1339505608: ('0.033692121655439486',), 1339505601: ('0.033692121655439486',), 1339505595: ('0.033692121655439486',), 1339505590: ('0.033692121655439486',), 1339505584: ('0.033692121655439486',), 1339505578: ('0.033692121655439486',), 1339505523: ('0.033692121655439486',), 1339505520: ('0.033692121655439486',), 1339505516: ('0.033692121655439486',), 1339505512: ('0.033692121655439486',), 1339505508: ('0.033692121655439486',), 20791187: ()} output_args : {20791187: [{'plastique': 20791212, 'papier': 20791213, 'environnement': 20791214, 'metal': 20791215, 'Carton_brun': 20791216, 'cartonnette': 20791217, 'Teint_Dans_La_Masse': 20791218, 'kraft': 20791219, 'autre_refus': 20791220, 'flou': 20791221, 'Carton_gris': 20791222, 'mal_croppe': 20791223}]} args : 20791187 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 :12, first value : ('0.033692121655439486',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20791187) 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 (1339505608,1339505601,1339505595,1339505590,1339505584,1339505578,1339505523,1339505520,1339505516,1339505512,1339505508) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339505508 begin to download photo : 1339505520 begin to download photo : 1339505584 begin to download photo : 1339505601 download finish for photo 1339505520 begin to download photo : 1339505523 download finish for photo 1339505601 begin to download photo : 1339505608 download finish for photo 1339505584 begin to download photo : 1339505590 download finish for photo 1339505508 begin to download photo : 1339505512 download finish for photo 1339505523 begin to download photo : 1339505578 download finish for photo 1339505590 begin to download photo : 1339505595 download finish for photo 1339505608 download finish for photo 1339505512 begin to download photo : 1339505516 download finish for photo 1339505595 download finish for photo 1339505516 download finish for photo 1339505578 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 : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P20791187_25-02-2025_07_16_59.pdf 20791212 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=20791212 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339505295: '1740463391_1009328_1339504708_9502745dd8e0b7f322680a3b59c88f12_rle_crop_3686167366_0.png', 1339505296: '1740463391_1009328_1339504704_52a70f800fce49c724ce08399d68fbfb_rle_crop_3686167382_0.png', 1339505454: '1740463574_1011748_1339505309_0215eff6cc64d7e0b58158d6130b4001_rle_crop_3686168714_0.png', 1339505489: '1740463652_1013055_1339505386_dfde2b0c258f50359871f0a0bbb2a13e_rle_crop_3686169747_0.png', 1339505500: '1740463632_1012731_1339505356_2e6f5f55fad186f5d0f286209721d9f9_rle_crop_3686169662_0.png', 1339505536: '1740463671_1013364_1339505309_0215eff6cc64d7e0b58158d6130b4001_rle_crop_3686168714_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e08070e7132ae0e6856710d5f6bfc371_16615063.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/616340440da559cf223060da1616b2c4_7758308.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ca9cda9ab34779c1bbb8dba2bc78e3b7_55092580.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/0a91477fee07df85e7838d462a00270a_23490675.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/207a8ebeca9374e254db785e9fecd966_1792040.png change filename to text .imagette207912121740464219/ imagette207912121740464219/1740463632_1012731_1339505356_2e6f5f55fad186f5d0f286209721d9f9_rle_crop_3686169662_0.png.png imagette207912121740464219/1740463391_1009328_1339504708_9502745dd8e0b7f322680a3b59c88f12_rle_crop_3686167366_0.png.png imagette207912121740464219/1740463652_1013055_1339505386_dfde2b0c258f50359871f0a0bbb2a13e_rle_crop_3686169747_0.png.png imagette207912121740464219/1740463391_1009328_1339504704_52a70f800fce49c724ce08399d68fbfb_rle_crop_3686167382_0.png.png imagette207912121740464219/1740463574_1011748_1339505309_0215eff6cc64d7e0b58158d6130b4001_rle_crop_3686168714_0.png.png imagette207912121740464219/1740463671_1013364_1339505309_0215eff6cc64d7e0b58158d6130b4001_rle_crop_3686168714_0.png.png imagette207912151740464220/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ca9cda9ab34779c1bbb8dba2bc78e3b7_59432514.png imagette207912121740464219 20791215 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=20791215 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207912151740464220 20791217 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=20791217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339505294: '1740463391_1009328_1339504701_33bd538318745edac28ea9cb2e187c28_rle_crop_3686167396_0.png', 1339505450: '1740463574_1011748_1339505328_4cbd4a5e9caf1834954976e47bfb018a_rle_crop_3686168654_0.png', 1339505451: '1740463574_1011748_1339505309_0215eff6cc64d7e0b58158d6130b4001_rle_crop_3686168709_0.png', 1339505495: '1740463632_1012731_1339505182_d9ec5ade1dd51548c703966b3f9094b0_rle_crop_3686169740_0.png', 1339505496: '1740463632_1012731_1339505177_908cd10c80f985b6333a665dae9f300a_rle_crop_3686169763_0.png', 1339505532: '1740463671_1013364_1339505328_4cbd4a5e9caf1834954976e47bfb018a_rle_crop_3686168654_0.png', 1339505533: '1740463671_1013364_1339505309_0215eff6cc64d7e0b58158d6130b4001_rle_crop_3686168709_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/68f0af7d708a072b5330a4dab27cd16d_35079898.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/92b674fc9b506d8fb93282be046d1ea4_35435948.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/371f06792edeaaa7ed1faaa435ec34c9_26725840.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/8e41717de8c590a7ce43f185ade4e232_7886922.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7f9ce5d40ab9a84538709169b8020c6c_66540235.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/92b674fc9b506d8fb93282be046d1ea4_37522905.png change filename to text .imagette207912171740464220/ imagette207912171740464220/1740463574_1011748_1339505328_4cbd4a5e9caf1834954976e47bfb018a_rle_crop_3686168654_0.png.png imagette207912171740464220/1740463391_1009328_1339504701_33bd538318745edac28ea9cb2e187c28_rle_crop_3686167396_0.png.png imagette207912171740464220/1740463574_1011748_1339505309_0215eff6cc64d7e0b58158d6130b4001_rle_crop_3686168709_0.png.png imagette207912171740464220/1740463632_1012731_1339505177_908cd10c80f985b6333a665dae9f300a_rle_crop_3686169763_0.png.png imagette207912171740464220/1740463671_1013364_1339505309_0215eff6cc64d7e0b58158d6130b4001_rle_crop_3686168709_0.png.png imagette207912171740464220/1740463671_1013364_1339505328_4cbd4a5e9caf1834954976e47bfb018a_rle_crop_3686168654_0.png.png imagette207912171740464220/1740463632_1012731_1339505182_d9ec5ade1dd51548c703966b3f9094b0_rle_crop_3686169740_0.png.png imagette207912191740464220/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/371f06792edeaaa7ed1faaa435ec34c9_56142851.png imagette207912171740464220 20791219 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=20791219 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207912191740464220 20791220 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=20791220 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339505527: '1740463671_1013364_1339505351_a9855ec7730cc2f51b836df9c94cc504_rle_crop_3686168644_0.png'} change filename to text .imagette207912201740464220/ imagette207912201740464220/1740463671_1013364_1339505351_a9855ec7730cc2f51b836df9c94cc504_rle_crop_3686168644_0.png.png imagette207912211740464220/ imagette207912231740464220/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/152ade3d5e610cfac2b54a899d83d37e_67282749.png imagette207912201740464220 20791221 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=20791221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207912211740464220 20791223 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=20791223 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207912231740464220 20791216 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=20791216 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339505453: '1740463574_1011748_1339505313_ccf4210c5302ff6da22ba557cb0c8ad6_rle_crop_3686168669_0.png', 1339505472: '1740463612_1012408_1339504735_eee210637bc90e45e5f6449274d34de0_rle_crop_3686169406_0.png', 1339505497: '1740463632_1012731_1339505254_ac0177175ddbcc356c51640e597e7826_rle_crop_3686169698_0.png', 1339505498: '1740463632_1012731_1339505254_ac0177175ddbcc356c51640e597e7826_rle_crop_3686169685_0.png', 1339505535: '1740463671_1013364_1339505313_ccf4210c5302ff6da22ba557cb0c8ad6_rle_crop_3686168669_0.png', 1339505541: '1740463693_1013689_1339504735_eee210637bc90e45e5f6449274d34de0_rle_crop_3686169406_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ca06b2189264cb92e0f655e0dbbd43b6_81705771.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6015bde2ba9cb44a87e6c351caedb3bc_52398978.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/01a8009e92485fe460722ad266822bc3_62186942.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e069bdb31acaebe445ea0b1c2d3df5bd_24034995.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ca06b2189264cb92e0f655e0dbbd43b6_13436338.png change filename to text .imagette207912161740464220/ imagette207912161740464220/1740463612_1012408_1339504735_eee210637bc90e45e5f6449274d34de0_rle_crop_3686169406_0.png.png imagette207912161740464220/1740463693_1013689_1339504735_eee210637bc90e45e5f6449274d34de0_rle_crop_3686169406_0.png.png imagette207912161740464220/1740463632_1012731_1339505254_ac0177175ddbcc356c51640e597e7826_rle_crop_3686169685_0.png.png imagette207912161740464220/1740463574_1011748_1339505313_ccf4210c5302ff6da22ba557cb0c8ad6_rle_crop_3686168669_0.png.png imagette207912161740464220/1740463671_1013364_1339505313_ccf4210c5302ff6da22ba557cb0c8ad6_rle_crop_3686168669_0.png.png imagette207912161740464220/1740463632_1012731_1339505254_ac0177175ddbcc356c51640e597e7826_rle_crop_3686169698_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6015bde2ba9cb44a87e6c351caedb3bc_86236485.png imagette207912161740464220 20791218 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=20791218 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339505290: '1740463391_1009328_1339504704_52a70f800fce49c724ce08399d68fbfb_rle_crop_3686167385_0.png', 1339505525: '1740463671_1013364_1339505351_a9855ec7730cc2f51b836df9c94cc504_rle_crop_3686168647_0.png', 1339505526: '1740463671_1013364_1339505310_63253b5a4fb24cc4b7765e08eb28a99f_rle_crop_3686168698_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/71de4fff8349b63cdb0aaabe2929b7ed_14273308.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/bdc54fdb2500d85e2ff81c4766f87d4e_57858884.png change filename to text .imagette207912181740464221/ imagette207912181740464221/1740463671_1013364_1339505351_a9855ec7730cc2f51b836df9c94cc504_rle_crop_3686168647_0.png.png imagette207912181740464221/1740463391_1009328_1339504704_52a70f800fce49c724ce08399d68fbfb_rle_crop_3686167385_0.png.png imagette207912181740464221/1740463671_1013364_1339505310_63253b5a4fb24cc4b7765e08eb28a99f_rle_crop_3686168698_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/de8ec6aef765614812773f4f6ad90d8d_38863503.png imagette207912181740464221 20791222 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=20791222 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339505493: '1740463632_1012731_1339505177_908cd10c80f985b6333a665dae9f300a_rle_crop_3686169762_0.png', 1339505573: '1740463742_1014433_1339505477_633bf256f387b02d311f2e60024ff830_rle_crop_3686170273_0.png', 1339505540: '1740463693_1013689_1339504732_7991eaa7e27c701fd10209864cf3d5e4_rle_crop_3686169609_0.png', 1339505539: '1740463693_1013689_1339504735_eee210637bc90e45e5f6449274d34de0_rle_crop_3686170151_0.png', 1339505538: '1740463693_1013689_1339504738_a692dc616183cd6bb8ef8a95bbfd0d4f_rle_crop_3686169023_0.png', 1339505531: '1740463671_1013364_1339505310_63253b5a4fb24cc4b7765e08eb28a99f_rle_crop_3686168696_0.png', 1339505530: '1740463671_1013364_1339505328_4cbd4a5e9caf1834954976e47bfb018a_rle_crop_3686168659_0.png', 1339505529: '1740463671_1013364_1339505351_a9855ec7730cc2f51b836df9c94cc504_rle_crop_3686168642_0.png', 1339505528: '1740463671_1013364_1339505351_a9855ec7730cc2f51b836df9c94cc504_rle_crop_3686168641_0.png', 1339505291: '1740463391_1009328_1339504701_33bd538318745edac28ea9cb2e187c28_rle_crop_3686167399_0.png', 1339505492: '1740463632_1012731_1339505177_908cd10c80f985b6333a665dae9f300a_rle_crop_3686169759_0.png', 1339505491: '1740463632_1012731_1339505356_2e6f5f55fad186f5d0f286209721d9f9_rle_crop_3686169661_0.png', 1339505488: '1740463652_1013055_1339505386_dfde2b0c258f50359871f0a0bbb2a13e_rle_crop_3686169750_0.png', 1339505487: '1740463652_1013055_1339505386_dfde2b0c258f50359871f0a0bbb2a13e_rle_crop_3686169745_0.png', 1339505471: '1740463612_1012408_1339504732_7991eaa7e27c701fd10209864cf3d5e4_rle_crop_3686169609_0.png', 1339505470: '1740463612_1012408_1339504738_a692dc616183cd6bb8ef8a95bbfd0d4f_rle_crop_3686169023_0.png', 1339505441: '1740463593_1012088_1339504741_a2a9ee7485b96f42d65ffb78459dea04_rle_crop_3686168686_0.png', 1339505293: '1740463391_1009328_1339504701_33bd538318745edac28ea9cb2e187c28_rle_crop_3686167394_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/85ab6bfa96561b5af7f3856e41559320_52200795.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/ed4228b4ecf8b7efa1e11106364f937e_5222621.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c5ea749317ee999b9b77ef9b621f8d58_37794083.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/a21e5be0fac6573e30694b49a59404d7_45904024.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e0131a464115a74c18d51ed48dc1ae88_68195473.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/db65910aa608bda4fec00517a9b97723_90164279.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c07cad448547e49b86cdddd0bb213d3d_56075354.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/dfac18db2855080b1e89ed06213c50fa_95709161.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/a6b1795887372bf596203842333d41c0_97378533.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/dd99bee05b251abb4f37cb494377987e_13616728.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/b4f690e51b7521ee57156f3ad8a1874f_56108794.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/3d040d6febae92d4bbaa748c052bd634_87048157.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/7e101ac5acae592143c4e0274370ef7a_7465112.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/1e675236b429c353bf69f0c084c8c647_54375494.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/c5ea749317ee999b9b77ef9b621f8d58_78902187.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/e0131a464115a74c18d51ed48dc1ae88_66542459.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/3b66d8021d86ee787b33b25efb06eef5_23559844.png change filename to text .imagette207912221740464221/ imagette207912221740464221/1740463652_1013055_1339505386_dfde2b0c258f50359871f0a0bbb2a13e_rle_crop_3686169745_0.png.png imagette207912221740464221/1740463671_1013364_1339505310_63253b5a4fb24cc4b7765e08eb28a99f_rle_crop_3686168696_0.png.png imagette207912221740464221/1740463632_1012731_1339505177_908cd10c80f985b6333a665dae9f300a_rle_crop_3686169762_0.png.png imagette207912221740464221/1740463391_1009328_1339504701_33bd538318745edac28ea9cb2e187c28_rle_crop_3686167394_0.png.png imagette207912221740464221/1740463391_1009328_1339504701_33bd538318745edac28ea9cb2e187c28_rle_crop_3686167399_0.png.png imagette207912221740464221/1740463671_1013364_1339505351_a9855ec7730cc2f51b836df9c94cc504_rle_crop_3686168641_0.png.png imagette207912221740464221/1740463742_1014433_1339505477_633bf256f387b02d311f2e60024ff830_rle_crop_3686170273_0.png.png imagette207912221740464221/1740463632_1012731_1339505356_2e6f5f55fad186f5d0f286209721d9f9_rle_crop_3686169661_0.png.png imagette207912221740464221/1740463693_1013689_1339504738_a692dc616183cd6bb8ef8a95bbfd0d4f_rle_crop_3686169023_0.png.png imagette207912221740464221/1740463632_1012731_1339505177_908cd10c80f985b6333a665dae9f300a_rle_crop_3686169759_0.png.png imagette207912221740464221/1740463612_1012408_1339504732_7991eaa7e27c701fd10209864cf3d5e4_rle_crop_3686169609_0.png.png imagette207912221740464221/1740463612_1012408_1339504738_a692dc616183cd6bb8ef8a95bbfd0d4f_rle_crop_3686169023_0.png.png imagette207912221740464221/1740463671_1013364_1339505328_4cbd4a5e9caf1834954976e47bfb018a_rle_crop_3686168659_0.png.png imagette207912221740464221/1740463652_1013055_1339505386_dfde2b0c258f50359871f0a0bbb2a13e_rle_crop_3686169750_0.png.png imagette207912221740464221/1740463593_1012088_1339504741_a2a9ee7485b96f42d65ffb78459dea04_rle_crop_3686168686_0.png.png imagette207912221740464221/1740463693_1013689_1339504735_eee210637bc90e45e5f6449274d34de0_rle_crop_3686170151_0.png.png imagette207912221740464221/1740463693_1013689_1339504732_7991eaa7e27c701fd10209864cf3d5e4_rle_crop_3686169609_0.png.png imagette207912221740464221/1740463671_1013364_1339505351_a9855ec7730cc2f51b836df9c94cc504_rle_crop_3686168642_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/766a525fc8ddc5d330cbf8f9773b472d_20511012.png imagette207912221740464221 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20791187 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20791224,20791225,20791226,20791227,20791228,20791229,20791230,20791231,20791232,20791233,20791234,20791235?tags=plastique,papier,environnement,metal,Carton_brun,cartonnette,Teint_Dans_La_Masse,kraft,autre_refus,flou,Carton_gris,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1339505608] : ('0.033692121655439486',) no score found for photo 1339505608 We are sending mail with results at report@fotonower.com args[1339505601] : ('0.033692121655439486',) no score found for photo 1339505601 We are sending mail with results at report@fotonower.com args[1339505595] : ('0.033692121655439486',) no score found for photo 1339505595 We are sending mail with results at report@fotonower.com args[1339505590] : ('0.033692121655439486',) no score found for photo 1339505590 We are sending mail with results at report@fotonower.com args[1339505584] : ('0.033692121655439486',) no score found for photo 1339505584 We are sending mail with results at report@fotonower.com args[1339505578] : ('0.033692121655439486',) no score found for photo 1339505578 We are sending mail with results at report@fotonower.com args[1339505523] : ('0.033692121655439486',) no score found for photo 1339505523 We are sending mail with results at report@fotonower.com args[1339505520] : ('0.033692121655439486',) no score found for photo 1339505520 We are sending mail with results at report@fotonower.com args[1339505516] : ('0.033692121655439486',) no score found for photo 1339505516 We are sending mail with results at report@fotonower.com args[1339505512] : ('0.033692121655439486',) no score found for photo 1339505512 We are sending mail with results at report@fotonower.com args[1339505508] : ('0.033692121655439486',) no score found for photo 1339505508 We are sending mail with results at report@fotonower.com refus_total : 0.033692121655439486 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=20791187 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_P20791187_25-02-2025_07_16_59.pdf results_Auto_P20791187_25-02-2025_07_16_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20791187_25-02-2025_07_16_59.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','20791187','results_Auto_P20791187_25-02-2025_07_16_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20791187_25-02-2025_07_16_59.pdf','pdf','','0.19','0.033692121655439486') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20791187]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508] map_info['map_portfolio_photo'] : {20791187: [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508, 1339505480, 1339505477, 1339505474, 1339505467, 1339505464, 1339505438, 1339505437, 1339505434, 1339505431, 1339505428, 1339505424, 1339505407, 1339505403, 1339505395, 1339505386, 1339505356, 1339505351, 1339505328, 1339505313, 1339505310, 1339505309, 1339505292, 1339505279, 1339505254, 1339505213, 1339505182, 1339505177, 1339504741, 1339504738, 1339504735, 1339504732, 1339504708, 1339504704, 1339504701, 1339504698]} final : False mtd_id 4302 list_pids : [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508] 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, '2611821') ('4302', '20791187', '1339505608', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505601', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505595', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505590', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505584', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505578', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505523', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505520', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505516', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505512', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505508', None, None, None, None, None, '2611821') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '20791187', '1339505608', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505601', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505595', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505590', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505584', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505578', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505523', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505520', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505516', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505512', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505508', None, None, None, None, None, '2611821')] time used for this insertion : 0.013638019561767578 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.125080108642578 time spend to save output : 0.013969898223876953 total time spend for step 4 : 4.139050006866455 step5:split_time_score Tue Feb 25 07:17:03 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 : ['20791187'] 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 : [('20791187',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20791187) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339505601: {'path': 'temp/1740464219_3761086_1339505601_3963875e4b8acb6e5ea4047e613538b6.jpg', 'extension': 'jpg'}, 1339505608: {'path': 'temp/1740464219_3761086_1339505608_941b010ee602264f12b69360df5303fb.jpg', 'extension': 'jpg'}, 1339505584: {'path': 'temp/1740464219_3761086_1339505584_3fc88a45b38d8d1a22cb9bff82c15846.jpg', 'extension': 'jpg'}, 1339505590: {'path': 'temp/1740464219_3761086_1339505590_d4961c047fd0460334e7c0fc73205ebb.jpg', 'extension': 'jpg'}, 1339505595: {'path': 'temp/1740464219_3761086_1339505595_28248d39e3c8f2e1d7417985bfa1452f.jpg', 'extension': 'jpg'}, 1339505508: {'path': 'temp/1740464219_3761086_1339505508_6e6f8fa57d9a11b6a4903093402b740a.jpg', 'extension': 'jpg'}, 1339505512: {'path': 'temp/1740464219_3761086_1339505512_d474a01847bdd4bf80100867b34d6ffc.jpg', 'extension': 'jpg'}, 1339505516: {'path': 'temp/1740464219_3761086_1339505516_8dae7397e7cbabcc0de182fca959e589.jpg', 'extension': 'jpg'}, 1339505520: {'path': 'temp/1740464219_3761086_1339505520_d0732545e43f3e5795e892d75e1656fc.jpg', 'extension': 'jpg'}, 1339505523: {'path': 'temp/1740464219_3761086_1339505523_8729180d3babd6b91e4323ddd37be225.jpg', 'extension': 'jpg'}, 1339505578: {'path': 'temp/1740464219_3761086_1339505578_1f493fce330cb76ff8307eb5f147d424.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 = 20791187; (('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 = 20791187 group by h (('07', 46),) 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=20791187 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 (20791187) 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 (20791187) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25022025 20791187 Nombre de photos uploadées : 46 / 23040 (0%) 25022025 20791187 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 25022025 20791187 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1339504708, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/9502745dd8e0b7f322680a3b59c88f12.jpg', 'username': None, 'uploaded_at': 1740463293, 'text': 'image_25022025_07_00_14_010187m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339504704, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/52a70f800fce49c724ce08399d68fbfb.jpg', 'username': None, 'uploaded_at': 1740463293, 'text': 'image_25022025_07_00_24_010142m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1339504701, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/33bd538318745edac28ea9cb2e187c28.jpg', 'username': None, 'uploaded_at': 1740463293, 'text': 'image_25022025_07_00_34_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339504698, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/25/6814451fc7f20ef8a322849bf36c5cd7.jpg', 'username': None, 'uploaded_at': 1740463293, 'text': 'image_25022025_07_00_44_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0728836059570312e-05 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021615028381347656 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20791187, '2025-02-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1621897,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023828506469726562 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= 1621897 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630126, 'mtr_portfolio_id': 20790301, 'dashboard_result_id': 9040765, '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_P20790301_25-02-2025_06_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20790330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790337, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630126, 'mtr_portfolio_id': 20790710, 'dashboard_result_id': 9040766, '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_P20790710_25-02-2025_07_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20790737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790748, 'pht': 3726}}"}, {'dashboat_entry_day': 1621897, 'dashboard_run_id': 1630126, 'mtr_portfolio_id': 20791187, 'dashboard_result_id': 9040769, '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_P20791187_25-02-2025_07_08_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20791212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20791213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20791214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20791215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20791216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20791217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20791218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20791219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20791220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20791221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20791222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20791223, '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 = 20790301 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': 2611740, 'mtr_portfolio_id': 20790301, 'created_at': datetime.datetime(2025, 2, 25, 6, 49), 'result': '0.04241381022786423', 'result_long': None, 'result_double': None}] Qualite : 0.04241381022786423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20790301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20790301_25-02-2025_06_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20790301 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_P20790301_25-02-2025_06_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20790330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790337, 'pht': 3726}}" where mtr_portfolio_id = 20790301 and dashboard_run_id = 1630126 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`=20790301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9040765, 0.04241381022786423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20790301_25-02-2025_06_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790327, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20790330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790332, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790335, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790337, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20790710 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': 2611774, 'mtr_portfolio_id': 20790710, 'created_at': datetime.datetime(2025, 2, 25, 7, 3, 1), 'result': '0.03738948500974118', 'result_long': None, 'result_double': None}] Qualite : 0.03738948500974118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20790710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20790710_25-02-2025_07_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20790710 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_P20790710_25-02-2025_07_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20790737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790748, 'pht': 3726}}" where mtr_portfolio_id = 20790710 and dashboard_run_id = 1630126 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`=20790710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9040766, 0.03738948500974118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20790710_25-02-2025_07_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20790737, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20790738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20790739, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20790740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20790741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20790742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20790743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20790744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20790745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20790746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20790747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20790748, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20791187 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': 2611821, 'mtr_portfolio_id': 20791187, 'created_at': datetime.datetime(2025, 2, 25, 7, 16, 59), 'result': '0.033692121655439486', 'result_long': None, 'result_double': None}] Qualite : 0.033692121655439486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20791187 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20791187_25-02-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20791187 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_P20791187_25-02-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20791212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20791213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20791214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20791215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20791216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20791217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20791218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20791219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20791220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20791221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20791222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20791223, 'pht': 3726}}" where mtr_portfolio_id = 20791187 and dashboard_run_id = 1630126 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`=20791187 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9040769, 0.033692121655439486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20791187_25-02-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20791212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20791213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20791214, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20791215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20791216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20791217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20791218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20791219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20791220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20791221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20791222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20791223, '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 (20790301,20790710,20791187) result : ((1339503509,), (1339503512,), (1339503522,), (1339503526,), (1339503549,), (1339503557,), (1339503560,), (1339503563,), (1339503566,), (1339503587,), (1339503590,), (1339503593,), (1339503631,), (1339503634,), (1339503646,), (1339503649,), (1339503651,), (1339503654,), (1339503657,), (1339503659,), (1339503665,), (1339503668,), (1339503671,), (1339503674,), (1339503703,), (1339503706,), (1339503709,), (1339503712,), (1339503715,), (1339503717,), (1339503724,), (1339503727,), (1339503729,), (1339503756,), (1339503759,), (1339503762,), (1339503765,), (1339503768,), (1339503771,), (1339503796,), (1339503828,), (1339503832,), (1339503835,), (1339503855,), (1339503858,), (1339503861,), (1339503865,), (1339503871,), (1339503872,), (1339503882,), (1339503885,), (1339503888,), (1339503891,), (1339503894,), (1339503896,), (1339503911,), (1339503923,), (1339503926,), (1339503929,), (1339503931,), (1339503949,), (1339503951,), (1339503954,), (1339503958,), (1339503961,), (1339503972,), (1339503975,), (1339503978,), (1339503988,), (1339503993,), (1339504002,), (1339504005,), (1339504008,), (1339504011,), (1339504014,), (1339504067,), (1339504040,), (1339504043,), (1339504046,), (1339504057,), (1339504065,), (1339504080,), (1339504092,), (1339504104,), (1339504108,), (1339504111,), (1339504142,), (1339504145,), (1339504155,), (1339504159,), (1339504163,), (1339504165,), (1339504199,), (1339504205,), (1339504208,), (1339504212,), (1339504222,), (1339504254,), (1339504263,), (1339504266,), (1339504270,), (1339504272,), (1339504274,), (1339504279,), (1339504282,), (1339504285,), (1339504288,), (1339504290,), (1339504316,), (1339504319,), (1339504322,), (1339504325,), (1339504327,), (1339504330,), (1339504403,), (1339504406,), (1339504409,), (1339504412,), (1339504414,), (1339504437,), (1339504439,), (1339504442,), (1339504445,), (1339504448,), (1339504450,), (1339504458,), (1339504461,), (1339504464,), (1339504471,), (1339504518,), (1339504521,), (1339504524,), (1339504527,), (1339504530,), (1339504541,), (1339504543,), (1339504546,), (1339504602,), (1339504630,), (1339504634,), (1339504636,), (1339504639,), (1339504643,), (1339504662,), (1339504666,), (1339504668,), (1339504669,), (1339504673,), (1339504676,), (1339504711,), (1339504698,), (1339504701,), (1339504704,), (1339504708,), (1339504732,), (1339504735,), (1339504738,), (1339504741,), (1339505177,), (1339505182,), (1339505213,), (1339505254,), (1339505279,), (1339505292,), (1339505309,), (1339505310,), (1339505313,), (1339505328,), (1339505351,), (1339505356,), (1339505386,), (1339505395,), (1339505403,), (1339505407,), (1339505424,), (1339505428,), (1339505431,), (1339505434,), (1339505437,), (1339505438,), (1339505464,), (1339505467,), (1339505474,), (1339505477,), (1339505480,), (1339505508,), (1339505512,), (1339505516,), (1339505520,), (1339505523,), (1339505578,), (1339505584,), (1339505590,), (1339505595,), (1339505601,), (1339505608,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25022025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20791187]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508] map_info['map_portfolio_photo'] : {20791187: [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508, 1339505480, 1339505477, 1339505474, 1339505467, 1339505464, 1339505438, 1339505437, 1339505434, 1339505431, 1339505428, 1339505424, 1339505407, 1339505403, 1339505395, 1339505386, 1339505356, 1339505351, 1339505328, 1339505313, 1339505310, 1339505309, 1339505292, 1339505279, 1339505254, 1339505213, 1339505182, 1339505177, 1339504741, 1339504738, 1339504735, 1339504732, 1339504708, 1339504704, 1339504701, 1339504698]} final : True mtd_id 4302 list_pids : [1339505608, 1339505601, 1339505595, 1339505590, 1339505584, 1339505578, 1339505523, 1339505520, 1339505516, 1339505512, 1339505508] Looping around the photos to save general results len do output : 1 /20791187Didn'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, '2611821') ('4302', '20791187', '1339505608', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505601', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505595', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505590', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505584', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505578', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505523', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505520', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505516', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505512', None, None, None, None, None, '2611821') ('4302', None, None, None, None, None, None, None, '2611821') ('4302', '20791187', '1339505508', None, None, None, None, None, '2611821') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20791187', 'None', None, None, None, None, '2611821'), ('4302', '20791187', '1339505608', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505601', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505595', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505590', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505584', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505578', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505523', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505520', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505516', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505512', None, None, None, None, None, '2611821'), ('4302', '20791187', '1339505508', None, None, None, None, None, '2611821')] time used for this insertion : 0.013114213943481445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5654873847961426 time spend to save output : 0.01334071159362793 total time spend for step 5 : 0.5788280963897705 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 (2611821) 1.99user 2.07system 0:08.72elapsed 46%CPU (0avgtext+0avgdata 162960maxresident)k 1032inputs+12232outputs (27major+64276minor)pagefaults 0swaps