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 : 3652710 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 (2810590) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2810590) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813158 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2810590'] with mtr_portfolio_ids : ['22813158'] and first list_photo_ids : [] new path : /proc/3652710/ Name: python3 Umask: 0002 State: R (running) Tgid: 3652710 Ngid: 0 Pid: 3652710 PPid: 3652708 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3652710 NSpid: 3652710 NSpgid: 3649436 NSsid: 3649436 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98144 kB VmRSS: 98144 kB RssAnon: 60204 kB RssFile: 37940 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 544 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 44 nonvoluntary_ctxt_switches: 242 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3652710', 'Ngid': '0', 'Pid': '3652710', 'PPid': '3652708', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3652710', 'NSpid': '3652710', 'NSpgid': '3649436', 'NSsid': '3649436', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98144 kB', 'VmRSS': '98144 kB', 'RssAnon': '60204 kB', 'RssFile': '37940 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '544 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '44', 'nonvoluntary_ctxt_switches': '242'} ('datou_batch_current', '3652710', '1107228', '0', '1107228', '865976', '98144', b'', 'marlene', '2810590') 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 (22813158) 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 (2810590 ) ) 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 (22813158) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1357130972, 'portfolio_id': 22813158}, {'photo_id': 1357130930, 'portfolio_id': 22813158}, {'photo_id': 1357130899, 'portfolio_id': 22813158}, {'photo_id': 1357130617, 'portfolio_id': 22813158}, {'photo_id': 1357130615, 'portfolio_id': 22813158}, {'photo_id': 1357130613, 'portfolio_id': 22813158}, {'photo_id': 1357130612, 'portfolio_id': 22813158}, {'photo_id': 1357130611, 'portfolio_id': 22813158}, {'photo_id': 1357130575, 'portfolio_id': 22813158}, {'photo_id': 1357130571, 'portfolio_id': 22813158}, {'photo_id': 1357130567, 'portfolio_id': 22813158}, {'photo_id': 1357130564, 'portfolio_id': 22813158}, {'photo_id': 1357130560, 'portfolio_id': 22813158}, {'photo_id': 1357130438, 'portfolio_id': 22813158}, {'photo_id': 1357130435, 'portfolio_id': 22813158}, {'photo_id': 1357130418, 'portfolio_id': 22813158}, {'photo_id': 1357130315, 'portfolio_id': 22813158}, {'photo_id': 1357130312, 'portfolio_id': 22813158}, {'photo_id': 1357130309, 'portfolio_id': 22813158}, {'photo_id': 1357130307, 'portfolio_id': 22813158}, {'photo_id': 1357130230, 'portfolio_id': 22813158}, {'photo_id': 1357130227, 'portfolio_id': 22813158}, {'photo_id': 1357130223, 'portfolio_id': 22813158}, {'photo_id': 1357130219, 'portfolio_id': 22813158}, {'photo_id': 1357130217, 'portfolio_id': 22813158}, {'photo_id': 1357130214, 'portfolio_id': 22813158}, {'photo_id': 1357130173, 'portfolio_id': 22813158}, {'photo_id': 1357130170, 'portfolio_id': 22813158}, {'photo_id': 1357130166, 'portfolio_id': 22813158}, {'photo_id': 1357130109, 'portfolio_id': 22813158}, {'photo_id': 1357130106, 'portfolio_id': 22813158}, {'photo_id': 1357130101, 'portfolio_id': 22813158}, {'photo_id': 1357130080, 'portfolio_id': 22813158}, {'photo_id': 1357130077, 'portfolio_id': 22813158}, {'photo_id': 1357130073, 'portfolio_id': 22813158}, {'photo_id': 1357130021, 'portfolio_id': 22813158}, {'photo_id': 1357130016, 'portfolio_id': 22813158}, {'photo_id': 1357130011, 'portfolio_id': 22813158}, {'photo_id': 1357130007, 'portfolio_id': 22813158}, {'photo_id': 1357129999, 'portfolio_id': 22813158}, {'photo_id': 1357129942, 'portfolio_id': 22813158}, {'photo_id': 1357129939, 'portfolio_id': 22813158}, {'photo_id': 1357129936, 'portfolio_id': 22813158}, {'photo_id': 1357129933, 'portfolio_id': 22813158}, {'photo_id': 1357129889, 'portfolio_id': 22813158}, {'photo_id': 1357129886, 'portfolio_id': 22813158}, {'photo_id': 1357129883, 'portfolio_id': 22813158}, {'photo_id': 1357129880, 'portfolio_id': 22813158}, {'photo_id': 1357129877, 'portfolio_id': 22813158}, {'photo_id': 1357129832, 'portfolio_id': 22813158}, {'photo_id': 1357129828, 'portfolio_id': 22813158}, {'photo_id': 1357129825, 'portfolio_id': 22813158}, {'photo_id': 1357129822, 'portfolio_id': 22813158}, {'photo_id': 1357129820, 'portfolio_id': 22813158}, {'photo_id': 1357129700, 'portfolio_id': 22813158}, {'photo_id': 1357129697, 'portfolio_id': 22813158}, {'photo_id': 1357129695, 'portfolio_id': 22813158}] map_portfolio_id_photo_id: {22813158: [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560, 1357130438, 1357130435, 1357130418, 1357130315, 1357130312, 1357130309, 1357130307, 1357130230, 1357130227, 1357130223, 1357130219, 1357130217, 1357130214, 1357130173, 1357130170, 1357130166, 1357130109, 1357130106, 1357130101, 1357130080, 1357130077, 1357130073, 1357130021, 1357130016, 1357130011, 1357130007, 1357129999, 1357129942, 1357129939, 1357129936, 1357129933, 1357129889, 1357129886, 1357129883, 1357129880, 1357129877, 1357129832, 1357129828, 1357129825, 1357129822, 1357129820, 1357129700, 1357129697, 1357129695]} ##### 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.016394376754760742 #### 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 Fri May 9 08:00:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22813158) 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 : 22813158 get user id for portfolio 22813158 get sub ptf for main ptf 22813158, type 3726 and hashtags ['autre_refus', 'Carton_brun', 'kraft', 'papier', 'environnement', 'cartonnette', 'plastique', 'mal_croppe', 'flou', 'Teint_Dans_La_Masse', 'Carton_gris', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22813158 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','kraft','papier','environnement','cartonnette','plastique','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22813158 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','kraft','papier','environnement','cartonnette','plastique','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22813158, 'sub_port_id': 22813196, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217664, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'mal_croppe': {'main_port_id': 22813158, 'sub_port_id': 22813197, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217665, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'papier': {'main_port_id': 22813158, 'sub_port_id': 22813198, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217666, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22813158, 'sub_port_id': 22813199, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217667, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'metal': {'main_port_id': 22813158, 'sub_port_id': 22813200, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217668, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'plastique': {'main_port_id': 22813158, 'sub_port_id': 22813201, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217669, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'kraft': {'main_port_id': 22813158, 'sub_port_id': 22813202, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217670, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'Carton_brun': {'main_port_id': 22813158, 'sub_port_id': 22813203, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217671, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'Carton_gris': {'main_port_id': 22813158, 'sub_port_id': 22813204, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217672, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'environnement': {'main_port_id': 22813158, 'sub_port_id': 22813205, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217673, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'cartonnette': {'main_port_id': 22813158, 'sub_port_id': 22813206, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217674, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'autre_refus': {'main_port_id': 22813158, 'sub_port_id': 22813207, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217675, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813196 , 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=22813158 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 (22813196) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813197 , 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=22813158 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 (22813197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813198 , 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=22813158 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 (22813198) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813199 , 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=22813158 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 (22813199) result : ((1357129855,), (1357129857,), (1357129858,), (1357129859,), (1357130386,), (1357130623,), (1357130846,), (1357130848,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813200 , 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=22813158 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 (22813200) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813201 , 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=22813158 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 (22813201) result : ((1357130251,), (1357130252,), (1357130411,), (1357130903,), (1357130904,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813202 , 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=22813158 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 (22813202) result : ((1357131385,), (1357131387,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813203 , 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=22813158 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 (22813203) result : ((1357129988,), (1357130244,), (1357130245,), (1357130246,), (1357130409,), (1357130410,), (1357130547,), (1357130548,), (1357130549,), (1357130550,), (1357130551,), (1357130552,), (1357130889,), (1357130891,), (1357130892,), (1357131377,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813204 , 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=22813158 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 (22813204) result : ((1357129983,), (1357129993,), (1357130408,), (1357130532,), (1357130533,), (1357130535,), (1357130859,), (1357130860,), (1357130861,), (1357130862,), (1357130863,), (1357131360,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813205 , 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=22813158 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 (22813205) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813206 , 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=22813158 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 (22813206) result : ((1357129870,), (1357129985,), (1357129986,), (1357129995,), (1357129996,), (1357130545,), (1357130546,), (1357130877,), (1357130878,), (1357130879,), (1357130880,), (1357131368,), (1357131370,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22813207 , 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=22813158 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 (22813207) result : ((1357129862,), (1357129863,), (1357129992,), (1357130242,), (1357130403,), (1357130405,), (1357130406,), (1357130407,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22813158) result : ((1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) 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 (1357129700) and cspi.crop_hashtag_id = chi.id; 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`=22813158 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','kraft','papier','environnement','cartonnette','plastique','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22813158 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Carton_brun','kraft','papier','environnement','cartonnette','plastique','mal_croppe','flou','Teint_Dans_La_Masse','Carton_gris','metal')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22813158, 'sub_port_id': 22813208, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217676, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'mal_croppe': {'main_port_id': 22813158, 'sub_port_id': 22813209, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217677, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'papier': {'main_port_id': 22813158, 'sub_port_id': 22813210, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217678, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22813158, 'sub_port_id': 22813211, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217679, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'metal': {'main_port_id': 22813158, 'sub_port_id': 22813212, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217680, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'plastique': {'main_port_id': 22813158, 'sub_port_id': 22813213, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217681, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'kraft': {'main_port_id': 22813158, 'sub_port_id': 22813214, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217682, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'Carton_brun': {'main_port_id': 22813158, 'sub_port_id': 22813215, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217683, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'Carton_gris': {'main_port_id': 22813158, 'sub_port_id': 22813216, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217684, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'environnement': {'main_port_id': 22813158, 'sub_port_id': 22813217, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217685, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'cartonnette': {'main_port_id': 22813158, 'sub_port_id': 22813218, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217686, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}, 'autre_refus': {'main_port_id': 22813158, 'sub_port_id': 22813219, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15217687, 'last_updated_at': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_desc': datetime.datetime(2025, 5, 9, 7, 56, 56), 'last_updated_at_asc': datetime.datetime(2025, 5, 9, 7, 47, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813216,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813204 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813217,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813205 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813218,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813206 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22813219,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22813207 lien utilise dans velours : https://www.fotonower.com/velours/22813208,22813209,22813210,22813211,22813212,22813213,22813214,22813215,22813216,22813217,22813218,22813219?tags=flou,mal_croppe,papier,Teint_Dans_La_Masse,metal,plastique,kraft,Carton_brun,Carton_gris,environnement,cartonnette,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22813158]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560] map_info['map_portfolio_photo'] : {22813158: [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560, 1357130438, 1357130435, 1357130418, 1357130315, 1357130312, 1357130309, 1357130307, 1357130230, 1357130227, 1357130223, 1357130219, 1357130217, 1357130214, 1357130173, 1357130170, 1357130166, 1357130109, 1357130106, 1357130101, 1357130080, 1357130077, 1357130073, 1357130021, 1357130016, 1357130011, 1357130007, 1357129999, 1357129942, 1357129939, 1357129936, 1357129933, 1357129889, 1357129886, 1357129883, 1357129880, 1357129877, 1357129832, 1357129828, 1357129825, 1357129822, 1357129820, 1357129700, 1357129697, 1357129695]} final : False mtd_id 4302 list_pids : [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560] Looping around the photos to save general results len do output : 1 /22813158. 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, '2810590') ('4302', '22813158', '1357130972', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130930', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130899', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130617', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130615', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130613', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130612', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130611', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130575', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130571', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130567', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130564', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130560', None, None, None, None, None, '2810590') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22813158', "{'flou': 22813196, 'mal_croppe': 22813197, 'papier': 22813198, 'Teint_Dans_La_Masse': 22813199, 'metal': 22813200, 'plastique': 22813201, 'kraft': 22813202, 'Carton_brun': 22813203, 'Carton_gris': 22813204, 'environnement': 22813205, 'cartonnette': 22813206, 'autre_refus': 22813207}", None, None, None, None, '2810590'), ('4302', '22813158', '1357130972', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130930', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130899', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130617', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130615', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130613', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130612', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130611', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130575', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130571', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130567', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130564', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130560', None, None, None, None, None, '2810590')] time used for this insertion : 0.017719030380249023 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.506840705871582 time spend to save output : 0.018078327178955078 total time spend for step 1 : 0.5249190330505371 step2:final Fri May 9 08:00:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22813158) 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 22813158 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1357129700,1357129697,1357129695,1357129832,1357129828,1357129825,1357129822,1357129820,1357129889,1357129886,1357129883,1357129880,1357129877,1357129942,1357129939,1357129936,1357129933,1357130021,1357129999,1357130016,1357130011,1357130007,1357130109,1357130106,1357130101,1357130080,1357130077,1357130073,1357130173,1357130170,1357130166,1357130230,1357130227,1357130223,1357130219,1357130217,1357130214,1357130315,1357130312,1357130309,1357130307,1357130438,1357130435,1357130418,1357130575,1357130571,1357130567,1357130564,1357130560,1357130617,1357130615,1357130613,1357130612,1357130611,1357130972,1357130930,1357130899); 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([22813158]) Inside saveOutput : final : False verbose : True original output for save of step final : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} new output for save of step final : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560] map_info['map_portfolio_photo'] : {22813158: [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560, 1357130438, 1357130435, 1357130418, 1357130315, 1357130312, 1357130309, 1357130307, 1357130230, 1357130227, 1357130223, 1357130219, 1357130217, 1357130214, 1357130173, 1357130170, 1357130166, 1357130109, 1357130106, 1357130101, 1357130080, 1357130077, 1357130073, 1357130021, 1357130016, 1357130011, 1357130007, 1357129999, 1357129942, 1357129939, 1357129936, 1357129933, 1357129889, 1357129886, 1357129883, 1357129880, 1357129877, 1357129832, 1357129828, 1357129825, 1357129822, 1357129820, 1357129700, 1357129697, 1357129695]} final : False mtd_id 4302 list_pids : [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560] Looping around the photos to save general results len do output : 13 /1357130972.Didn't retrieve data . /1357130930.Didn't retrieve data . /1357130899.Didn't retrieve data . /1357130617.Didn't retrieve data . /1357130615.Didn't retrieve data . /1357130613.Didn't retrieve data . /1357130612.Didn't retrieve data . /1357130611.Didn't retrieve data . /1357130575.Didn't retrieve data . /1357130571.Didn't retrieve data . /1357130567.Didn't retrieve data . /1357130564.Didn't retrieve data . /1357130560.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, '2810590') ('4302', '22813158', '1357130972', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130930', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130899', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130617', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130615', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130613', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130612', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130611', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130575', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130571', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130567', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130564', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130560', None, None, None, None, None, '2810590') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22813158', '1357130972', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130930', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130899', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130617', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130615', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130613', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130612', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130611', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130575', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130571', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130567', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130564', '0.06174595782295468', None, None, None, None, '2810590'), ('4302', '22813158', '1357130560', '0.06174595782295468', None, None, None, None, '2810590')] time used for this insertion : 0.015581846237182617 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07176756858825684 time spend to save output : 0.01599431037902832 total time spend for step 2 : 0.08776187896728516 step3:velours_tree Fri May 9 08:00:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22813158: [{'flou': 22813196, 'mal_croppe': 22813197, 'papier': 22813198, 'Teint_Dans_La_Masse': 22813199, 'metal': 22813200, 'plastique': 22813201, 'kraft': 22813202, 'Carton_brun': 22813203, 'Carton_gris': 22813204, 'environnement': 22813205, 'cartonnette': 22813206, 'autre_refus': 22813207}]} input_args_next_step : {22813158: ()} output_args : {22813158: [{'flou': 22813196, 'mal_croppe': 22813197, 'papier': 22813198, 'Teint_Dans_La_Masse': 22813199, 'metal': 22813200, 'plastique': 22813201, 'kraft': 22813202, 'Carton_brun': 22813203, 'Carton_gris': 22813204, 'environnement': 22813205, 'cartonnette': 22813206, 'autre_refus': 22813207}]} args : 22813158 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 22813196, 'mal_croppe': 22813197, 'papier': 22813198, 'Teint_Dans_La_Masse': 22813199, 'metal': 22813200, 'plastique': 22813201, 'kraft': 22813202, 'Carton_brun': 22813203, 'Carton_gris': 22813204, 'environnement': 22813205, 'cartonnette': 22813206, 'autre_refus': 22813207},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22813158) 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([22813158]) 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.3424832820892334 time spend to save output : 8.726119995117188e-05 total time spend for step 3 : 0.34257054328918457 step4:send_mail_cod Fri May 9 08:00:32 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 : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} input_args_next_step : {1357130972: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130972 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130930 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130899 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130617 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130615 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130613 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130612 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130611 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130575 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130571 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130567 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130564 depend.output_id : 0 input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ()} output_args : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',)} args : 1357130560 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 : {22813158: [{'flou': 22813196, 'mal_croppe': 22813197, 'papier': 22813198, 'Teint_Dans_La_Masse': 22813199, 'metal': 22813200, 'plastique': 22813201, 'kraft': 22813202, 'Carton_brun': 22813203, 'Carton_gris': 22813204, 'environnement': 22813205, 'cartonnette': 22813206, 'autre_refus': 22813207}]} input_args_next_step : {1357130972: ('0.06174595782295468',), 1357130930: ('0.06174595782295468',), 1357130899: ('0.06174595782295468',), 1357130617: ('0.06174595782295468',), 1357130615: ('0.06174595782295468',), 1357130613: ('0.06174595782295468',), 1357130612: ('0.06174595782295468',), 1357130611: ('0.06174595782295468',), 1357130575: ('0.06174595782295468',), 1357130571: ('0.06174595782295468',), 1357130567: ('0.06174595782295468',), 1357130564: ('0.06174595782295468',), 1357130560: ('0.06174595782295468',), 22813158: ()} output_args : {22813158: [{'flou': 22813196, 'mal_croppe': 22813197, 'papier': 22813198, 'Teint_Dans_La_Masse': 22813199, 'metal': 22813200, 'plastique': 22813201, 'kraft': 22813202, 'Carton_brun': 22813203, 'Carton_gris': 22813204, 'environnement': 22813205, 'cartonnette': 22813206, 'autre_refus': 22813207}]} args : 22813158 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :14, first value : ('0.06174595782295468',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22813158) 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 (1357130972,1357130930,1357130899,1357130617,1357130615,1357130613,1357130612,1357130611,1357130575,1357130571,1357130567,1357130564,1357130560) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1357130560 begin to download photo : 1357130571 begin to download photo : 1357130612 begin to download photo : 1357130617 begin to download photo : 1357130972 download finish for photo 1357130972 download finish for photo 1357130617 begin to download photo : 1357130899 download finish for photo 1357130560 begin to download photo : 1357130564 download finish for photo 1357130571 begin to download photo : 1357130575 download finish for photo 1357130612 begin to download photo : 1357130613 download finish for photo 1357130899 begin to download photo : 1357130930 download finish for photo 1357130613 begin to download photo : 1357130615 download finish for photo 1357130564 begin to download photo : 1357130567 download finish for photo 1357130575 begin to download photo : 1357130611 download finish for photo 1357130930 download finish for photo 1357130615 download finish for photo 1357130567 download finish for photo 1357130611 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette228131961746770432/ imagette228131971746770432/ imagette228132001746770432/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P22813158_09-05-2025_08_00_32.pdf 22813196 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=22813196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228131961746770432 22813197 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=22813197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228131971746770432 22813200 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=22813200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette228132001746770432 22813201 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=22813201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357130251: '1746769991_3996459_1357130170_5bf0061eedf911e1c8b6c516d2c33269_rle_crop_3790965693_0.png', 1357130252: '1746769991_3996459_1357130166_6039278d1df604dc15e9db97b274a8c9_rle_crop_3790965721_0.png', 1357130411: '1746770052_3997086_1357130109_b53ad0dd652bbb99f9dec0d3c3ab567c_rle_crop_3790965893_0.png', 1357130903: '1746770231_3999094_1357130173_e6523fa2fdbf8a53ecbbc4e90d1fb440_rle_crop_3790983892_0.png', 1357130904: '1746770231_3999094_1357130106_c683d3639003897f2ef6e5ba98f3f303_rle_crop_3790983913_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/caca5e405254dc9bdf3c259dfe44df58_93923598.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/dbdb490b689eac44cc2caa0b4bef7266_34795799.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/58a47178e5ec61aa05491c577fbef12d_54598203.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/96d2e56a84f493c51f4bc5e977d11f67_36723020.png change filename to text .imagette228132011746770432/ imagette228132011746770432/1746770052_3997086_1357130109_b53ad0dd652bbb99f9dec0d3c3ab567c_rle_crop_3790965893_0.png.png imagette228132011746770432/1746770231_3999094_1357130173_e6523fa2fdbf8a53ecbbc4e90d1fb440_rle_crop_3790983892_0.png.png imagette228132011746770432/1746770231_3999094_1357130106_c683d3639003897f2ef6e5ba98f3f303_rle_crop_3790983913_0.png.png imagette228132011746770432/1746769991_3996459_1357130166_6039278d1df604dc15e9db97b274a8c9_rle_crop_3790965721_0.png.png imagette228132011746770432/1746769991_3996459_1357130170_5bf0061eedf911e1c8b6c516d2c33269_rle_crop_3790965693_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/639c33fc75d1a2ab8336332b96f30ae3_80296413.png imagette228132011746770432 22813202 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=22813202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357131385: '1746770365_2883824_1357130930_9055b8e7eac37d38c9ab1792997b9ed5_rle_crop_3790987554_0.png', 1357131387: '1746770365_2883824_1357130899_38bd61ba8e69d4df7181237852ef60ed_rle_crop_3790987562_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b2907209846d24594ca02132010356e2_39835354.png change filename to text .imagette228132021746770432/ imagette228132021746770432/1746770365_2883824_1357130899_38bd61ba8e69d4df7181237852ef60ed_rle_crop_3790987562_0.png.png imagette228132021746770432/1746770365_2883824_1357130930_9055b8e7eac37d38c9ab1792997b9ed5_rle_crop_3790987554_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c46a8572638f622c009f2568433a6ccc_69615992.png imagette228132021746770432 22813206 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=22813206 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357129870: '1746769647_2873875_1357129697_4a45d2c607280c6916407f92aa4fefcd_rle_crop_3790963714_0.png', 1357129985: '1746769753_3993578_1357129886_4a3fec2c434f9756cf4f9729dada6ff1_rle_crop_3790964815_0.png', 1357129986: '1746769753_3993578_1357129883_2cec9abad753a8777967af9274478264_rle_crop_3790964852_0.png', 1357129995: '1746769766_2876616_1357129889_106b7af472cc95b9272e2646ad14d910_rle_crop_3790964836_0.png', 1357129996: '1746769766_2876616_1357129820_38c6a094da38535d6accef9c1dbac6e5_rle_crop_3790964928_0.png', 1357130545: '1746770110_3997686_1357130223_3d8a7d03655445213740738c05da5ccc_rle_crop_3790968771_0.png', 1357130546: '1746770110_3997686_1357130219_5436ad051a9b7cd218822f41a3794194_rle_crop_3790968784_0.png', 1357130877: '1746770231_3999094_1357130173_e6523fa2fdbf8a53ecbbc4e90d1fb440_rle_crop_3790983897_0.png', 1357130878: '1746770231_3999094_1357130101_e4ef91ecb5a648ba7158ddc64154f0cc_rle_crop_3790983922_0.png', 1357130879: '1746770231_3999094_1357130080_0c9e021869eb7202f5f823a690f0a3cc_rle_crop_3790983938_0.png', 1357130880: '1746770231_3999094_1357130077_cdae589ee22775343879ea0261b93d40_rle_crop_3790983958_0.png', 1357131368: '1746770365_2883824_1357130930_9055b8e7eac37d38c9ab1792997b9ed5_rle_crop_3790987555_0.png', 1357131370: '1746770365_2883824_1357130899_38bd61ba8e69d4df7181237852ef60ed_rle_crop_3790987561_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/59fd467373f1a34adfbe00bc620d0043_94146319.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/aa9c68194ad11583fa8b13ce43272284_84507257.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/09bac9d49b09b8c37c1dcfd80c0a9ccb_73056527.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b6c579bf75cde049f2f44f7c994b6698_78383127.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/fbafc749038b672a9421c204ecd75361_45811272.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5fa0f920370ab16245691d73e1f5f6ef_35379032.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/badb44b985b40b7ce7caf26d4275291b_24163265.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b9f74e023f68aa16feb8c77067515d04_35334264.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d1ebec5366eb683e870389173729a54e_82942050.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8e9091b3e6c774f50dae64f76a274fc6_96514796.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/6e30b44319ff747a736f8a2389df3503_25325884.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/60bb44724f1e44084b7d9f57bb6a7597_29655891.png change filename to text .imagette228132061746770432/ imagette228132061746770432/1746770231_3999094_1357130101_e4ef91ecb5a648ba7158ddc64154f0cc_rle_crop_3790983922_0.png.png imagette228132061746770432/1746770110_3997686_1357130219_5436ad051a9b7cd218822f41a3794194_rle_crop_3790968784_0.png.png imagette228132061746770432/1746770365_2883824_1357130930_9055b8e7eac37d38c9ab1792997b9ed5_rle_crop_3790987555_0.png.png imagette228132061746770432/1746770231_3999094_1357130173_e6523fa2fdbf8a53ecbbc4e90d1fb440_rle_crop_3790983897_0.png.png imagette228132061746770432/1746769753_3993578_1357129883_2cec9abad753a8777967af9274478264_rle_crop_3790964852_0.png.png imagette228132061746770432/1746770110_3997686_1357130223_3d8a7d03655445213740738c05da5ccc_rle_crop_3790968771_0.png.png imagette228132061746770432/1746770231_3999094_1357130077_cdae589ee22775343879ea0261b93d40_rle_crop_3790983958_0.png.png imagette228132061746770432/1746769647_2873875_1357129697_4a45d2c607280c6916407f92aa4fefcd_rle_crop_3790963714_0.png.png imagette228132061746770432/1746769766_2876616_1357129889_106b7af472cc95b9272e2646ad14d910_rle_crop_3790964836_0.png.png imagette228132061746770432/1746770365_2883824_1357130899_38bd61ba8e69d4df7181237852ef60ed_rle_crop_3790987561_0.png.png imagette228132061746770432/1746770231_3999094_1357130080_0c9e021869eb7202f5f823a690f0a3cc_rle_crop_3790983938_0.png.png imagette228132061746770432/1746769753_3993578_1357129886_4a3fec2c434f9756cf4f9729dada6ff1_rle_crop_3790964815_0.png.png imagette228132061746770432/1746769766_2876616_1357129820_38c6a094da38535d6accef9c1dbac6e5_rle_crop_3790964928_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/5f3df052b4ce0f75926b7540bb3e8a86_684824.png imagette228132061746770432 22813207 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=22813207 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357129862: '1746769647_2873875_1357129700_2a25883715ca0d449577daa7984203c8_rle_crop_3790963672_0.png', 1357129863: '1746769647_2873875_1357129700_2a25883715ca0d449577daa7984203c8_rle_crop_3790963673_0.png', 1357129992: '1746769766_2876616_1357129822_29f817f22cf24136a4e8a95bc100382e_rle_crop_3790964912_0.png', 1357130242: '1746769991_3996459_1357130166_6039278d1df604dc15e9db97b274a8c9_rle_crop_3790965718_0.png', 1357130403: '1746770052_3997086_1357130016_1b0454618b2af58dcc84f91f022499a2_rle_crop_3790965906_0.png', 1357130405: '1746770052_3997086_1357130016_1b0454618b2af58dcc84f91f022499a2_rle_crop_3790965900_0.png', 1357130406: '1746770052_3997086_1357130007_116381d5417fb2e0aefd215aac197793_rle_crop_3790965929_0.png', 1357130407: '1746770052_3997086_1357129999_db1ea5e0dcbbbca9478068deaf58873e_rle_crop_3790965945_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/98e0109a1ea3c2f7b12c93bca6a87ef8_17698630.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d7d9468e3f0749b0a7934637e80fe1fc_93687052.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e215a3a6302fb3e672e2bdf381e7053d_8505910.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/613b4c61814317a0e5aba0fa8a711112_21007337.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a27d7ed37b0b762b95b98f3f3c3d0685_91048841.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f99f0b3e7b6e8f531ca5d6570c50c669_41163009.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f721cb2758e5568909bcbeb5099368bf_42256694.png change filename to text .imagette228132071746770433/ imagette228132071746770433/1746770052_3997086_1357130007_116381d5417fb2e0aefd215aac197793_rle_crop_3790965929_0.png.png imagette228132071746770433/1746770052_3997086_1357129999_db1ea5e0dcbbbca9478068deaf58873e_rle_crop_3790965945_0.png.png imagette228132071746770433/1746770052_3997086_1357130016_1b0454618b2af58dcc84f91f022499a2_rle_crop_3790965906_0.png.png imagette228132071746770433/1746770052_3997086_1357130016_1b0454618b2af58dcc84f91f022499a2_rle_crop_3790965900_0.png.png imagette228132071746770433/1746769647_2873875_1357129700_2a25883715ca0d449577daa7984203c8_rle_crop_3790963672_0.png.png imagette228132071746770433/1746769647_2873875_1357129700_2a25883715ca0d449577daa7984203c8_rle_crop_3790963673_0.png.png imagette228132071746770433/1746769991_3996459_1357130166_6039278d1df604dc15e9db97b274a8c9_rle_crop_3790965718_0.png.png imagette228132071746770433/1746769766_2876616_1357129822_29f817f22cf24136a4e8a95bc100382e_rle_crop_3790964912_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/78b78a0c6b6d0637a5f1993e66cdeb11_94357622.png imagette228132071746770433 22813199 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=22813199 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357129855: '1746769647_2873875_1357129700_2a25883715ca0d449577daa7984203c8_rle_crop_3790963677_0.png', 1357129857: '1746769647_2873875_1357129697_4a45d2c607280c6916407f92aa4fefcd_rle_crop_3790963717_0.png', 1357129858: '1746769647_2873875_1357129697_4a45d2c607280c6916407f92aa4fefcd_rle_crop_3790963715_0.png', 1357129859: '1746769647_2873875_1357129695_01f2e5b67ac9e32a37a84878c507f2ab_rle_crop_3790963743_0.png', 1357130386: '1746770052_3997086_1357130016_1b0454618b2af58dcc84f91f022499a2_rle_crop_3790965903_0.png', 1357130623: '1746770222_3998947_1357130418_11d68389b77aa98c560796208224f35b_rle_crop_3790981829_0.png', 1357130846: '1746770231_3999094_1357130173_e6523fa2fdbf8a53ecbbc4e90d1fb440_rle_crop_3790983895_0.png', 1357130848: '1746770231_3999094_1357130106_c683d3639003897f2ef6e5ba98f3f303_rle_crop_3790983903_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1b7910ffbb8d6c83a91e1182274792d7_95184604.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/f57b75d32288a9b18b5df5df9e50dbec_37838764.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/387977e5d6da0e0b6f165509cb0b6e47_69416134.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/ac60c8a6d84ec718121f5bc7ffddc385_94462843.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8b9a40635603fd9ab81c1a978dcec4e7_61450855.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/47f879635d97f4d7e093f80d2ad3fcff_96856995.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/73cc3c3b6649b5f85e1755290d8d1e39_92299172.png change filename to text .imagette228131991746770434/ imagette228131991746770434/1746769647_2873875_1357129700_2a25883715ca0d449577daa7984203c8_rle_crop_3790963677_0.png.png imagette228131991746770434/1746770052_3997086_1357130016_1b0454618b2af58dcc84f91f022499a2_rle_crop_3790965903_0.png.png imagette228131991746770434/1746769647_2873875_1357129697_4a45d2c607280c6916407f92aa4fefcd_rle_crop_3790963715_0.png.png imagette228131991746770434/1746770222_3998947_1357130418_11d68389b77aa98c560796208224f35b_rle_crop_3790981829_0.png.png imagette228131991746770434/1746770231_3999094_1357130106_c683d3639003897f2ef6e5ba98f3f303_rle_crop_3790983903_0.png.png imagette228131991746770434/1746770231_3999094_1357130173_e6523fa2fdbf8a53ecbbc4e90d1fb440_rle_crop_3790983895_0.png.png imagette228131991746770434/1746769647_2873875_1357129695_01f2e5b67ac9e32a37a84878c507f2ab_rle_crop_3790963743_0.png.png imagette228131991746770434/1746769647_2873875_1357129697_4a45d2c607280c6916407f92aa4fefcd_rle_crop_3790963717_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/6ca03380f9182064986ec762124c9943_34042536.png imagette228131991746770434 22813203 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=22813203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357129988: '1746769753_3993578_1357129886_4a3fec2c434f9756cf4f9729dada6ff1_rle_crop_3790964817_0.png', 1357130244: '1746769991_3996459_1357130170_5bf0061eedf911e1c8b6c516d2c33269_rle_crop_3790965687_0.png', 1357130245: '1746769991_3996459_1357130170_5bf0061eedf911e1c8b6c516d2c33269_rle_crop_3790965691_0.png', 1357130246: '1746769991_3996459_1357130170_5bf0061eedf911e1c8b6c516d2c33269_rle_crop_3790965689_0.png', 1357130409: '1746770052_3997086_1357130109_b53ad0dd652bbb99f9dec0d3c3ab567c_rle_crop_3790965890_0.png', 1357130410: '1746770052_3997086_1357129999_db1ea5e0dcbbbca9478068deaf58873e_rle_crop_3790965943_0.png', 1357130547: '1746770110_3997686_1357130315_51d0ba03c1c02b76fd111327082d6d30_rle_crop_3790968218_0.png', 1357130548: '1746770110_3997686_1357130219_5436ad051a9b7cd218822f41a3794194_rle_crop_3790968788_0.png', 1357130549: '1746770110_3997686_1357130217_e51a5c0642d12032ee0bc270479d9fc2_rle_crop_3790968801_0.png', 1357130550: '1746770110_3997686_1357130217_e51a5c0642d12032ee0bc270479d9fc2_rle_crop_3790968802_0.png', 1357130551: '1746770110_3997686_1357130217_e51a5c0642d12032ee0bc270479d9fc2_rle_crop_3790968799_0.png', 1357130552: '1746770110_3997686_1357130217_e51a5c0642d12032ee0bc270479d9fc2_rle_crop_3790968796_0.png', 1357130889: '1746770231_3999094_1357130106_c683d3639003897f2ef6e5ba98f3f303_rle_crop_3790983907_0.png', 1357130891: '1746770231_3999094_1357130106_c683d3639003897f2ef6e5ba98f3f303_rle_crop_3790983908_0.png', 1357130892: '1746770231_3999094_1357130073_762c44bcafa3fb319c71cf3bf72c5668_rle_crop_3790983966_0.png', 1357131377: '1746770365_2883824_1357130930_9055b8e7eac37d38c9ab1792997b9ed5_rle_crop_3790987553_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/8792007df1afdd4f706870ebc095e475_64173918.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/36a4c6fc4d43e7dd375bf39ade58ece2_53578770.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/86fe5ba0d04e837db7033de4d64cebc2_75415891.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c539a6c62ab4fce112b3ded235f824b4_745949.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e43282bbed6298727f5af49beb7f0896_72298627.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e152da94c04aa2302cdf11a9924ce46a_45765601.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e2fc153c80ec605833e1102a406c906a_16651977.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/07d201b4342f27da450c82b7dd6afb45_15229477.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/c5502ac4b1665bb684dafd72b24f8ef0_71791065.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/520ff825fb56af4680311898a44d443d_11730711.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/cbfbc64ad59af318ae69ddaf443a929c_86760461.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/81f5a15a33ffa507d8c4dca9968d5bbf_1257145.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e2e746c0a2e8b5b94eae8d958b56172f_46543965.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/215bf0e8c6fbc692d7ae0cc86fa57ffb_30963301.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a0db5de394981bf33b151a5532922a91_82615555.png change filename to text .imagette228132031746770434/ imagette228132031746770434/1746769991_3996459_1357130170_5bf0061eedf911e1c8b6c516d2c33269_rle_crop_3790965691_0.png.png imagette228132031746770434/1746770110_3997686_1357130217_e51a5c0642d12032ee0bc270479d9fc2_rle_crop_3790968799_0.png.png imagette228132031746770434/1746770110_3997686_1357130217_e51a5c0642d12032ee0bc270479d9fc2_rle_crop_3790968796_0.png.png imagette228132031746770434/1746770110_3997686_1357130219_5436ad051a9b7cd218822f41a3794194_rle_crop_3790968788_0.png.png imagette228132031746770434/1746770052_3997086_1357130109_b53ad0dd652bbb99f9dec0d3c3ab567c_rle_crop_3790965890_0.png.png imagette228132031746770434/1746770110_3997686_1357130217_e51a5c0642d12032ee0bc270479d9fc2_rle_crop_3790968802_0.png.png imagette228132031746770434/1746770365_2883824_1357130930_9055b8e7eac37d38c9ab1792997b9ed5_rle_crop_3790987553_0.png.png imagette228132031746770434/1746770110_3997686_1357130315_51d0ba03c1c02b76fd111327082d6d30_rle_crop_3790968218_0.png.png imagette228132031746770434/1746770110_3997686_1357130217_e51a5c0642d12032ee0bc270479d9fc2_rle_crop_3790968801_0.png.png imagette228132031746770434/1746770231_3999094_1357130073_762c44bcafa3fb319c71cf3bf72c5668_rle_crop_3790983966_0.png.png imagette228132031746770434/1746769991_3996459_1357130170_5bf0061eedf911e1c8b6c516d2c33269_rle_crop_3790965687_0.png.png imagette228132031746770434/1746770231_3999094_1357130106_c683d3639003897f2ef6e5ba98f3f303_rle_crop_3790983907_0.png.png imagette228132031746770434/1746769753_3993578_1357129886_4a3fec2c434f9756cf4f9729dada6ff1_rle_crop_3790964817_0.png.png imagette228132031746770434/1746770052_3997086_1357129999_db1ea5e0dcbbbca9478068deaf58873e_rle_crop_3790965943_0.png.png imagette228132031746770434/1746770231_3999094_1357130106_c683d3639003897f2ef6e5ba98f3f303_rle_crop_3790983908_0.png.png imagette228132031746770434/1746769991_3996459_1357130170_5bf0061eedf911e1c8b6c516d2c33269_rle_crop_3790965689_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d063a13a830825b703930d33f746dc60_11454011.png imagette228132031746770434 22813204 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=22813204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1357129983: '1746769753_3993578_1357129877_be81f44dab3ef22c84676a7383bde3b4_rle_crop_3790964901_0.png', 1357129993: '1746769766_2876616_1357129889_106b7af472cc95b9272e2646ad14d910_rle_crop_3790964839_0.png', 1357130408: '1746770052_3997086_1357130011_2e738d99a55f096fe8f4d3136a735ec9_rle_crop_3790965916_0.png', 1357130532: '1746770110_3997686_1357130223_3d8a7d03655445213740738c05da5ccc_rle_crop_3790968770_0.png', 1357130533: '1746770110_3997686_1357130217_e51a5c0642d12032ee0bc270479d9fc2_rle_crop_3790968798_0.png', 1357130535: '1746770110_3997686_1357130214_1c608ce72de9e98727b812bb8a57849d_rle_crop_3790969356_0.png', 1357130859: '1746770231_3999094_1357130101_e4ef91ecb5a648ba7158ddc64154f0cc_rle_crop_3790983925_0.png', 1357130860: '1746770231_3999094_1357130080_0c9e021869eb7202f5f823a690f0a3cc_rle_crop_3790983937_0.png', 1357130861: '1746770231_3999094_1357130080_0c9e021869eb7202f5f823a690f0a3cc_rle_crop_3790983936_0.png', 1357130862: '1746770231_3999094_1357130077_cdae589ee22775343879ea0261b93d40_rle_crop_3790983952_0.png', 1357130863: '1746770231_3999094_1357130077_cdae589ee22775343879ea0261b93d40_rle_crop_3790983949_0.png', 1357131360: '1746770365_2883824_1357130899_38bd61ba8e69d4df7181237852ef60ed_rle_crop_3790987564_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/51b749529d85c544418c68205039590b_82424333.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/aabb326feb4a1f6ec67a5d878a63c3d8_58359344.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/63a227c327b9451647dcc93e1b6ebf7a_86341515.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/1f532a16e717f2a0a518b78014d7f1a8_26231908.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a587ec280f2f8cb382e4df34d0922d6e_96219311.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/06d7bc1b806248f21047233ad4fa0616_73281143.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b801affbf5fbf88e0785df46f1f6f776_30030035.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/d25bad0b8f87aa44933d951ed2a084e9_85041922.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/e4564b5872322997701f36b62a67ad25_29193134.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/b00fe6023287294f48bc3e3163875870_6716106.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/0acf57547e1149ac120e1a2919078c2b_30666617.png change filename to text .imagette228132041746770435/ imagette228132041746770435/1746770365_2883824_1357130899_38bd61ba8e69d4df7181237852ef60ed_rle_crop_3790987564_0.png.png imagette228132041746770435/1746770231_3999094_1357130080_0c9e021869eb7202f5f823a690f0a3cc_rle_crop_3790983937_0.png.png imagette228132041746770435/1746770110_3997686_1357130217_e51a5c0642d12032ee0bc270479d9fc2_rle_crop_3790968798_0.png.png imagette228132041746770435/1746770231_3999094_1357130101_e4ef91ecb5a648ba7158ddc64154f0cc_rle_crop_3790983925_0.png.png imagette228132041746770435/1746769753_3993578_1357129877_be81f44dab3ef22c84676a7383bde3b4_rle_crop_3790964901_0.png.png imagette228132041746770435/1746770231_3999094_1357130077_cdae589ee22775343879ea0261b93d40_rle_crop_3790983952_0.png.png imagette228132041746770435/1746770052_3997086_1357130011_2e738d99a55f096fe8f4d3136a735ec9_rle_crop_3790965916_0.png.png imagette228132041746770435/1746770110_3997686_1357130223_3d8a7d03655445213740738c05da5ccc_rle_crop_3790968770_0.png.png imagette228132041746770435/1746769766_2876616_1357129889_106b7af472cc95b9272e2646ad14d910_rle_crop_3790964839_0.png.png imagette228132041746770435/1746770231_3999094_1357130080_0c9e021869eb7202f5f823a690f0a3cc_rle_crop_3790983936_0.png.png imagette228132041746770435/1746770231_3999094_1357130077_cdae589ee22775343879ea0261b93d40_rle_crop_3790983949_0.png.png imagette228132041746770435/1746770110_3997686_1357130214_1c608ce72de9e98727b812bb8a57849d_rle_crop_3790969356_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/fb5fb899f1cea41caaeeef6396d26647_79698465.png imagette228132041746770435 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22813158 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22813208,22813209,22813210,22813211,22813212,22813213,22813214,22813215,22813216,22813217,22813218,22813219?tags=flou,mal_croppe,papier,Teint_Dans_La_Masse,metal,plastique,kraft,Carton_brun,Carton_gris,environnement,cartonnette,autre_refus your option no_mail is active, we will not send the real mail to your client args[1357130972] : ('0.06174595782295468',) no score found for photo 1357130972 We are sending mail with results at report@fotonower.com args[1357130930] : ('0.06174595782295468',) no score found for photo 1357130930 We are sending mail with results at report@fotonower.com args[1357130899] : ('0.06174595782295468',) no score found for photo 1357130899 We are sending mail with results at report@fotonower.com args[1357130617] : ('0.06174595782295468',) no score found for photo 1357130617 We are sending mail with results at report@fotonower.com args[1357130615] : ('0.06174595782295468',) no score found for photo 1357130615 We are sending mail with results at report@fotonower.com args[1357130613] : ('0.06174595782295468',) no score found for photo 1357130613 We are sending mail with results at report@fotonower.com args[1357130612] : ('0.06174595782295468',) no score found for photo 1357130612 We are sending mail with results at report@fotonower.com args[1357130611] : ('0.06174595782295468',) no score found for photo 1357130611 We are sending mail with results at report@fotonower.com args[1357130575] : ('0.06174595782295468',) no score found for photo 1357130575 We are sending mail with results at report@fotonower.com args[1357130571] : ('0.06174595782295468',) no score found for photo 1357130571 We are sending mail with results at report@fotonower.com args[1357130567] : ('0.06174595782295468',) no score found for photo 1357130567 We are sending mail with results at report@fotonower.com args[1357130564] : ('0.06174595782295468',) no score found for photo 1357130564 We are sending mail with results at report@fotonower.com args[1357130560] : ('0.06174595782295468',) no score found for photo 1357130560 We are sending mail with results at report@fotonower.com refus_total : 0.06174595782295468 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=22813158 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_P22813158_09-05-2025_08_00_32.pdf results_Auto_P22813158_09-05-2025_08_00_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_00_32.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','22813158','results_Auto_P22813158_09-05-2025_08_00_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_00_32.pdf','pdf','','0.31','0.06174595782295468') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22813158]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560] map_info['map_portfolio_photo'] : {22813158: [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560, 1357130438, 1357130435, 1357130418, 1357130315, 1357130312, 1357130309, 1357130307, 1357130230, 1357130227, 1357130223, 1357130219, 1357130217, 1357130214, 1357130173, 1357130170, 1357130166, 1357130109, 1357130106, 1357130101, 1357130080, 1357130077, 1357130073, 1357130021, 1357130016, 1357130011, 1357130007, 1357129999, 1357129942, 1357129939, 1357129936, 1357129933, 1357129889, 1357129886, 1357129883, 1357129880, 1357129877, 1357129832, 1357129828, 1357129825, 1357129822, 1357129820, 1357129700, 1357129697, 1357129695]} final : False mtd_id 4302 list_pids : [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560] 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, '2810590') ('4302', '22813158', '1357130972', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130930', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130899', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130617', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130615', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130613', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130612', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130611', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130575', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130571', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130567', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130564', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130560', None, None, None, None, None, '2810590') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22813158', '1357130972', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130930', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130899', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130617', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130615', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130613', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130612', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130611', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130575', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130571', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130567', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130564', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130560', None, None, None, None, None, '2810590')] time used for this insertion : 0.017496585845947266 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.78742241859436 time spend to save output : 0.017807960510253906 total time spend for step 4 : 6.805230379104614 step5:split_time_score Fri May 9 08:00:38 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 : ['22813158'] 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 : [('22813158',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22813158) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1357130972: {'path': 'temp/1746770432_3652710_1357130972_ea21873b7a9cdd776b3bc2971bee9b60.jpg', 'extension': 'jpg'}, 1357130617: {'path': 'temp/1746770432_3652710_1357130617_767062928c573845c15234331941b722.jpg', 'extension': 'jpg'}, 1357130899: {'path': 'temp/1746770432_3652710_1357130899_38bd61ba8e69d4df7181237852ef60ed.jpg', 'extension': 'jpg'}, 1357130930: {'path': 'temp/1746770432_3652710_1357130930_9055b8e7eac37d38c9ab1792997b9ed5.jpg', 'extension': 'jpg'}, 1357130612: {'path': 'temp/1746770432_3652710_1357130612_f710390b24eb47c082fce93801094955.jpg', 'extension': 'jpg'}, 1357130613: {'path': 'temp/1746770432_3652710_1357130613_f8b154b575dff3d66fb9207ffc9813e4.jpg', 'extension': 'jpg'}, 1357130615: {'path': 'temp/1746770432_3652710_1357130615_cff4ff8390d7ad9b75dec8f351b3932b.jpg', 'extension': 'jpg'}, 1357130560: {'path': 'temp/1746770432_3652710_1357130560_c7bea4c6ee7f3f5db9e1a5a71b0d1114.jpg', 'extension': 'jpg'}, 1357130564: {'path': 'temp/1746770432_3652710_1357130564_cd2cdc9f1c036c6764b91fc5a27ec3cc.jpg', 'extension': 'jpg'}, 1357130567: {'path': 'temp/1746770432_3652710_1357130567_055989144e6bce13387a5517ee281ebf.jpg', 'extension': 'jpg'}, 1357130571: {'path': 'temp/1746770432_3652710_1357130571_34e238f62f1adcfe57dcd10af57cf87e.jpg', 'extension': 'jpg'}, 1357130575: {'path': 'temp/1746770432_3652710_1357130575_8fc0f16604ec7c07155c78c8f3ec5f2b.jpg', 'extension': 'jpg'}, 1357130611: {'path': 'temp/1746770432_3652710_1357130611_e4b7bd5eb0897edaf4ec5c3d65f8361d.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 = 22813158; (('arc_en_ciel_jrm_live',), ('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 = 22813158 group by h (('07', 57),) 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=22813158 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 (22813158) 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 (22813158) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09052025 22813158 Nombre de photos uploadées : 57 / 23040 (0%) 09052025 22813158 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 09052025 22813158 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1357129700, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/2a25883715ca0d449577daa7984203c8.jpg', 'username': None, 'uploaded_at': 1746769567, 'text': 'image_09052025_07_45_04_010152m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1357129697, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/4a45d2c607280c6916407f92aa4fefcd.jpg', 'username': None, 'uploaded_at': 1746769567, 'text': 'image_09052025_07_45_14_010137m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1357129695, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/01f2e5b67ac9e32a37a84878c507f2ab.jpg', 'username': None, 'uploaded_at': 1746769567, 'text': 'image_09052025_07_45_25_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1357129832, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/9/a158ac1080e2448c39716df6e5155991.jpg', 'username': None, 'uploaded_at': 1746769628, 'text': 'image_09052025_07_45_35_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002642393112182617 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22813158, '2025-05-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1789478,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029419898986816406 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= 1789478 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1789478, 'dashboard_run_id': 1797758, 'mtr_portfolio_id': 22811687, 'dashboard_result_id': 10428999, '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_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1797758, 'mtr_portfolio_id': 22812382, 'dashboard_result_id': 10429000, '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_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1797758, 'mtr_portfolio_id': 22812747, 'dashboard_result_id': 10429001, '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_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}"}, {'dashboat_entry_day': 1789478, 'dashboard_run_id': 1797758, 'mtr_portfolio_id': 22813158, 'dashboard_result_id': 10429002, '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_P22813158_09-05-2025_07_56_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, '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 = 22811687 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': 2810419, 'mtr_portfolio_id': 22811687, 'created_at': datetime.datetime(2025, 5, 9, 7, 21, 1), 'result': '0.040710775610379564', 'result_long': None, 'result_double': None}] Qualite : 0.040710775610379564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22811687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22811687 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_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, 'pht': 3726}}" where mtr_portfolio_id = 22811687 and dashboard_run_id = 1797758 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`=22811687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10428999, 0.040710775610379564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22811687_09-05-2025_07_21_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22811691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22811692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22811693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22811694, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22811695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22811696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22811697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22811698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22811699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22811700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22811701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22811702, '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 = 22812382 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': 2810497, 'mtr_portfolio_id': 22812382, 'created_at': datetime.datetime(2025, 5, 9, 7, 33), 'result': '0.03290544309501728', 'result_long': None, 'result_double': None}] Qualite : 0.03290544309501728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812382 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_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, 'pht': 3726}}" where mtr_portfolio_id = 22812382 and dashboard_run_id = 1797759 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`=22812382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10429000, 0.03290544309501728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812382_09-05-2025_07_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812392, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812393, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812398, '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 = 22812747 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': 2810539, 'mtr_portfolio_id': 22812747, 'created_at': datetime.datetime(2025, 5, 9, 7, 46, 59), 'result': '0.04560334557780507', 'result_long': None, 'result_double': None}] Qualite : 0.04560334557780507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22812747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22812747 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_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, 'pht': 3726}}" where mtr_portfolio_id = 22812747 and dashboard_run_id = 1797759 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`=22812747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10429001, 0.04560334557780507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22812747_09-05-2025_07_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22812751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22812752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22812753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22812754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22812755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22812756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22812757, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22812758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22812759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22812760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22812761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22812762, '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 = 22813158 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': 2810590, 'mtr_portfolio_id': 22813158, 'created_at': datetime.datetime(2025, 5, 9, 8, 0, 31), 'result': '0.06174595782295468', 'result_long': None, 'result_double': None}] Qualite : 0.06174595782295468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22813158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22813158 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_P22813158_09-05-2025_08_00_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, 'pht': 3726}}" where mtr_portfolio_id = 22813158 and dashboard_run_id = 1797759 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`=22813158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10429002, 0.06174595782295468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22813158_09-05-2025_08_00_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22813196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22813197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22813198, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22813199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22813200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22813201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22813202, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22813203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22813204, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22813205, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22813206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22813207, '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 (22811687,22812382,22812747,22813158) result : ((1357126596,), (1357126601,), (1357126605,), (1357126607,), (1357126635,), (1357126644,), (1357126649,), (1357126687,), (1357126691,), (1357126694,), (1357126697,), (1357126743,), (1357126748,), (1357126753,), (1357126758,), (1357126762,), (1357126766,), (1357126808,), (1357126810,), (1357126812,), (1357126815,), (1357126819,), (1357126824,), (1357126858,), (1357126862,), (1357126867,), (1357126872,), (1357126913,), (1357126917,), (1357126921,), (1357126923,), (1357126927,), (1357126974,), (1357126979,), (1357126985,), (1357127012,), (1357127042,), (1357127164,), (1357127168,), (1357127173,), (1357127176,), (1357127179,), (1357127228,), (1357127232,), (1357127235,), (1357127239,), (1357127245,), (1357127251,), (1357127347,), (1357127352,), (1357127359,), (1357127474,), (1357127478,), (1357127483,), (1357127488,), (1357127491,), (1357127534,), (1357127539,), (1357127542,), (1357127545,), (1357127549,), (1357127573,), (1357127576,), (1357127580,), (1357127627,), (1357127632,), (1357127637,), (1357127641,), (1357127645,), (1357127648,), (1357127702,), (1357127691,), (1357127694,), (1357127696,), (1357127698,), (1357127741,), (1357127745,), (1357127748,), (1357127756,), (1357127830,), (1357127835,), (1357127885,), (1357127889,), (1357127891,), (1357127896,), (1357127935,), (1357127938,), (1357127942,), (1357127946,), (1357127983,), (1357127989,), (1357127993,), (1357127996,), (1357128034,), (1357128038,), (1357128043,), (1357128098,), (1357128101,), (1357128104,), (1357128108,), (1357128163,), (1357128168,), (1357128173,), (1357128178,), (1357128230,), (1357128234,), (1357128237,), (1357128241,), (1357128285,), (1357128296,), (1357128304,), (1357128348,), (1357128351,), (1357128355,), (1357128359,), (1357128364,), (1357128372,), (1357128533,), (1357128538,), (1357128542,), (1357128598,), (1357128602,), (1357128607,), (1357128659,), (1357128653,), (1357128656,), (1357128709,), (1357128714,), (1357128718,), (1357128722,), (1357128727,), (1357128732,), (1357128766,), (1357128772,), (1357128776,), (1357128783,), (1357128787,), (1357128819,), (1357128826,), (1357128830,), (1357128844,), (1357128902,), (1357128908,), (1357128913,), (1357128917,), (1357128921,), (1357128961,), (1357128966,), (1357128971,), (1357128976,), (1357129019,), (1357129027,), (1357129032,), (1357129034,), (1357129039,), (1357129075,), (1357129149,), (1357129205,), (1357129209,), (1357129212,), (1357129215,), (1357129219,), (1357129260,), (1357129265,), (1357129270,), (1357129315,), (1357129319,), (1357129330,), (1357129334,), (1357129350,), (1357129395,), (1357129399,), (1357129405,), (1357129411,), (1357129415,), (1357129463,), (1357129466,), (1357129470,), (1357129473,), (1357129543,), (1357129547,), (1357129551,), (1357129554,), (1357129591,), (1357129597,), (1357129703,), (1357129695,), (1357129697,), (1357129700,), (1357129820,), (1357129822,), (1357129825,), (1357129828,), (1357129832,), (1357129877,), (1357129880,), (1357129883,), (1357129886,), (1357129889,), (1357129933,), (1357129936,), (1357129939,), (1357129942,), (1357129999,), (1357130007,), (1357130011,), (1357130016,), (1357130021,), (1357130073,), (1357130077,), (1357130080,), (1357130101,), (1357130106,), (1357130109,), (1357130166,), (1357130170,), (1357130173,), (1357130214,), (1357130217,), (1357130219,), (1357130223,), (1357130227,), (1357130230,), (1357130307,), (1357130309,), (1357130312,), (1357130315,), (1357130418,), (1357130435,), (1357130438,), (1357130560,), (1357130564,), (1357130567,), (1357130571,), (1357130575,), (1357130611,), (1357130612,), (1357130613,), (1357130615,), (1357130617,), (1357130899,), (1357130930,), (1357130972,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09052025': {'nb_upload': 57, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22813158]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560] map_info['map_portfolio_photo'] : {22813158: [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560, 1357130438, 1357130435, 1357130418, 1357130315, 1357130312, 1357130309, 1357130307, 1357130230, 1357130227, 1357130223, 1357130219, 1357130217, 1357130214, 1357130173, 1357130170, 1357130166, 1357130109, 1357130106, 1357130101, 1357130080, 1357130077, 1357130073, 1357130021, 1357130016, 1357130011, 1357130007, 1357129999, 1357129942, 1357129939, 1357129936, 1357129933, 1357129889, 1357129886, 1357129883, 1357129880, 1357129877, 1357129832, 1357129828, 1357129825, 1357129822, 1357129820, 1357129700, 1357129697, 1357129695]} final : True mtd_id 4302 list_pids : [1357130972, 1357130930, 1357130899, 1357130617, 1357130615, 1357130613, 1357130612, 1357130611, 1357130575, 1357130571, 1357130567, 1357130564, 1357130560] Looping around the photos to save general results len do output : 1 /22813158Didn'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, '2810590') ('4302', '22813158', '1357130972', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130930', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130899', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130617', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130615', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130613', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130612', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130611', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130575', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130571', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130567', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130564', None, None, None, None, None, '2810590') ('4302', None, None, None, None, None, None, None, '2810590') ('4302', '22813158', '1357130560', None, None, None, None, None, '2810590') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22813158', 'None', None, None, None, None, '2810590'), ('4302', '22813158', '1357130972', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130930', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130899', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130617', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130615', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130613', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130612', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130611', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130575', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130571', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130567', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130564', None, None, None, None, None, '2810590'), ('4302', '22813158', '1357130560', None, None, None, None, None, '2810590')] time used for this insertion : 0.016878843307495117 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34456610679626465 time spend to save output : 0.017112016677856445 total time spend for step 5 : 0.3616781234741211 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 (2810590) 2.75user 1.98system 0:13.18elapsed 35%CPU (0avgtext+0avgdata 161012maxresident)k 0inputs+17352outputs (9major+79520minor)pagefaults 0swaps