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 : 505983 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 (2669940) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2669940) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438173 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2669940'] with mtr_portfolio_ids : ['21438173'] and first list_photo_ids : [] new path : /proc/505983/ Name: python3 Umask: 0002 State: R (running) Tgid: 505983 Ngid: 0 Pid: 505983 PPid: 505982 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 505983 NSpid: 505983 NSpgid: 503363 NSsid: 503363 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98132 kB VmRSS: 98132 kB RssAnon: 59800 kB RssFile: 38332 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 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: 84 nonvoluntary_ctxt_switches: 101 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '505983', 'Ngid': '0', 'Pid': '505983', 'PPid': '505982', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '505983', 'NSpid': '505983', 'NSpgid': '503363', 'NSsid': '503363', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98132 kB', 'VmRSS': '98132 kB', 'RssAnon': '59800 kB', 'RssFile': '38332 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '84', 'nonvoluntary_ctxt_switches': '101'} ('datou_batch_current', '505983', '1106844', '0', '1106844', '865596', '98132', b'', 'marlene', '2669940') 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 (21438173) 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 (2669940 ) ) 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 (21438173) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1344202950, 'portfolio_id': 21438173}, {'photo_id': 1344202948, 'portfolio_id': 21438173}, {'photo_id': 1344202941, 'portfolio_id': 21438173}, {'photo_id': 1344202934, 'portfolio_id': 21438173}, {'photo_id': 1344202925, 'portfolio_id': 21438173}, {'photo_id': 1344202835, 'portfolio_id': 21438173}, {'photo_id': 1344202833, 'portfolio_id': 21438173}, {'photo_id': 1344202831, 'portfolio_id': 21438173}, {'photo_id': 1344202827, 'portfolio_id': 21438173}, {'photo_id': 1344202822, 'portfolio_id': 21438173}, {'photo_id': 1344202684, 'portfolio_id': 21438173}, {'photo_id': 1344202672, 'portfolio_id': 21438173}, {'photo_id': 1344202667, 'portfolio_id': 21438173}, {'photo_id': 1344202662, 'portfolio_id': 21438173}, {'photo_id': 1344202602, 'portfolio_id': 21438173}, {'photo_id': 1344202588, 'portfolio_id': 21438173}, {'photo_id': 1344202583, 'portfolio_id': 21438173}, {'photo_id': 1344202581, 'portfolio_id': 21438173}, {'photo_id': 1344202574, 'portfolio_id': 21438173}, {'photo_id': 1344202570, 'portfolio_id': 21438173}, {'photo_id': 1344202527, 'portfolio_id': 21438173}, {'photo_id': 1344202526, 'portfolio_id': 21438173}, {'photo_id': 1344202524, 'portfolio_id': 21438173}, {'photo_id': 1344202520, 'portfolio_id': 21438173}, {'photo_id': 1344202517, 'portfolio_id': 21438173}, {'photo_id': 1344202299, 'portfolio_id': 21438173}, {'photo_id': 1344202298, 'portfolio_id': 21438173}, {'photo_id': 1344202296, 'portfolio_id': 21438173}, {'photo_id': 1344202294, 'portfolio_id': 21438173}, {'photo_id': 1344202293, 'portfolio_id': 21438173}, {'photo_id': 1344202251, 'portfolio_id': 21438173}, {'photo_id': 1344202114, 'portfolio_id': 21438173}, {'photo_id': 1344202059, 'portfolio_id': 21438173}, {'photo_id': 1344201944, 'portfolio_id': 21438173}, {'photo_id': 1344201933, 'portfolio_id': 21438173}, {'photo_id': 1344201922, 'portfolio_id': 21438173}, {'photo_id': 1344201880, 'portfolio_id': 21438173}, {'photo_id': 1344201877, 'portfolio_id': 21438173}, {'photo_id': 1344201800, 'portfolio_id': 21438173}, {'photo_id': 1344201619, 'portfolio_id': 21438173}, {'photo_id': 1344201524, 'portfolio_id': 21438173}, {'photo_id': 1344201519, 'portfolio_id': 21438173}, {'photo_id': 1344201497, 'portfolio_id': 21438173}, {'photo_id': 1344201485, 'portfolio_id': 21438173}, {'photo_id': 1344201479, 'portfolio_id': 21438173}, {'photo_id': 1344201458, 'portfolio_id': 21438173}, {'photo_id': 1344201212, 'portfolio_id': 21438173}, {'photo_id': 1344201180, 'portfolio_id': 21438173}, {'photo_id': 1344201149, 'portfolio_id': 21438173}, {'photo_id': 1344201126, 'portfolio_id': 21438173}, {'photo_id': 1344201104, 'portfolio_id': 21438173}] map_portfolio_id_photo_id: {21438173: [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570, 1344202527, 1344202526, 1344202524, 1344202520, 1344202517, 1344202299, 1344202298, 1344202296, 1344202294, 1344202293, 1344202251, 1344202114, 1344202059, 1344201944, 1344201933, 1344201922, 1344201880, 1344201877, 1344201800, 1344201619, 1344201524, 1344201519, 1344201497, 1344201485, 1344201479, 1344201458, 1344201212, 1344201180, 1344201149, 1344201126, 1344201104]} ##### 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.016350746154785156 #### 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 Mar 14 16:56:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21438173) 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 : 21438173 get user id for portfolio 21438173 get sub ptf for main ptf 21438173, type 3726 and hashtags ['flou', 'environnement', 'papier', 'metal', 'cartonnette', 'plastique', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'kraft', 'autre_refus', 'Teint_Dans_La_Masse'] 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`=21438173 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','papier','metal','cartonnette','plastique','mal_croppe','Carton_brun','Carton_gris','kraft','autre_refus','Teint_Dans_La_Masse')) 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`=21438173 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','papier','metal','cartonnette','plastique','mal_croppe','Carton_brun','Carton_gris','kraft','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21438173, 'sub_port_id': 21438251, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008653, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}, 'flou': {'main_port_id': 21438173, 'sub_port_id': 21438252, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008654, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}, 'environnement': {'main_port_id': 21438173, 'sub_port_id': 21438253, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008655, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}, 'Carton_gris': {'main_port_id': 21438173, 'sub_port_id': 21438254, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008656, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}, 'Teint_Dans_La_Masse': {'main_port_id': 21438173, 'sub_port_id': 21438255, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008657, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}, 'metal': {'main_port_id': 21438173, 'sub_port_id': 21438256, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008658, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}, 'cartonnette': {'main_port_id': 21438173, 'sub_port_id': 21438257, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008659, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}, 'plastique': {'main_port_id': 21438173, 'sub_port_id': 21438258, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008660, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}, 'papier': {'main_port_id': 21438173, 'sub_port_id': 21438259, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008661, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}, 'mal_croppe': {'main_port_id': 21438173, 'sub_port_id': 21438260, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008662, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}, 'autre_refus': {'main_port_id': 21438173, 'sub_port_id': 21438261, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008663, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}, 'kraft': {'main_port_id': 21438173, 'sub_port_id': 21438262, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008664, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21438251 , 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=21438173 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 (21438251) result : ((1344201878,), (1344202480,), (1344202481,), (1344202558,), (1344202559,), (1344202560,), (1344202655,), (1344202769,), (1344202770,), (1344202771,), (1344202945,), (1344202946,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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 21438252 , 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=21438173 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 (21438252) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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 21438253 , 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=21438173 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 (21438253) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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 21438254 , 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=21438173 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 (21438254) result : ((1344201876,), (1344202475,), (1344202476,), (1344202551,), (1344202552,), (1344202593,), (1344202653,), (1344202747,), (1344202748,), (1344202749,), (1344202943,), (1344202944,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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 21438255 , 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=21438173 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 (21438255) result : ((1344201869,), (1344201875,), (1344202467,), (1344202533,), (1344202535,), (1344202585,), (1344202586,), (1344202587,), (1344202646,), (1344202647,), (1344202717,), (1344202718,), (1344202935,), (1344202936,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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 21438256 , 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=21438173 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 (21438256) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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 21438257 , 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=21438173 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 (21438257) result : ((1344202261,), (1344202263,), (1344202555,), (1344202556,), (1344202594,), (1344202654,), (1344202757,), (1344202758,), (1344202937,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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 21438258 , 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=21438173 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 (21438258) result : ((1344201879,), (1344202563,), (1344202595,), (1344202596,), (1344202777,), (1344202942,), (1344202947,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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 21438259 , 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=21438173 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 (21438259) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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 21438260 , 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=21438173 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 (21438260) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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 21438261 , 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=21438173 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 (21438261) result : ((1344202473,), (1344202474,), (1344202540,), (1344202541,), (1344202542,), (1344202543,), (1344202544,), (1344202589,), (1344202590,), (1344202591,), (1344202592,), (1344202651,), (1344202736,), (1344202738,), (1344202739,), (1344202740,), (1344202741,), (1344202938,), (1344202939,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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 21438262 , 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=21438173 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 (21438262) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21438173) result : ((1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) 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 (1344201800) 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`=21438173 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','papier','metal','cartonnette','plastique','mal_croppe','Carton_brun','Carton_gris','kraft','autre_refus','Teint_Dans_La_Masse')) 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`=21438173 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','environnement','papier','metal','cartonnette','plastique','mal_croppe','Carton_brun','Carton_gris','kraft','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21438173, 'sub_port_id': 21438263, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008665, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}, 'flou': {'main_port_id': 21438173, 'sub_port_id': 21438264, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008666, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}, 'environnement': {'main_port_id': 21438173, 'sub_port_id': 21438265, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008667, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}, 'Carton_gris': {'main_port_id': 21438173, 'sub_port_id': 21438266, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008668, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21438173, 'sub_port_id': 21438267, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008669, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}, 'metal': {'main_port_id': 21438173, 'sub_port_id': 21438268, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008670, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}, 'cartonnette': {'main_port_id': 21438173, 'sub_port_id': 21438269, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008671, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}, 'plastique': {'main_port_id': 21438173, 'sub_port_id': 21438270, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008672, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}, 'papier': {'main_port_id': 21438173, 'sub_port_id': 21438271, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008673, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}, 'mal_croppe': {'main_port_id': 21438173, 'sub_port_id': 21438272, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008674, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}, 'autre_refus': {'main_port_id': 21438173, 'sub_port_id': 21438273, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008675, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 50, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}, 'kraft': {'main_port_id': 21438173, 'sub_port_id': 21438274, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14008676, 'last_updated_at': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 16, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 16, 50, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438263,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438251 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438264,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438252 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438265,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438253 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438266,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438254 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438267,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438255 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438268,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438256 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438269,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438257 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438270,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438258 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438271,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438259 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438272,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438260 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438273,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438261 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21438274,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21438262 lien utilise dans velours : https://www.fotonower.com/velours/21438263,21438264,21438265,21438266,21438267,21438268,21438269,21438270,21438271,21438272,21438273,21438274?tags=Carton_brun,flou,environnement,Carton_gris,Teint_Dans_La_Masse,metal,cartonnette,plastique,papier,mal_croppe,autre_refus,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21438173]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570] map_info['map_portfolio_photo'] : {21438173: [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570, 1344202527, 1344202526, 1344202524, 1344202520, 1344202517, 1344202299, 1344202298, 1344202296, 1344202294, 1344202293, 1344202251, 1344202114, 1344202059, 1344201944, 1344201933, 1344201922, 1344201880, 1344201877, 1344201800, 1344201619, 1344201524, 1344201519, 1344201497, 1344201485, 1344201479, 1344201458, 1344201212, 1344201180, 1344201149, 1344201126, 1344201104]} final : False mtd_id 4302 list_pids : [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570] Looping around the photos to save general results len do output : 1 /21438173. 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, '2669940') ('4302', '21438173', '1344202950', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202948', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202941', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202934', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202925', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202835', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202833', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202831', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202827', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202822', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202684', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202672', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202667', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202662', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202602', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202588', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202583', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202581', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202574', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202570', None, None, None, None, None, '2669940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '21438173', "{'Carton_brun': 21438251, 'flou': 21438252, 'environnement': 21438253, 'Carton_gris': 21438254, 'Teint_Dans_La_Masse': 21438255, 'metal': 21438256, 'cartonnette': 21438257, 'plastique': 21438258, 'papier': 21438259, 'mal_croppe': 21438260, 'autre_refus': 21438261, 'kraft': 21438262}", None, None, None, None, '2669940'), ('4302', '21438173', '1344202950', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202948', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202941', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202934', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202925', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202835', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202833', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202831', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202827', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202822', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202684', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202672', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202667', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202662', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202602', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202588', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202583', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202581', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202574', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202570', None, None, None, None, None, '2669940')] time used for this insertion : 0.015735149383544922 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.692500114440918 time spend to save output : 0.016080617904663086 total time spend for step 1 : 0.708580732345581 step2:final Fri Mar 14 16:56:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21438173) 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 21438173 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1344201212,1344201180,1344201149,1344201126,1344201104,1344201497,1344201485,1344201479,1344201458,1344201880,1344201877,1344201800,1344201619,1344201524,1344201519,1344202114,1344202059,1344201944,1344201933,1344201922,1344202299,1344202298,1344202296,1344202251,1344202294,1344202293,1344202527,1344202526,1344202524,1344202520,1344202517,1344202602,1344202588,1344202583,1344202581,1344202574,1344202570,1344202684,1344202672,1344202667,1344202662,1344202835,1344202833,1344202831,1344202827,1344202822,1344202950,1344202948,1344202941,1344202934,1344202925); 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([21438173]) Inside saveOutput : final : False verbose : True original output for save of step final : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} new output for save of step final : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570] map_info['map_portfolio_photo'] : {21438173: [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570, 1344202527, 1344202526, 1344202524, 1344202520, 1344202517, 1344202299, 1344202298, 1344202296, 1344202294, 1344202293, 1344202251, 1344202114, 1344202059, 1344201944, 1344201933, 1344201922, 1344201880, 1344201877, 1344201800, 1344201619, 1344201524, 1344201519, 1344201497, 1344201485, 1344201479, 1344201458, 1344201212, 1344201180, 1344201149, 1344201126, 1344201104]} final : False mtd_id 4302 list_pids : [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570] Looping around the photos to save general results len do output : 20 /1344202950.Didn't retrieve data . /1344202948.Didn't retrieve data . /1344202941.Didn't retrieve data . /1344202934.Didn't retrieve data . /1344202925.Didn't retrieve data . /1344202835.Didn't retrieve data . /1344202833.Didn't retrieve data . /1344202831.Didn't retrieve data . /1344202827.Didn't retrieve data . /1344202822.Didn't retrieve data . /1344202684.Didn't retrieve data . /1344202672.Didn't retrieve data . /1344202667.Didn't retrieve data . /1344202662.Didn't retrieve data . /1344202602.Didn't retrieve data . /1344202588.Didn't retrieve data . /1344202583.Didn't retrieve data . /1344202581.Didn't retrieve data . /1344202574.Didn't retrieve data . /1344202570.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, '2669940') ('4302', '21438173', '1344202950', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202948', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202941', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202934', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202925', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202835', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202833', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202831', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202827', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202822', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202684', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202672', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202667', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202662', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202602', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202588', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202583', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202581', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202574', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202570', None, None, None, None, None, '2669940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 60 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', '21438173', '1344202950', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202948', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202941', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202934', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202925', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202835', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202833', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202831', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202827', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202822', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202684', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202672', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202667', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202662', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202602', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202588', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202583', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202581', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202574', '0.057167940877511564', None, None, None, None, '2669940'), ('4302', '21438173', '1344202570', '0.057167940877511564', None, None, None, None, '2669940')] time used for this insertion : 0.014264106750488281 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06995248794555664 time spend to save output : 0.01494908332824707 total time spend for step 2 : 0.08490157127380371 step3:velours_tree Fri Mar 14 16:56:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21438173: [{'Carton_brun': 21438251, 'flou': 21438252, 'environnement': 21438253, 'Carton_gris': 21438254, 'Teint_Dans_La_Masse': 21438255, 'metal': 21438256, 'cartonnette': 21438257, 'plastique': 21438258, 'papier': 21438259, 'mal_croppe': 21438260, 'autre_refus': 21438261, 'kraft': 21438262}]} input_args_next_step : {21438173: ()} output_args : {21438173: [{'Carton_brun': 21438251, 'flou': 21438252, 'environnement': 21438253, 'Carton_gris': 21438254, 'Teint_Dans_La_Masse': 21438255, 'metal': 21438256, 'cartonnette': 21438257, 'plastique': 21438258, 'papier': 21438259, 'mal_croppe': 21438260, 'autre_refus': 21438261, 'kraft': 21438262}]} args : 21438173 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 : ({'Carton_brun': 21438251, 'flou': 21438252, 'environnement': 21438253, 'Carton_gris': 21438254, 'Teint_Dans_La_Masse': 21438255, 'metal': 21438256, 'cartonnette': 21438257, 'plastique': 21438258, 'papier': 21438259, 'mal_croppe': 21438260, 'autre_refus': 21438261, 'kraft': 21438262},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21438173) 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([21438173]) 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.3052246570587158 time spend to save output : 5.316734313964844e-05 total time spend for step 3 : 0.30527782440185547 step4:send_mail_cod Fri Mar 14 16:56:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} input_args_next_step : {1344202950: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202950 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202948 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202941 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202934 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202925 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202835 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202833 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202831 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202827 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202822 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202684 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202672 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202667 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202662 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202602 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202588 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202583 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202581 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202574 depend.output_id : 0 input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ()} output_args : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',)} args : 1344202570 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 : {21438173: [{'Carton_brun': 21438251, 'flou': 21438252, 'environnement': 21438253, 'Carton_gris': 21438254, 'Teint_Dans_La_Masse': 21438255, 'metal': 21438256, 'cartonnette': 21438257, 'plastique': 21438258, 'papier': 21438259, 'mal_croppe': 21438260, 'autre_refus': 21438261, 'kraft': 21438262}]} input_args_next_step : {1344202950: ('0.057167940877511564',), 1344202948: ('0.057167940877511564',), 1344202941: ('0.057167940877511564',), 1344202934: ('0.057167940877511564',), 1344202925: ('0.057167940877511564',), 1344202835: ('0.057167940877511564',), 1344202833: ('0.057167940877511564',), 1344202831: ('0.057167940877511564',), 1344202827: ('0.057167940877511564',), 1344202822: ('0.057167940877511564',), 1344202684: ('0.057167940877511564',), 1344202672: ('0.057167940877511564',), 1344202667: ('0.057167940877511564',), 1344202662: ('0.057167940877511564',), 1344202602: ('0.057167940877511564',), 1344202588: ('0.057167940877511564',), 1344202583: ('0.057167940877511564',), 1344202581: ('0.057167940877511564',), 1344202574: ('0.057167940877511564',), 1344202570: ('0.057167940877511564',), 21438173: ()} output_args : {21438173: [{'Carton_brun': 21438251, 'flou': 21438252, 'environnement': 21438253, 'Carton_gris': 21438254, 'Teint_Dans_La_Masse': 21438255, 'metal': 21438256, 'cartonnette': 21438257, 'plastique': 21438258, 'papier': 21438259, 'mal_croppe': 21438260, 'autre_refus': 21438261, 'kraft': 21438262}]} args : 21438173 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 :21, first value : ('0.057167940877511564',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21438173) 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 (1344202950,1344202948,1344202941,1344202934,1344202925,1344202835,1344202833,1344202831,1344202827,1344202822,1344202684,1344202672,1344202667,1344202662,1344202602,1344202588,1344202583,1344202581,1344202574,1344202570) Found this number of photos: 20 ##### Call download_photos : nb_thread : 5 begin to download photo : 1344202570 begin to download photo : 1344202602 begin to download photo : 1344202822 begin to download photo : 1344202925 download finish for photo 1344202570 begin to download photo : 1344202574 download finish for photo 1344202822 begin to download photo : 1344202827 download finish for photo 1344202925 begin to download photo : 1344202934 download finish for photo 1344202574 begin to download photo : 1344202581 download finish for photo 1344202827 begin to download photo : 1344202831 download finish for photo 1344202934 begin to download photo : 1344202941 download finish for photo 1344202581 begin to download photo : 1344202583 download finish for photo 1344202831 begin to download photo : 1344202833 download finish for photo 1344202941 begin to download photo : 1344202948 download finish for photo 1344202583 begin to download photo : 1344202588 download finish for photo 1344202833 begin to download photo : 1344202835 download finish for photo 1344202948 begin to download photo : 1344202950 download finish for photo 1344202588 download finish for photo 1344202835 download finish for photo 1344202950 download finish for photo 1344202602 begin to download photo : 1344202662 download finish for photo 1344202662 begin to download photo : 1344202667 download finish for photo 1344202667 begin to download photo : 1344202672 download finish for photo 1344202672 begin to download photo : 1344202684 download finish for photo 1344202684 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette214382521741967821/ imagette214382561741967821/ length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 results_Auto_P21438173_14-03-2025_16_57_01.pdf 21438252 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=21438252 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214382521741967821 21438256 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=21438256 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214382561741967821 21438257 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=21438257 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344202261: '1741967428_1748508_1344201497_960dacc54d383ac60dd6c794fe8d999d_rle_crop_3712329331_0.png', 1344202263: '1741967428_1748508_1344201497_960dacc54d383ac60dd6c794fe8d999d_rle_crop_3712329333_0.png', 1344202555: '1741967453_783800_1344201524_95b8acb856b7592fa9620832601c88b1_rle_crop_3712331027_0.png', 1344202556: '1741967453_783800_1344201524_95b8acb856b7592fa9620832601c88b1_rle_crop_3712331028_0.png', 1344202594: '1741967547_1752297_1344202296_19f91fbb66bd9caad949733ff73e1e9c_rle_crop_3712332411_0.png', 1344202654: '1741967554_785201_1344202299_d6e1bf07782ef1a50d63f66f6087915f_rle_crop_3712332863_0.png', 1344202757: '1741967572_785463_1344201524_95b8acb856b7592fa9620832601c88b1_rle_crop_3712331027_0.png', 1344202758: '1741967572_785463_1344201524_95b8acb856b7592fa9620832601c88b1_rle_crop_3712331028_0.png', 1344202937: '1741967712_787179_1344202527_022c7f3107279655e56fe04621e2f0a4_rle_crop_3712338397_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e9ded06bf31d1f60ca89ae3681e53383_44111105.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0daf2f02dc97179a7795b40bc0d47ef7_81620744.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7e90ec40361bbab19813e8fe0682d96b_58995394.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/286fa48b19ca002a52adec0355ad3308_76953226.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/73950924eb7d1fe78426550166bd2ff4_65513943.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/65ceb44a20b45e0ccd2629a239538b6e_53347760.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7e90ec40361bbab19813e8fe0682d96b_17594189.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/286fa48b19ca002a52adec0355ad3308_61202784.png change filename to text .imagette214382571741967821/ imagette214382571741967821/1741967712_787179_1344202527_022c7f3107279655e56fe04621e2f0a4_rle_crop_3712338397_0.png.png imagette214382571741967821/1741967572_785463_1344201524_95b8acb856b7592fa9620832601c88b1_rle_crop_3712331028_0.png.png imagette214382571741967821/1741967428_1748508_1344201497_960dacc54d383ac60dd6c794fe8d999d_rle_crop_3712329333_0.png.png imagette214382571741967821/1741967453_783800_1344201524_95b8acb856b7592fa9620832601c88b1_rle_crop_3712331027_0.png.png imagette214382571741967821/1741967572_785463_1344201524_95b8acb856b7592fa9620832601c88b1_rle_crop_3712331027_0.png.png imagette214382571741967821/1741967547_1752297_1344202296_19f91fbb66bd9caad949733ff73e1e9c_rle_crop_3712332411_0.png.png imagette214382571741967821/1741967554_785201_1344202299_d6e1bf07782ef1a50d63f66f6087915f_rle_crop_3712332863_0.png.png imagette214382571741967821/1741967453_783800_1344201524_95b8acb856b7592fa9620832601c88b1_rle_crop_3712331028_0.png.png imagette214382571741967821/1741967428_1748508_1344201497_960dacc54d383ac60dd6c794fe8d999d_rle_crop_3712329331_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8562421a975323475e53c032ceccc5fa_45150023.png imagette214382571741967821 21438258 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=21438258 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344201879: '1741967306_1743756_1344201104_3dd0fdd38f4314887aa9ee30f8cd108e_rle_crop_3712327536_0.png', 1344202563: '1741967453_783800_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330953_0.png', 1344202595: '1741967547_1752297_1344202296_19f91fbb66bd9caad949733ff73e1e9c_rle_crop_3712332409_0.png', 1344202596: '1741967547_1752297_1344202251_0ad1f861a36df1ed9ca4d9874a05b304_rle_crop_3712332600_0.png', 1344202777: '1741967572_785463_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330953_0.png', 1344202942: '1741967712_787179_1344202527_022c7f3107279655e56fe04621e2f0a4_rle_crop_3712338408_0.png', 1344202947: '1741967692_786956_1344202520_d71ed154497a83c6f05cf7c677f955da_rle_crop_3712338379_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f4f0308578b1400e55657532f9bb767a_29803939.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f807ee03e8cbd848c17119ea5133d7e1_70795082.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9b1c33957a9e9cbc3d6a5d62ce4a30e8_82598722.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bc4819d093dee3982bd4450decc69d40_51306396.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f807ee03e8cbd848c17119ea5133d7e1_52214259.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/6508fda87795eb4842e6eeded808ca32_70004997.png change filename to text .imagette214382581741967822/ imagette214382581741967822/1741967306_1743756_1344201104_3dd0fdd38f4314887aa9ee30f8cd108e_rle_crop_3712327536_0.png.png imagette214382581741967822/1741967692_786956_1344202520_d71ed154497a83c6f05cf7c677f955da_rle_crop_3712338379_0.png.png imagette214382581741967822/1741967453_783800_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330953_0.png.png imagette214382581741967822/1741967547_1752297_1344202296_19f91fbb66bd9caad949733ff73e1e9c_rle_crop_3712332409_0.png.png imagette214382581741967822/1741967547_1752297_1344202251_0ad1f861a36df1ed9ca4d9874a05b304_rle_crop_3712332600_0.png.png imagette214382581741967822/1741967572_785463_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330953_0.png.png imagette214382581741967822/1741967712_787179_1344202527_022c7f3107279655e56fe04621e2f0a4_rle_crop_3712338408_0.png.png imagette214382601741967822/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f28dede9f4a829467e2f1b05518c55a2_2763734.png imagette214382581741967822 21438260 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=21438260 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214382601741967822 21438261 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=21438261 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344202591: '1741967547_1752297_1344202294_074055875f3c21657a8f6fda60cefa00_rle_crop_3712332543_0.png', 1344202939: '1741967692_786956_1344202517_1ac41af062ed3cb6a9ecdfc355b4d81f_rle_crop_3712338387_0.png', 1344202938: '1741967692_786956_1344202602_7eaf60376875c37d608807b4f7d7a20d_rle_crop_3712338361_0.png', 1344202741: '1741967572_785463_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331638_0.png', 1344202740: '1741967572_785463_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331650_0.png', 1344202739: '1741967572_785463_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330958_0.png', 1344202738: '1741967572_785463_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330921_0.png', 1344202736: '1741967572_785463_1344201877_4a906888c25e77265675cf47a42c4cd7_rle_crop_3712330885_0.png', 1344202651: '1741967554_785201_1344202299_d6e1bf07782ef1a50d63f66f6087915f_rle_crop_3712332866_0.png', 1344202592: '1741967547_1752297_1344202251_0ad1f861a36df1ed9ca4d9874a05b304_rle_crop_3712332596_0.png', 1344202473: '1741967433_783526_1344201485_e19b34eeaf5fd5b3b389f960380af886_rle_crop_3712330132_0.png', 1344202590: '1741967547_1752297_1344202294_074055875f3c21657a8f6fda60cefa00_rle_crop_3712332540_0.png', 1344202589: '1741967547_1752297_1344202296_19f91fbb66bd9caad949733ff73e1e9c_rle_crop_3712332417_0.png', 1344202544: '1741967453_783800_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331638_0.png', 1344202543: '1741967453_783800_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331650_0.png', 1344202542: '1741967453_783800_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330958_0.png', 1344202541: '1741967453_783800_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330921_0.png', 1344202540: '1741967453_783800_1344201877_4a906888c25e77265675cf47a42c4cd7_rle_crop_3712330885_0.png', 1344202474: '1741967433_783526_1344201479_cf67e3c392e54f18316d94f2c2014298_rle_crop_3712330169_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d37f7a2924127d6fc190dc7b7def573d_61764145.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/11d2252eae503ab1cc007fa9686e67dd_90994859.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b299e8042d7f393c7fea42743ece19bc_28863730.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/db2b66811b31d604ac47daa70165aee1_6219342.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/18686c2a0145aa7073ea2b177225e242_46350620.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/73a51e1f53d6be0e8da2f25a5b14e54e_29483708.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/319c99a44719d9fb9bbb5515e79ba416_21134709.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b0367dafe8e3760e8aa44ee9bb3b691c_13882916.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7f0fcb8a18ccabde910d6edf205d6529_32559555.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/275c94c1e45a70ebeb1109b50c15a986_39148952.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7833b17d17aa6ca83bf40ebc3a934e48_82594206.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4588a2864cb3e6cd1ae23a8fb21b1024_7550107.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/31fd63ebe97e990fa57cc198a8eaf511_41841593.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/db2b66811b31d604ac47daa70165aee1_54239428.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/18686c2a0145aa7073ea2b177225e242_57291588.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/73a51e1f53d6be0e8da2f25a5b14e54e_47087655.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/319c99a44719d9fb9bbb5515e79ba416_42342270.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b0367dafe8e3760e8aa44ee9bb3b691c_17376401.png change filename to text .imagette214382611741967822/ imagette214382611741967822/1741967433_783526_1344201479_cf67e3c392e54f18316d94f2c2014298_rle_crop_3712330169_0.png.png imagette214382611741967822/1741967572_785463_1344201877_4a906888c25e77265675cf47a42c4cd7_rle_crop_3712330885_0.png.png imagette214382611741967822/1741967433_783526_1344201485_e19b34eeaf5fd5b3b389f960380af886_rle_crop_3712330132_0.png.png imagette214382611741967822/1741967453_783800_1344201877_4a906888c25e77265675cf47a42c4cd7_rle_crop_3712330885_0.png.png imagette214382611741967822/1741967692_786956_1344202602_7eaf60376875c37d608807b4f7d7a20d_rle_crop_3712338361_0.png.png imagette214382611741967822/1741967453_783800_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331638_0.png.png imagette214382611741967822/1741967547_1752297_1344202294_074055875f3c21657a8f6fda60cefa00_rle_crop_3712332540_0.png.png imagette214382611741967822/1741967547_1752297_1344202251_0ad1f861a36df1ed9ca4d9874a05b304_rle_crop_3712332596_0.png.png imagette214382611741967822/1741967453_783800_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330921_0.png.png imagette214382611741967822/1741967554_785201_1344202299_d6e1bf07782ef1a50d63f66f6087915f_rle_crop_3712332866_0.png.png imagette214382611741967822/1741967692_786956_1344202517_1ac41af062ed3cb6a9ecdfc355b4d81f_rle_crop_3712338387_0.png.png imagette214382611741967822/1741967453_783800_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331650_0.png.png imagette214382611741967822/1741967547_1752297_1344202294_074055875f3c21657a8f6fda60cefa00_rle_crop_3712332543_0.png.png imagette214382611741967822/1741967572_785463_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330958_0.png.png imagette214382611741967822/1741967572_785463_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330921_0.png.png imagette214382611741967822/1741967453_783800_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330958_0.png.png imagette214382611741967822/1741967547_1752297_1344202296_19f91fbb66bd9caad949733ff73e1e9c_rle_crop_3712332417_0.png.png imagette214382611741967822/1741967572_785463_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331650_0.png.png imagette214382611741967822/1741967572_785463_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331638_0.png.png imagette214382621741967823/ wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c5a397d80e053769291f9f0c325e7c71_86764175.png imagette214382611741967822 21438262 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=21438262 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214382621741967823 21438251 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=21438251 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344201878: '1741967306_1743756_1344201104_3dd0fdd38f4314887aa9ee30f8cd108e_rle_crop_3712327544_0.png', 1344202480: '1741967433_783526_1344201485_e19b34eeaf5fd5b3b389f960380af886_rle_crop_3712330134_0.png', 1344202481: '1741967433_783526_1344201479_cf67e3c392e54f18316d94f2c2014298_rle_crop_3712330174_0.png', 1344202558: '1741967453_783800_1344201877_4a906888c25e77265675cf47a42c4cd7_rle_crop_3712330877_0.png', 1344202559: '1741967453_783800_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330920_0.png', 1344202560: '1741967453_783800_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330959_0.png', 1344202655: '1741967554_785201_1344202059_07014c8d325c36b3b1d5d019b9d77754_rle_crop_3712332887_0.png', 1344202769: '1741967572_785463_1344201877_4a906888c25e77265675cf47a42c4cd7_rle_crop_3712330877_0.png', 1344202770: '1741967572_785463_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330920_0.png', 1344202771: '1741967572_785463_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330959_0.png', 1344202945: '1741967692_786956_1344202602_7eaf60376875c37d608807b4f7d7a20d_rle_crop_3712338358_0.png', 1344202946: '1741967692_786956_1344202602_7eaf60376875c37d608807b4f7d7a20d_rle_crop_3712338364_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/bdd1075812c9611d2dcdbf663135bc59_33083204.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/260a9e4d73216898b74650c1a14bba92_1536857.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/354a98fdec4facbd5f4be495eeeae4f2_35306009.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b48c3d18f076b06da1bb34282ed149c6_76411901.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/203177353e7d008c8c1eb29480216795_57597811.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/fdb0bbb1b7674bf4e9c17e5b1993054e_27658849.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e5e501608e9da36b6b2a51616bf8c890_75834897.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b48c3d18f076b06da1bb34282ed149c6_14430189.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/203177353e7d008c8c1eb29480216795_25966084.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/fdb0bbb1b7674bf4e9c17e5b1993054e_61701174.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4665111e1a7c0d27ca68098eb0f963b0_6852592.png change filename to text .imagette214382511741967823/ imagette214382511741967823/1741967433_783526_1344201479_cf67e3c392e54f18316d94f2c2014298_rle_crop_3712330174_0.png.png imagette214382511741967823/1741967433_783526_1344201485_e19b34eeaf5fd5b3b389f960380af886_rle_crop_3712330134_0.png.png imagette214382511741967823/1741967572_785463_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330920_0.png.png imagette214382511741967823/1741967554_785201_1344202059_07014c8d325c36b3b1d5d019b9d77754_rle_crop_3712332887_0.png.png imagette214382511741967823/1741967306_1743756_1344201104_3dd0fdd38f4314887aa9ee30f8cd108e_rle_crop_3712327544_0.png.png imagette214382511741967823/1741967572_785463_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330959_0.png.png imagette214382511741967823/1741967692_786956_1344202602_7eaf60376875c37d608807b4f7d7a20d_rle_crop_3712338364_0.png.png imagette214382511741967823/1741967453_783800_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330959_0.png.png imagette214382511741967823/1741967453_783800_1344201877_4a906888c25e77265675cf47a42c4cd7_rle_crop_3712330877_0.png.png imagette214382511741967823/1741967572_785463_1344201877_4a906888c25e77265675cf47a42c4cd7_rle_crop_3712330877_0.png.png imagette214382511741967823/1741967453_783800_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330920_0.png.png imagette214382511741967823/1741967692_786956_1344202602_7eaf60376875c37d608807b4f7d7a20d_rle_crop_3712338358_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f5c8494b2b5d65ad9a6ac1c1cb33c637_1786052.png imagette214382511741967823 21438254 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=21438254 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344201876: '1741967306_1743756_1344201104_3dd0fdd38f4314887aa9ee30f8cd108e_rle_crop_3712327540_0.png', 1344202475: '1741967433_783526_1344201485_e19b34eeaf5fd5b3b389f960380af886_rle_crop_3712330131_0.png', 1344202476: '1741967433_783526_1344201479_cf67e3c392e54f18316d94f2c2014298_rle_crop_3712330172_0.png', 1344202551: '1741967453_783800_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330960_0.png', 1344202552: '1741967453_783800_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331648_0.png', 1344202593: '1741967547_1752297_1344202293_e19d17165ed1acf9d18302e5adbc2a7a_rle_crop_3712332558_0.png', 1344202653: '1741967554_785201_1344201933_f5a9604545b91706dda023fd4731c09a_rle_crop_3712333101_0.png', 1344202747: '1741967572_785463_1344202114_1bccf110bbb379955989bd69794c22d6_rle_crop_3712333192_0.png', 1344202748: '1741967572_785463_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330960_0.png', 1344202749: '1741967572_785463_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331648_0.png', 1344202943: '1741967692_786956_1344202526_b1c7fbbee47ff0cddba032949c51294c_rle_crop_3712338369_0.png', 1344202944: '1741967692_786956_1344202517_1ac41af062ed3cb6a9ecdfc355b4d81f_rle_crop_3712338385_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a23714bfa253d4b0fbc144acf09f9d19_78445735.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a6be7390591f3a0e2519bd13dc54360a_56253309.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/47dbf3ed3f89a4017ea823f9acc7382a_19596517.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/cd599a7b367fe0b3b184380d43dd4043_7195011.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/11ef2f7d82a876b903fd94fec9ff5e6e_49694878.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/33f56903b04ee71d4eb72b3920595660_6501753.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2b1f127ac7bdf50b25f77800f7090ab8_35707957.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/9d5e289baeae359f717a88d4e828660e_66956378.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/cd599a7b367fe0b3b184380d43dd4043_62939589.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/11ef2f7d82a876b903fd94fec9ff5e6e_84704965.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4a246591fa9fcbdb4b61f36a2f565ed5_89008891.png change filename to text .imagette214382541741967824/ imagette214382541741967824/1741967547_1752297_1344202293_e19d17165ed1acf9d18302e5adbc2a7a_rle_crop_3712332558_0.png.png imagette214382541741967824/1741967453_783800_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330960_0.png.png imagette214382541741967824/1741967572_785463_1344202114_1bccf110bbb379955989bd69794c22d6_rle_crop_3712333192_0.png.png imagette214382541741967824/1741967453_783800_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331648_0.png.png imagette214382541741967824/1741967554_785201_1344201933_f5a9604545b91706dda023fd4731c09a_rle_crop_3712333101_0.png.png imagette214382541741967824/1741967306_1743756_1344201104_3dd0fdd38f4314887aa9ee30f8cd108e_rle_crop_3712327540_0.png.png imagette214382541741967824/1741967433_783526_1344201485_e19b34eeaf5fd5b3b389f960380af886_rle_crop_3712330131_0.png.png imagette214382541741967824/1741967692_786956_1344202517_1ac41af062ed3cb6a9ecdfc355b4d81f_rle_crop_3712338385_0.png.png imagette214382541741967824/1741967433_783526_1344201479_cf67e3c392e54f18316d94f2c2014298_rle_crop_3712330172_0.png.png imagette214382541741967824/1741967692_786956_1344202526_b1c7fbbee47ff0cddba032949c51294c_rle_crop_3712338369_0.png.png imagette214382541741967824/1741967572_785463_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330960_0.png.png imagette214382541741967824/1741967572_785463_1344201519_4360057c8e07040b9c9554d3dffa1583_rle_crop_3712331648_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b5d4ba283bf0509258bf5956c2e0781f_99052621.png imagette214382541741967824 21438255 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=21438255 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344201869: '1741967306_1743756_1344201180_25cfa79adef0f9df17b364f7c62ae266_rle_crop_3712327362_0.png', 1344201875: '1741967306_1743756_1344201180_25cfa79adef0f9df17b364f7c62ae266_rle_crop_3712327357_0.png', 1344202467: '1741967433_783526_1344201485_e19b34eeaf5fd5b3b389f960380af886_rle_crop_3712330133_0.png', 1344202533: '1741967453_783800_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330926_0.png', 1344202535: '1741967453_783800_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330965_0.png', 1344202585: '1741967547_1752297_1344202296_19f91fbb66bd9caad949733ff73e1e9c_rle_crop_3712332415_0.png', 1344202586: '1741967547_1752297_1344202293_e19d17165ed1acf9d18302e5adbc2a7a_rle_crop_3712332564_0.png', 1344202587: '1741967547_1752297_1344202293_e19d17165ed1acf9d18302e5adbc2a7a_rle_crop_3712332556_0.png', 1344202646: '1741967554_785201_1344202299_d6e1bf07782ef1a50d63f66f6087915f_rle_crop_3712332870_0.png', 1344202647: '1741967554_785201_1344202299_d6e1bf07782ef1a50d63f66f6087915f_rle_crop_3712332871_0.png', 1344202717: '1741967572_785463_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330926_0.png', 1344202718: '1741967572_785463_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330965_0.png', 1344202935: '1741967692_786956_1344202520_d71ed154497a83c6f05cf7c677f955da_rle_crop_3712338382_0.png', 1344202936: '1741967712_787179_1344202527_022c7f3107279655e56fe04621e2f0a4_rle_crop_3712338402_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/5e9a032f45d09408083b372db7703fd2_55780647.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7777da5ea33bf7fc2949ef4a2f80dfd6_95807084.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7b8a1104c6d9fa0e83466a04a7c4d944_15991382.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/19e5ea1de7874aaba9632836fe77be94_21911319.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/89cd912cdb520332b067dff31cdefa6d_98341310.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8511fea032e33096e4eb4a128f3045ae_68950998.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f4d90e5170801578a7223769d68bb880_88576168.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4e89ef5356f4f6aee02daad00da0666b_45681424.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/987bd57cceca708750d98245dac0e587_18247890.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/814015a983234c58b5342daee7ebb382_82207302.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/19e5ea1de7874aaba9632836fe77be94_70474240.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/609813eaa9ec7a7b8a36918585291604_19654340.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/931cc8cc2832e5801017fa40d9421a93_93810402.png change filename to text .imagette214382551741967825/ imagette214382551741967825/1741967433_783526_1344201485_e19b34eeaf5fd5b3b389f960380af886_rle_crop_3712330133_0.png.png imagette214382551741967825/1741967554_785201_1344202299_d6e1bf07782ef1a50d63f66f6087915f_rle_crop_3712332870_0.png.png imagette214382551741967825/1741967554_785201_1344202299_d6e1bf07782ef1a50d63f66f6087915f_rle_crop_3712332871_0.png.png imagette214382551741967825/1741967547_1752297_1344202293_e19d17165ed1acf9d18302e5adbc2a7a_rle_crop_3712332564_0.png.png imagette214382551741967825/1741967547_1752297_1344202296_19f91fbb66bd9caad949733ff73e1e9c_rle_crop_3712332415_0.png.png imagette214382551741967825/1741967572_785463_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330926_0.png.png imagette214382551741967825/1741967572_785463_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330965_0.png.png imagette214382551741967825/1741967692_786956_1344202520_d71ed154497a83c6f05cf7c677f955da_rle_crop_3712338382_0.png.png imagette214382551741967825/1741967547_1752297_1344202293_e19d17165ed1acf9d18302e5adbc2a7a_rle_crop_3712332556_0.png.png imagette214382551741967825/1741967306_1743756_1344201180_25cfa79adef0f9df17b364f7c62ae266_rle_crop_3712327357_0.png.png imagette214382551741967825/1741967712_787179_1344202527_022c7f3107279655e56fe04621e2f0a4_rle_crop_3712338402_0.png.png imagette214382551741967825/1741967306_1743756_1344201180_25cfa79adef0f9df17b364f7c62ae266_rle_crop_3712327362_0.png.png imagette214382551741967825/1741967453_783800_1344201619_1bdef1480733484d52084fa685b3a626_rle_crop_3712330965_0.png.png imagette214382551741967825/1741967453_783800_1344201800_db6b74a26c1711f63247228644aee863_rle_crop_3712330926_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/f81caa17a955419ddb26d9105944dd0a_95334051.png imagette214382551741967825 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21438173 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21438263,21438264,21438265,21438266,21438267,21438268,21438269,21438270,21438271,21438272,21438273,21438274?tags=Carton_brun,flou,environnement,Carton_gris,Teint_Dans_La_Masse,metal,cartonnette,plastique,papier,mal_croppe,autre_refus,kraft your option no_mail is active, we will not send the real mail to your client args[1344202950] : ('0.057167940877511564',) no score found for photo 1344202950 We are sending mail with results at report@fotonower.com args[1344202948] : ('0.057167940877511564',) no score found for photo 1344202948 We are sending mail with results at report@fotonower.com args[1344202941] : ('0.057167940877511564',) no score found for photo 1344202941 We are sending mail with results at report@fotonower.com args[1344202934] : ('0.057167940877511564',) no score found for photo 1344202934 We are sending mail with results at report@fotonower.com args[1344202925] : ('0.057167940877511564',) no score found for photo 1344202925 We are sending mail with results at report@fotonower.com args[1344202835] : ('0.057167940877511564',) no score found for photo 1344202835 We are sending mail with results at report@fotonower.com args[1344202833] : ('0.057167940877511564',) no score found for photo 1344202833 We are sending mail with results at report@fotonower.com args[1344202831] : ('0.057167940877511564',) no score found for photo 1344202831 We are sending mail with results at report@fotonower.com args[1344202827] : ('0.057167940877511564',) no score found for photo 1344202827 We are sending mail with results at report@fotonower.com args[1344202822] : ('0.057167940877511564',) no score found for photo 1344202822 We are sending mail with results at report@fotonower.com args[1344202684] : ('0.057167940877511564',) no score found for photo 1344202684 We are sending mail with results at report@fotonower.com args[1344202672] : ('0.057167940877511564',) no score found for photo 1344202672 We are sending mail with results at report@fotonower.com args[1344202667] : ('0.057167940877511564',) no score found for photo 1344202667 We are sending mail with results at report@fotonower.com args[1344202662] : ('0.057167940877511564',) no score found for photo 1344202662 We are sending mail with results at report@fotonower.com args[1344202602] : ('0.057167940877511564',) no score found for photo 1344202602 We are sending mail with results at report@fotonower.com args[1344202588] : ('0.057167940877511564',) no score found for photo 1344202588 We are sending mail with results at report@fotonower.com args[1344202583] : ('0.057167940877511564',) no score found for photo 1344202583 We are sending mail with results at report@fotonower.com args[1344202581] : ('0.057167940877511564',) no score found for photo 1344202581 We are sending mail with results at report@fotonower.com args[1344202574] : ('0.057167940877511564',) no score found for photo 1344202574 We are sending mail with results at report@fotonower.com args[1344202570] : ('0.057167940877511564',) no score found for photo 1344202570 We are sending mail with results at report@fotonower.com refus_total : 0.057167940877511564 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=21438173 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_P21438173_14-03-2025_16_57_01.pdf results_Auto_P21438173_14-03-2025_16_57_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21438173_14-03-2025_16_57_01.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','21438173','results_Auto_P21438173_14-03-2025_16_57_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21438173_14-03-2025_16_57_01.pdf','pdf','','0.34','0.057167940877511564') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21438173]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570] map_info['map_portfolio_photo'] : {21438173: [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570, 1344202527, 1344202526, 1344202524, 1344202520, 1344202517, 1344202299, 1344202298, 1344202296, 1344202294, 1344202293, 1344202251, 1344202114, 1344202059, 1344201944, 1344201933, 1344201922, 1344201880, 1344201877, 1344201800, 1344201619, 1344201524, 1344201519, 1344201497, 1344201485, 1344201479, 1344201458, 1344201212, 1344201180, 1344201149, 1344201126, 1344201104]} final : False mtd_id 4302 list_pids : [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570] 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, '2669940') ('4302', '21438173', '1344202950', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202948', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202941', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202934', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202925', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202835', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202833', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202831', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202827', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202822', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202684', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202672', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202667', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202662', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202602', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202588', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202583', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202581', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202574', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202570', None, None, None, None, None, '2669940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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', '21438173', '1344202950', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202948', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202941', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202934', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202925', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202835', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202833', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202831', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202827', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202822', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202684', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202672', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202667', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202662', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202602', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202588', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202583', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202581', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202574', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202570', None, None, None, None, None, '2669940')] time used for this insertion : 0.013565778732299805 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.829636573791504 time spend to save output : 0.013888120651245117 total time spend for step 4 : 7.843524694442749 step5:split_time_score Fri Mar 14 16:57:07 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21438173'] 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 : [('21438173',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21438173) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1344202570: {'path': 'temp/1741967819_505983_1344202570_b44444231f4fd074195f4ca0361793d6.jpg', 'extension': 'jpg'}, 1344202574: {'path': 'temp/1741967819_505983_1344202574_a9ca1f609b03d778fabe819c3d3d9d0a.jpg', 'extension': 'jpg'}, 1344202581: {'path': 'temp/1741967819_505983_1344202581_e4d28c609211cac63ed0e47e88cd617b.jpg', 'extension': 'jpg'}, 1344202583: {'path': 'temp/1741967819_505983_1344202583_576c0ce91bdf29b4b0dd91771939bc9a.jpg', 'extension': 'jpg'}, 1344202588: {'path': 'temp/1741967819_505983_1344202588_a4303e481b3149ed0dd4e2c1aeef2722.jpg', 'extension': 'jpg'}, 1344202822: {'path': 'temp/1741967819_505983_1344202822_3ac401120927d857fdf7951981da8e4f.jpg', 'extension': 'jpg'}, 1344202827: {'path': 'temp/1741967819_505983_1344202827_ec36c1313643e16f5735316bc9059e8a.jpg', 'extension': 'jpg'}, 1344202831: {'path': 'temp/1741967819_505983_1344202831_251d01e012f3ed576f79c97773251254.jpg', 'extension': 'jpg'}, 1344202833: {'path': 'temp/1741967819_505983_1344202833_69e8c6a8f082ecf943a1db78bae2ff12.jpg', 'extension': 'jpg'}, 1344202835: {'path': 'temp/1741967819_505983_1344202835_c07746efbacf7e3412d2a364d657c2af.jpg', 'extension': 'jpg'}, 1344202925: {'path': 'temp/1741967819_505983_1344202925_7838ca9984acb2c9ae3a6fda40397e82.jpg', 'extension': 'jpg'}, 1344202934: {'path': 'temp/1741967819_505983_1344202934_10906adc1bd373692a02e52973e4ae75.jpg', 'extension': 'jpg'}, 1344202941: {'path': 'temp/1741967819_505983_1344202941_a94f0c15ad658adabc7171dc94d221e0.jpg', 'extension': 'jpg'}, 1344202948: {'path': 'temp/1741967819_505983_1344202948_ad0b1b221ad3d4dbe751a26337127a18.jpg', 'extension': 'jpg'}, 1344202950: {'path': 'temp/1741967819_505983_1344202950_4bf09ae74afe40f9ed9c9826a09cc71a.jpg', 'extension': 'jpg'}, 1344202602: {'path': 'temp/1741967819_505983_1344202602_7eaf60376875c37d608807b4f7d7a20d.jpg', 'extension': 'jpg'}, 1344202662: {'path': 'temp/1741967819_505983_1344202662_1edb0c4f253457fbc09719980b478abc.jpg', 'extension': 'jpg'}, 1344202667: {'path': 'temp/1741967819_505983_1344202667_31997e358215f506f3b51109ad03baba.jpg', 'extension': 'jpg'}, 1344202672: {'path': 'temp/1741967819_505983_1344202672_43e0b6528099476f913f67a7799e76ee.jpg', 'extension': 'jpg'}, 1344202684: {'path': 'temp/1741967819_505983_1344202684_25076c8a12a844a77e8942fab6d6887f.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 = 21438173; (('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 = 21438173 group by h (('16', 51),) 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=21438173 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 (21438173) 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 (21438173) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14032025 21438173 Nombre de photos uploadées : 51 / 23040 (0%) 14032025 21438173 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 14032025 21438173 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1344201212, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7e5dbe27e1fedf2f206f37c69b7de653.jpg', 'username': None, 'uploaded_at': 1741967206, 'text': 'image_14032025_16_45_04_010154m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344201180, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/25cfa79adef0f9df17b364f7c62ae266.jpg', 'username': None, 'uploaded_at': 1741967206, 'text': 'image_14032025_16_45_14_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1344201149, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c11e9ff32c2709be951cb30b185e3d3a.jpg', 'username': None, 'uploaded_at': 1741967206, 'text': 'image_14032025_16_45_24_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1344201126, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7b7f86d6b277e61bff6abbf2db007a6b.jpg', 'username': None, 'uploaded_at': 1741967206, 'text': 'image_14032025_16_45_34_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025451183319091797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21438173, '2025-03-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1667162,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02484893798828125 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= 1667162 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676985, 'mtr_portfolio_id': 21435460, 'dashboard_result_id': 9455625, '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_P21435460_14-03-2025_16_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21435547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21435548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21435549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21435550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21435551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21435552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21435553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21435554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21435555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21435556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21435557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21435558, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676985, 'mtr_portfolio_id': 21436426, 'dashboard_result_id': 9455626, '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_P21436426_14-03-2025_16_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21436441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21436442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21436443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21436444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21436445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21436446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21436447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21436448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21436449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21436450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21436451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21436452, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676985, 'mtr_portfolio_id': 21437446, 'dashboard_result_id': 9455627, '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_P21437446_14-03-2025_16_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21437465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21437466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21437467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21437468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21437469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21437470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21437471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21437472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21437473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21437474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21437475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21437476, 'pht': 3726}}"}, {'dashboat_entry_day': 1667162, 'dashboard_run_id': 1676985, 'mtr_portfolio_id': 21438173, 'dashboard_result_id': 9455628, '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_P21438173_14-03-2025_16_52_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21438251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21438252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21438253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21438254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21438255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21438256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21438257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21438258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21438259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21438260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21438261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21438262, '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 = 21435460 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': 2669788, 'mtr_portfolio_id': 21435460, 'created_at': datetime.datetime(2025, 3, 14, 16, 18, 58), 'result': '0.058644176883759065', 'result_long': None, 'result_double': None}] Qualite : 0.058644176883759065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21435460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21435460_14-03-2025_16_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21435460 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_P21435460_14-03-2025_16_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21435547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21435548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21435549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21435550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21435551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21435552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21435553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21435554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21435555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21435556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21435557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21435558, 'pht': 3726}}" where mtr_portfolio_id = 21435460 and dashboard_run_id = 1676985 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`=21435460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9455625, 0.058644176883759065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21435460_14-03-2025_16_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21435547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21435548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21435549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21435550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21435551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21435552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21435553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21435554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21435555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21435556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21435557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21435558, '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 = 21436426 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': 2669847, 'mtr_portfolio_id': 21436426, 'created_at': datetime.datetime(2025, 3, 14, 16, 33, 1), 'result': '0.05946794749687733', 'result_long': None, 'result_double': None}] Qualite : 0.05946794749687733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21436426 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21436426_14-03-2025_16_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21436426 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_P21436426_14-03-2025_16_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21436441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21436442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21436443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21436444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21436445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21436446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21436447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21436448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21436449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21436450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21436451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21436452, 'pht': 3726}}" where mtr_portfolio_id = 21436426 and dashboard_run_id = 1676985 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`=21436426 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9455626, 0.05946794749687733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21436426_14-03-2025_16_33_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21436441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21436442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21436443, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21436444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21436445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21436446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21436447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21436448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21436449, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21436450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21436451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21436452, '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 = 21437446 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': 2669905, 'mtr_portfolio_id': 21437446, 'created_at': datetime.datetime(2025, 3, 14, 16, 49), 'result': '0.06972293852039906', 'result_long': None, 'result_double': None}] Qualite : 0.06972293852039906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21437446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21437446_14-03-2025_16_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21437446 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_P21437446_14-03-2025_16_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21437465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21437466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21437467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21437468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21437469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21437470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21437471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21437472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21437473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21437474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21437475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21437476, 'pht': 3726}}" where mtr_portfolio_id = 21437446 and dashboard_run_id = 1676985 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`=21437446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9455627, 0.06972293852039906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21437446_14-03-2025_16_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21437465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21437466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21437467, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21437468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21437469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21437470, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21437471, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21437472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21437473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21437474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21437475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21437476, '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 = 21438173 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': 2669940, 'mtr_portfolio_id': 21438173, 'created_at': datetime.datetime(2025, 3, 14, 16, 56, 59), 'result': '0.057167940877511564', 'result_long': None, 'result_double': None}] Qualite : 0.057167940877511564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21438173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21438173_14-03-2025_16_57_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21438173 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_P21438173_14-03-2025_16_57_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21438251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21438252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21438253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21438254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21438255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21438256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21438257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21438258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21438259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21438260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21438261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21438262, 'pht': 3726}}" where mtr_portfolio_id = 21438173 and dashboard_run_id = 1676985 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`=21438173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9455628, 0.057167940877511564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21438173_14-03-2025_16_57_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21438251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21438252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21438253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21438254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21438255, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21438256, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21438257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21438258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21438259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21438260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21438261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21438262, '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 (21435460,21436426,21437446,21438173) result : ((1344185391,), (1344185439,), (1344186034,), (1344186072,), (1344186115,), (1344186152,), (1344186202,), (1344186259,), (1344186486,), (1344186526,), (1344186550,), (1344186575,), (1344186955,), (1344186994,), (1344187038,), (1344187088,), (1344187132,), (1344187568,), (1344187585,), (1344187594,), (1344187596,), (1344187598,), (1344187831,), (1344187856,), (1344187877,), (1344187893,), (1344187912,), (1344188157,), (1344188163,), (1344188165,), (1344188166,), (1344188316,), (1344188318,), (1344188336,), (1344188351,), (1344188376,), (1344188504,), (1344188528,), (1344188537,), (1344188540,), (1344188542,), (1344188547,), (1344188612,), (1344188636,), (1344188684,), (1344188919,), (1344188938,), (1344188941,), (1344188990,), (1344188991,), (1344188994,), (1344189135,), (1344189164,), (1344189191,), (1344189216,), (1344189351,), (1344189372,), (1344189406,), (1344189435,), (1344189460,), (1344189472,), (1344189660,), (1344189684,), (1344189696,), (1344189699,), (1344189774,), (1344189779,), (1344189784,), (1344189788,), (1344189794,), (1344189797,), (1344189890,), (1344189836,), (1344189839,), (1344189842,), (1344189872,), (1344190503,), (1344190566,), (1344190619,), (1344190642,), (1344191167,), (1344191216,), (1344191256,), (1344191284,), (1344191330,), (1344191690,), (1344191715,), (1344191744,), (1344191771,), (1344192255,), (1344192329,), (1344192395,), (1344192437,), (1344192498,), (1344192565,), (1344192726,), (1344192783,), (1344192829,), (1344193318,), (1344193335,), (1344193341,), (1344193350,), (1344193355,), (1344193399,), (1344194004,), (1344194042,), (1344194068,), (1344194122,), (1344194564,), (1344194606,), (1344194612,), (1344194617,), (1344194619,), (1344194622,), (1344194745,), (1344194753,), (1344194756,), (1344194767,), (1344194930,), (1344194932,), (1344194955,), (1344194974,), (1344194976,), (1344194979,), (1344195153,), (1344195203,), (1344195232,), (1344195277,), (1344195324,), (1344195669,), (1344195684,), (1344195724,), (1344195755,), (1344195772,), (1344195907,), (1344195911,), (1344195914,), (1344195915,), (1344195917,), (1344195943,), (1344195947,), (1344195950,), (1344195952,), (1344195953,), (1344196281,), (1344196143,), (1344196191,), (1344196221,), (1344196246,), (1344196674,), (1344196824,), (1344196843,), (1344196874,), (1344196926,), (1344197154,), (1344197184,), (1344197221,), (1344197248,), (1344197274,), (1344197497,), (1344197515,), (1344197553,), (1344197576,), (1344197742,), (1344197760,), (1344197770,), (1344197788,), (1344197799,), (1344197811,), (1344197998,), (1344198015,), (1344198039,), (1344198067,), (1344198352,), (1344198356,), (1344198359,), (1344198361,), (1344198369,), (1344198394,), (1344198577,), (1344198612,), (1344198636,), (1344198667,), (1344199026,), (1344199072,), (1344199109,), (1344199136,), (1344199167,), (1344199177,), (1344199308,), (1344199351,), (1344199375,), (1344199404,), (1344199523,), (1344199641,), (1344199713,), (1344199770,), (1344199820,), (1344199866,), (1344200055,), (1344200092,), (1344200115,), (1344200145,), (1344200467,), (1344200518,), (1344200556,), (1344200582,), (1344200606,), (1344200633,), (1344200822,), (1344200829,), (1344200836,), (1344200839,), (1344200876,), (1344200886,), (1344200891,), (1344200894,), (1344200907,), (1344201235,), (1344201104,), (1344201126,), (1344201149,), (1344201180,), (1344201212,), (1344201458,), (1344201479,), (1344201485,), (1344201497,), (1344201519,), (1344201524,), (1344201619,), (1344201800,), (1344201877,), (1344201880,), (1344201922,), (1344201933,), (1344201944,), (1344202059,), (1344202114,), (1344202251,), (1344202293,), (1344202294,), (1344202296,), (1344202298,), (1344202299,), (1344202517,), (1344202520,), (1344202524,), (1344202526,), (1344202527,), (1344202570,), (1344202574,), (1344202581,), (1344202583,), (1344202588,), (1344202602,), (1344202662,), (1344202667,), (1344202672,), (1344202684,), (1344202822,), (1344202827,), (1344202831,), (1344202833,), (1344202835,), (1344202925,), (1344202934,), (1344202941,), (1344202948,), (1344202950,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14032025': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21438173]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570] map_info['map_portfolio_photo'] : {21438173: [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570, 1344202527, 1344202526, 1344202524, 1344202520, 1344202517, 1344202299, 1344202298, 1344202296, 1344202294, 1344202293, 1344202251, 1344202114, 1344202059, 1344201944, 1344201933, 1344201922, 1344201880, 1344201877, 1344201800, 1344201619, 1344201524, 1344201519, 1344201497, 1344201485, 1344201479, 1344201458, 1344201212, 1344201180, 1344201149, 1344201126, 1344201104]} final : True mtd_id 4302 list_pids : [1344202950, 1344202948, 1344202941, 1344202934, 1344202925, 1344202835, 1344202833, 1344202831, 1344202827, 1344202822, 1344202684, 1344202672, 1344202667, 1344202662, 1344202602, 1344202588, 1344202583, 1344202581, 1344202574, 1344202570] Looping around the photos to save general results len do output : 1 /21438173Didn'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, '2669940') ('4302', '21438173', '1344202950', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202948', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202941', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202934', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202925', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202835', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202833', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202831', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202827', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202822', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202684', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202672', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202667', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202662', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202602', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202588', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202583', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202581', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202574', None, None, None, None, None, '2669940') ('4302', None, None, None, None, None, None, None, '2669940') ('4302', '21438173', '1344202570', None, None, None, None, None, '2669940') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '21438173', 'None', None, None, None, None, '2669940'), ('4302', '21438173', '1344202950', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202948', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202941', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202934', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202925', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202835', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202833', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202831', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202827', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202822', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202684', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202672', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202667', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202662', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202602', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202588', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202583', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202581', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202574', None, None, None, None, None, '2669940'), ('4302', '21438173', '1344202570', None, None, None, None, None, '2669940')] time used for this insertion : 0.014755725860595703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.44696569442749023 time spend to save output : 0.015040159225463867 total time spend for step 5 : 0.4620058536529541 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 (2669940) 2.61user 2.62system 0:13.58elapsed 38%CPU (0avgtext+0avgdata 161140maxresident)k 376inputs+22056outputs (11major+77217minor)pagefaults 0swaps