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 : 189292 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 (2655258) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2655258) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234496 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2655258'] with mtr_portfolio_ids : ['21234496'] and first list_photo_ids : [] new path : /proc/189292/ Name: python3 Umask: 0002 State: R (running) Tgid: 189292 Ngid: 0 Pid: 189292 PPid: 189291 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 189292 NSpid: 189292 NSpgid: 185202 NSsid: 185202 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97864 kB VmRSS: 97864 kB RssAnon: 59748 kB RssFile: 38116 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 50 nonvoluntary_ctxt_switches: 116 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '189292', 'Ngid': '0', 'Pid': '189292', 'PPid': '189291', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '189292', 'NSpid': '189292', 'NSpgid': '185202', 'NSsid': '185202', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97864 kB', 'VmRSS': '97864 kB', 'RssAnon': '59748 kB', 'RssFile': '38116 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '50', 'nonvoluntary_ctxt_switches': '116'} ('datou_batch_current', '189292', '1106844', '0', '1106844', '865592', '97864', b'', 'marlene', '2655258') 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 (21234496) 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 (2655258 ) ) 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 (21234496) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342625058, 'portfolio_id': 21234496}, {'photo_id': 1342625027, 'portfolio_id': 21234496}, {'photo_id': 1342624995, 'portfolio_id': 21234496}, {'photo_id': 1342624961, 'portfolio_id': 21234496}, {'photo_id': 1342624740, 'portfolio_id': 21234496}, {'photo_id': 1342624700, 'portfolio_id': 21234496}, {'photo_id': 1342624677, 'portfolio_id': 21234496}, {'photo_id': 1342624636, 'portfolio_id': 21234496}, {'photo_id': 1342624596, 'portfolio_id': 21234496}, {'photo_id': 1342624554, 'portfolio_id': 21234496}, {'photo_id': 1342624217, 'portfolio_id': 21234496}, {'photo_id': 1342624157, 'portfolio_id': 21234496}, {'photo_id': 1342624081, 'portfolio_id': 21234496}, {'photo_id': 1342624016, 'portfolio_id': 21234496}, {'photo_id': 1342623705, 'portfolio_id': 21234496}, {'photo_id': 1342623650, 'portfolio_id': 21234496}, {'photo_id': 1342623601, 'portfolio_id': 21234496}, {'photo_id': 1342623526, 'portfolio_id': 21234496}, {'photo_id': 1342623447, 'portfolio_id': 21234496}, {'photo_id': 1342623412, 'portfolio_id': 21234496}, {'photo_id': 1342622807, 'portfolio_id': 21234496}, {'photo_id': 1342622783, 'portfolio_id': 21234496}, {'photo_id': 1342622728, 'portfolio_id': 21234496}, {'photo_id': 1342622525, 'portfolio_id': 21234496}, {'photo_id': 1342622506, 'portfolio_id': 21234496}, {'photo_id': 1342622479, 'portfolio_id': 21234496}, {'photo_id': 1342622458, 'portfolio_id': 21234496}, {'photo_id': 1342622305, 'portfolio_id': 21234496}, {'photo_id': 1342622285, 'portfolio_id': 21234496}, {'photo_id': 1342622280, 'portfolio_id': 21234496}, {'photo_id': 1342622260, 'portfolio_id': 21234496}, {'photo_id': 1342621977, 'portfolio_id': 21234496}, {'photo_id': 1342621869, 'portfolio_id': 21234496}, {'photo_id': 1342621845, 'portfolio_id': 21234496}, {'photo_id': 1342621812, 'portfolio_id': 21234496}, {'photo_id': 1342621251, 'portfolio_id': 21234496}, {'photo_id': 1342621195, 'portfolio_id': 21234496}, {'photo_id': 1342621124, 'portfolio_id': 21234496}, {'photo_id': 1342621050, 'portfolio_id': 21234496}, {'photo_id': 1342621017, 'portfolio_id': 21234496}, {'photo_id': 1342620980, 'portfolio_id': 21234496}, {'photo_id': 1342620603, 'portfolio_id': 21234496}, {'photo_id': 1342620585, 'portfolio_id': 21234496}, {'photo_id': 1342620562, 'portfolio_id': 21234496}, {'photo_id': 1342620374, 'portfolio_id': 21234496}, {'photo_id': 1342620334, 'portfolio_id': 21234496}, {'photo_id': 1342620284, 'portfolio_id': 21234496}, {'photo_id': 1342620236, 'portfolio_id': 21234496}, {'photo_id': 1342620211, 'portfolio_id': 21234496}] map_portfolio_id_photo_id: {21234496: [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412, 1342622807, 1342622783, 1342622728, 1342622525, 1342622506, 1342622479, 1342622458, 1342622305, 1342622285, 1342622280, 1342622260, 1342621977, 1342621869, 1342621845, 1342621812, 1342621251, 1342621195, 1342621124, 1342621050, 1342621017, 1342620980, 1342620603, 1342620585, 1342620562, 1342620374, 1342620334, 1342620284, 1342620236, 1342620211]} ##### 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.05072665214538574 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 10 19:12: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 (21234496) 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 : 21234496 get user id for portfolio 21234496 get sub ptf for main ptf 21234496, type 3726 and hashtags ['mal_croppe', 'plastique', 'autre_refus', 'metal', 'Carton_gris', 'cartonnette', 'Teint_Dans_La_Masse', 'Carton_brun', 'kraft', 'environnement', 'flou', 'papier'] 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`=21234496 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','autre_refus','metal','Carton_gris','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','environnement','flou','papier')) 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`=21234496 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','autre_refus','metal','Carton_gris','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','environnement','flou','papier')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21234496, 'sub_port_id': 21234534, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824428, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}, 'Carton_brun': {'main_port_id': 21234496, 'sub_port_id': 21234535, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824429, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 21234496, 'sub_port_id': 21234536, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824430, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}, 'kraft': {'main_port_id': 21234496, 'sub_port_id': 21234537, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824431, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}, 'cartonnette': {'main_port_id': 21234496, 'sub_port_id': 21234538, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824432, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}, 'environnement': {'main_port_id': 21234496, 'sub_port_id': 21234539, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824433, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}, 'papier': {'main_port_id': 21234496, 'sub_port_id': 21234540, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824434, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}, 'flou': {'main_port_id': 21234496, 'sub_port_id': 21234541, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824435, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}, 'Carton_gris': {'main_port_id': 21234496, 'sub_port_id': 21234542, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824436, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}, 'metal': {'main_port_id': 21234496, 'sub_port_id': 21234543, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824437, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}, 'mal_croppe': {'main_port_id': 21234496, 'sub_port_id': 21234544, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824438, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}, 'plastique': {'main_port_id': 21234496, 'sub_port_id': 21234545, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824439, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21234534 , 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=21234496 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 (21234534) result : ((1342622764,), (1342622884,), (1342622888,), (1342623234,), (1342623235,), (1342623237,), (1342623238,), (1342623242,), (1342623243,), (1342623244,), (1342623506,), (1342623512,), (1342623513,), (1342623514,), (1342623515,), (1342623516,), (1342625181,), (1342625182,), (1342625184,), (1342625192,), (1342625193,), (1342625194,), (1342625195,), (1342625196,), (1342625197,), (1342625198,), (1342625325,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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 21234535 , 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=21234496 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 (21234535) result : ((1342623289,), (1342623292,), (1342623293,), (1342623294,), (1342623572,), (1342623575,), (1342625228,), (1342625229,), (1342625230,), (1342625338,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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 21234536 , 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=21234496 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 (21234536) result : ((1342622755,), (1342623118,), (1342623119,), (1342623121,), (1342623124,), (1342623430,), (1342623433,), (1342625174,), (1342625175,), (1342625310,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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 21234537 , 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=21234496 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 (21234537) result : ((1342625264,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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 21234538 , 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=21234496 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 (21234538) result : ((1342622771,), (1342622772,), (1342623540,), (1342623546,), (1342625214,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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 21234539 , 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=21234496 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 (21234539) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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 21234540 , 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=21234496 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 (21234540) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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 21234541 , 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=21234496 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 (21234541) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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 21234542 , 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=21234496 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 (21234542) result : ((1342623265,), (1342623266,), (1342623521,), (1342625205,), (1342625206,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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 21234543 , 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=21234496 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 (21234543) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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 21234544 , 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=21234496 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 (21234544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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 21234545 , 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=21234496 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 (21234545) result : ((1342623604,), (1342623605,), (1342623606,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21234496) result : ((1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) 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 (1342624700) 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`=21234496 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','autre_refus','metal','Carton_gris','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','environnement','flou','papier')) 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`=21234496 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','plastique','autre_refus','metal','Carton_gris','cartonnette','Teint_Dans_La_Masse','Carton_brun','kraft','environnement','flou','papier')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21234496, 'sub_port_id': 21234546, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824452, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}, 'Carton_brun': {'main_port_id': 21234496, 'sub_port_id': 21234547, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824453, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}, 'Teint_Dans_La_Masse': {'main_port_id': 21234496, 'sub_port_id': 21234548, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824454, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}, 'kraft': {'main_port_id': 21234496, 'sub_port_id': 21234549, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824455, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}, 'cartonnette': {'main_port_id': 21234496, 'sub_port_id': 21234550, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824456, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}, 'environnement': {'main_port_id': 21234496, 'sub_port_id': 21234551, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824457, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}, 'papier': {'main_port_id': 21234496, 'sub_port_id': 21234552, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824458, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}, 'flou': {'main_port_id': 21234496, 'sub_port_id': 21234553, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824459, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}, 'Carton_gris': {'main_port_id': 21234496, 'sub_port_id': 21234554, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824460, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}, 'metal': {'main_port_id': 21234496, 'sub_port_id': 21234555, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824461, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}, 'mal_croppe': {'main_port_id': 21234496, 'sub_port_id': 21234560, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824462, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 5, 39), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}, 'plastique': {'main_port_id': 21234496, 'sub_port_id': 21234569, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13824463, 'last_updated_at': datetime.datetime(2025, 3, 10, 19, 9, 34), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 19, 9, 34), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 19, 5, 39)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234546,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234534 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21234569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21234545 lien utilise dans velours : https://www.fotonower.com/velours/21234546,21234547,21234548,21234549,21234550,21234551,21234552,21234553,21234554,21234555,21234560,21234569?tags=autre_refus,Carton_brun,Teint_Dans_La_Masse,kraft,cartonnette,environnement,papier,flou,Carton_gris,metal,mal_croppe,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21234496]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412] map_info['map_portfolio_photo'] : {21234496: [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412, 1342622807, 1342622783, 1342622728, 1342622525, 1342622506, 1342622479, 1342622458, 1342622305, 1342622285, 1342622280, 1342622260, 1342621977, 1342621869, 1342621845, 1342621812, 1342621251, 1342621195, 1342621124, 1342621050, 1342621017, 1342620980, 1342620603, 1342620585, 1342620562, 1342620374, 1342620334, 1342620284, 1342620236, 1342620211]} final : False mtd_id 4302 list_pids : [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412] Looping around the photos to save general results len do output : 1 /21234496. 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, '2655258') ('4302', '21234496', '1342625058', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342625027', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624995', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624961', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624740', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624700', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624677', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624636', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624596', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624554', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624217', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624157', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624081', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624016', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623705', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623650', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623601', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623526', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623447', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623412', None, None, None, None, None, '2655258') 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, '21234496', "{'autre_refus': 21234534, 'Carton_brun': 21234535, 'Teint_Dans_La_Masse': 21234536, 'kraft': 21234537, 'cartonnette': 21234538, 'environnement': 21234539, 'papier': 21234540, 'flou': 21234541, 'Carton_gris': 21234542, 'metal': 21234543, 'mal_croppe': 21234544, 'plastique': 21234545}", None, None, None, None, '2655258'), ('4302', '21234496', '1342625058', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342625027', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624995', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624961', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624740', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624700', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624677', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624636', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624596', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624554', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624217', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624157', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624081', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624016', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623705', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623650', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623601', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623526', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623447', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623412', None, None, None, None, None, '2655258')] time used for this insertion : 0.04428553581237793 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9957919120788574 time spend to save output : 0.04476475715637207 total time spend for step 1 : 3.0405566692352295 step2:final Mon Mar 10 19:13:01 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 (21234496) 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 21234496 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342620374,1342620334,1342620284,1342620236,1342620211,1342620603,1342620585,1342620562,1342621251,1342621195,1342621124,1342621050,1342621017,1342620980,1342621977,1342621869,1342621845,1342621812,1342622305,1342622285,1342622280,1342622260,1342622525,1342622506,1342622479,1342622458,1342622807,1342622783,1342622728,1342623705,1342623650,1342623601,1342623526,1342623447,1342623412,1342624217,1342624157,1342624081,1342624016,1342624740,1342624700,1342624677,1342624636,1342624596,1342624554,1342625058,1342625027,1342624995,1342624961); 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([21234496]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} new output for save of step final : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412] map_info['map_portfolio_photo'] : {21234496: [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412, 1342622807, 1342622783, 1342622728, 1342622525, 1342622506, 1342622479, 1342622458, 1342622305, 1342622285, 1342622280, 1342622260, 1342621977, 1342621869, 1342621845, 1342621812, 1342621251, 1342621195, 1342621124, 1342621050, 1342621017, 1342620980, 1342620603, 1342620585, 1342620562, 1342620374, 1342620334, 1342620284, 1342620236, 1342620211]} final : False mtd_id 4302 list_pids : [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412] Looping around the photos to save general results len do output : 20 /1342625058.Didn't retrieve data . /1342625027.Didn't retrieve data . /1342624995.Didn't retrieve data . /1342624961.Didn't retrieve data . /1342624740.Didn't retrieve data . /1342624700.Didn't retrieve data . /1342624677.Didn't retrieve data . /1342624636.Didn't retrieve data . /1342624596.Didn't retrieve data . /1342624554.Didn't retrieve data . /1342624217.Didn't retrieve data . /1342624157.Didn't retrieve data . /1342624081.Didn't retrieve data . /1342624016.Didn't retrieve data . /1342623705.Didn't retrieve data . /1342623650.Didn't retrieve data . /1342623601.Didn't retrieve data . /1342623526.Didn't retrieve data . /1342623447.Didn't retrieve data . /1342623412.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, '2655258') ('4302', '21234496', '1342625058', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342625027', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624995', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624961', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624740', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624700', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624677', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624636', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624596', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624554', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624217', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624157', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624081', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624016', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623705', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623650', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623601', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623526', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623447', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623412', None, None, None, None, None, '2655258') 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', '21234496', '1342625058', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342625027', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624995', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624961', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624740', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624700', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624677', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624636', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624596', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624554', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624217', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624157', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624081', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342624016', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342623705', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342623650', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342623601', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342623526', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342623447', '0.05340070817278385', None, None, None, None, '2655258'), ('4302', '21234496', '1342623412', '0.05340070817278385', None, None, None, None, '2655258')] time used for this insertion : 0.042786598205566406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24367427825927734 time spend to save output : 0.04380440711975098 total time spend for step 2 : 0.2874786853790283 step3:velours_tree Mon Mar 10 19:13:01 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 : {21234496: [{'autre_refus': 21234534, 'Carton_brun': 21234535, 'Teint_Dans_La_Masse': 21234536, 'kraft': 21234537, 'cartonnette': 21234538, 'environnement': 21234539, 'papier': 21234540, 'flou': 21234541, 'Carton_gris': 21234542, 'metal': 21234543, 'mal_croppe': 21234544, 'plastique': 21234545}]} input_args_next_step : {21234496: ()} output_args : {21234496: [{'autre_refus': 21234534, 'Carton_brun': 21234535, 'Teint_Dans_La_Masse': 21234536, 'kraft': 21234537, 'cartonnette': 21234538, 'environnement': 21234539, 'papier': 21234540, 'flou': 21234541, 'Carton_gris': 21234542, 'metal': 21234543, 'mal_croppe': 21234544, 'plastique': 21234545}]} args : 21234496 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'autre_refus': 21234534, 'Carton_brun': 21234535, 'Teint_Dans_La_Masse': 21234536, 'kraft': 21234537, 'cartonnette': 21234538, 'environnement': 21234539, 'papier': 21234540, 'flou': 21234541, 'Carton_gris': 21234542, 'metal': 21234543, 'mal_croppe': 21234544, 'plastique': 21234545},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21234496) 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([21234496]) 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.46480584144592285 time spend to save output : 5.1975250244140625e-05 total time spend for step 3 : 0.464857816696167 step4:send_mail_cod Mon Mar 10 19:13:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} input_args_next_step : {1342625058: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342625058 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342625027 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624995 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624961 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624740 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624700 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624677 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624636 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624596 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624554 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624217 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624157 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624081 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342624016 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342623705 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342623650 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342623601 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342623526 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342623447 depend.output_id : 0 input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ()} output_args : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',)} args : 1342623412 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 : {21234496: [{'autre_refus': 21234534, 'Carton_brun': 21234535, 'Teint_Dans_La_Masse': 21234536, 'kraft': 21234537, 'cartonnette': 21234538, 'environnement': 21234539, 'papier': 21234540, 'flou': 21234541, 'Carton_gris': 21234542, 'metal': 21234543, 'mal_croppe': 21234544, 'plastique': 21234545}]} input_args_next_step : {1342625058: ('0.05340070817278385',), 1342625027: ('0.05340070817278385',), 1342624995: ('0.05340070817278385',), 1342624961: ('0.05340070817278385',), 1342624740: ('0.05340070817278385',), 1342624700: ('0.05340070817278385',), 1342624677: ('0.05340070817278385',), 1342624636: ('0.05340070817278385',), 1342624596: ('0.05340070817278385',), 1342624554: ('0.05340070817278385',), 1342624217: ('0.05340070817278385',), 1342624157: ('0.05340070817278385',), 1342624081: ('0.05340070817278385',), 1342624016: ('0.05340070817278385',), 1342623705: ('0.05340070817278385',), 1342623650: ('0.05340070817278385',), 1342623601: ('0.05340070817278385',), 1342623526: ('0.05340070817278385',), 1342623447: ('0.05340070817278385',), 1342623412: ('0.05340070817278385',), 21234496: ()} output_args : {21234496: [{'autre_refus': 21234534, 'Carton_brun': 21234535, 'Teint_Dans_La_Masse': 21234536, 'kraft': 21234537, 'cartonnette': 21234538, 'environnement': 21234539, 'papier': 21234540, 'flou': 21234541, 'Carton_gris': 21234542, 'metal': 21234543, 'mal_croppe': 21234544, 'plastique': 21234545}]} args : 21234496 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.05340070817278385',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21234496) 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 (1342625058,1342625027,1342624995,1342624961,1342624740,1342624700,1342624677,1342624636,1342624596,1342624554,1342624217,1342624157,1342624081,1342624016,1342623705,1342623650,1342623601,1342623526,1342623447,1342623412) Found this number of photos: 20 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342623412 begin to download photo : 1342623705 begin to download photo : 1342624554 begin to download photo : 1342624740 download finish for photo 1342624554 begin to download photo : 1342624596 download finish for photo 1342624740 begin to download photo : 1342624961 download finish for photo 1342623412 begin to download photo : 1342623447 download finish for photo 1342623705 begin to download photo : 1342624016 download finish for photo 1342624596 begin to download photo : 1342624636 download finish for photo 1342624961 begin to download photo : 1342624995 download finish for photo 1342623447 begin to download photo : 1342623526 download finish for photo 1342624016 begin to download photo : 1342624081 download finish for photo 1342624636 begin to download photo : 1342624677 download finish for photo 1342624081 begin to download photo : 1342624157 download finish for photo 1342624995 begin to download photo : 1342625027 download finish for photo 1342623526 begin to download photo : 1342623601 download finish for photo 1342624677 begin to download photo : 1342624700 download finish for photo 1342625027 begin to download photo : 1342625058 download finish for photo 1342624157 begin to download photo : 1342624217 download finish for photo 1342623601 begin to download photo : 1342623650 download finish for photo 1342624700 download finish for photo 1342625058 download finish for photo 1342623650 download finish for photo 1342624217 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 results_Auto_P21234496_10-03-2025_19_13_02.pdf 21234534 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=21234534 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342623514: '1741630054_4038857_1342620284_37ced8f5b0975b4b9a26e8d77372affd_rle_crop_3703293967_0.png', 1342625325: '1741630346_208822_1342622305_398cd63f1dc5b48691c09e8163b28917_rle_crop_3703299550_0.png', 1342625198: '1741630273_4041240_1342623412_54a6abaed876bb765d67eebf48319931_rle_crop_3703299285_0.png', 1342625197: '1741630273_4041240_1342623412_54a6abaed876bb765d67eebf48319931_rle_crop_3703299282_0.png', 1342625196: '1741630273_4041240_1342623447_76cc368f778a2b0b4bf9b881549d2161_rle_crop_3703299173_0.png', 1342625195: '1741630273_4041240_1342623447_76cc368f778a2b0b4bf9b881549d2161_rle_crop_3703299167_0.png', 1342625194: '1741630273_4041240_1342623526_c2f09a538f98c31388079c4523d48ffe_rle_crop_3703299158_0.png', 1342625193: '1741630273_4041240_1342623601_9ab4b7993bae46295c7064c952bcfee1_rle_crop_3703299109_0.png', 1342625192: '1741630273_4041240_1342623650_5fb8d7340b79ac93c926c865f53f629a_rle_crop_3703299099_0.png', 1342625184: '1741630291_4041409_1342622728_6f7f1bab28422ed817074905503f1c7c_rle_crop_3703299297_0.png', 1342625182: '1741630291_4041409_1342622783_bf06cd91f2f76ba1244e6910ea530364_rle_crop_3703299270_0.png', 1342625181: '1741630291_4041409_1342623705_175bcd370980f5bf1a41c735c9b7ca80_rle_crop_3703299184_0.png', 1342623516: '1741630054_4038857_1342620211_b9d7afdea5bfdc75cc4aa0b614dbdf94_rle_crop_3703293993_0.png', 1342623515: '1741630054_4038857_1342620284_37ced8f5b0975b4b9a26e8d77372affd_rle_crop_3703293970_0.png', 1342622764: '1741630015_4038430_1342621869_c047d468caee95e94cade55aad591b62_rle_crop_3703293068_0.png', 1342623513: '1741630054_4038857_1342620334_2c3edf9e58a45548620fec2b44d38e07_rle_crop_3703293925_0.png', 1342623512: '1741630054_4038857_1342620374_e1e303c80093abb3718115088c9c3cf5_rle_crop_3703293882_0.png', 1342623506: '1741630054_4038857_1342620603_5a7c194c9980fb27e22d996e2fd6de4f_rle_crop_3703293854_0.png', 1342623244: '1741630033_4038648_1342620980_2705d26da9ba6fdefaa84bc304bf9912_rle_crop_3703293831_0.png', 1342623243: '1741630033_4038648_1342620980_2705d26da9ba6fdefaa84bc304bf9912_rle_crop_3703293827_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1b6deda17c631d15a2ca4bdaefa3e9d7_63912832.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/0f084f8b11cccd01030229d1d0712cce_11927894.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/dd1e655d0cb0d6ed604e80ed56bc7768_28415462.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2ebc120a1d227121b3692a8d180245ad_20926751.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3a2fe36c03301f61e2a0b56228e363b5_25200149.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b9d3e5292b0f06834ea9318cb6208ceb_38349418.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b9e79eb82af6e8994755446de11de385_54234733.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a290b310d015faa0fda35a817e7de4a1_52663698.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/71b68cf110d29169375035a6729e99d5_8113273.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a5faa21b64ff169cb64f1b8105136e2a_5672018.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/dc6264a48ded2515a2ab65db953662e4_50980434.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/681c6b7cd9bb0ea8693974f1d18317ad_89710121.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c04f9a8445933465803d3bda0161903e_86125174.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a0ff5ee63a81b156d7103798237cc351_54137107.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5117ad4d81852a9bf314da67634574b2_49920900.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6206479a31d425eda3cd439b813b399d_93675850.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f8c5c703e8c1677391df226db6ba38bc_45692863.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/98cb867aa84a7f90600c55394d9c9145_45526770.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4c2778a2fa939e77d91ce387ab380cc7_56515548.png change filename to text .imagette212345341741630382/ imagette212345341741630382/1741630273_4041240_1342623650_5fb8d7340b79ac93c926c865f53f629a_rle_crop_3703299099_0.png.png imagette212345341741630382/1741630054_4038857_1342620284_37ced8f5b0975b4b9a26e8d77372affd_rle_crop_3703293970_0.png.png imagette212345341741630382/1741630054_4038857_1342620211_b9d7afdea5bfdc75cc4aa0b614dbdf94_rle_crop_3703293993_0.png.png imagette212345341741630382/1741630291_4041409_1342622728_6f7f1bab28422ed817074905503f1c7c_rle_crop_3703299297_0.png.png imagette212345341741630382/1741630054_4038857_1342620334_2c3edf9e58a45548620fec2b44d38e07_rle_crop_3703293925_0.png.png imagette212345341741630382/1741630273_4041240_1342623447_76cc368f778a2b0b4bf9b881549d2161_rle_crop_3703299167_0.png.png imagette212345341741630382/1741630054_4038857_1342620374_e1e303c80093abb3718115088c9c3cf5_rle_crop_3703293882_0.png.png imagette212345341741630382/1741630346_208822_1342622305_398cd63f1dc5b48691c09e8163b28917_rle_crop_3703299550_0.png.png imagette212345341741630382/1741630273_4041240_1342623601_9ab4b7993bae46295c7064c952bcfee1_rle_crop_3703299109_0.png.png imagette212345341741630382/1741630054_4038857_1342620603_5a7c194c9980fb27e22d996e2fd6de4f_rle_crop_3703293854_0.png.png imagette212345341741630382/1741630015_4038430_1342621869_c047d468caee95e94cade55aad591b62_rle_crop_3703293068_0.png.png imagette212345341741630382/1741630054_4038857_1342620284_37ced8f5b0975b4b9a26e8d77372affd_rle_crop_3703293967_0.png.png imagette212345341741630382/1741630273_4041240_1342623412_54a6abaed876bb765d67eebf48319931_rle_crop_3703299285_0.png.png imagette212345341741630382/1741630273_4041240_1342623447_76cc368f778a2b0b4bf9b881549d2161_rle_crop_3703299173_0.png.png imagette212345341741630382/1741630291_4041409_1342623705_175bcd370980f5bf1a41c735c9b7ca80_rle_crop_3703299184_0.png.png imagette212345341741630382/1741630291_4041409_1342622783_bf06cd91f2f76ba1244e6910ea530364_rle_crop_3703299270_0.png.png imagette212345341741630382/1741630273_4041240_1342623412_54a6abaed876bb765d67eebf48319931_rle_crop_3703299282_0.png.png imagette212345341741630382/1741630273_4041240_1342623526_c2f09a538f98c31388079c4523d48ffe_rle_crop_3703299158_0.png.png imagette212345341741630382/1741630033_4038648_1342620980_2705d26da9ba6fdefaa84bc304bf9912_rle_crop_3703293827_0.png.png imagette212345341741630382/1741630033_4038648_1342620980_2705d26da9ba6fdefaa84bc304bf9912_rle_crop_3703293831_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/cc8e039e90c372515f010b44982fe7db_59219246.png imagette212345341741630382 21234537 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=21234537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342625264: '1741630273_4041240_1342623601_9ab4b7993bae46295c7064c952bcfee1_rle_crop_3703299106_0.png'} change filename to text .imagette212345371741630383/ imagette212345371741630383/1741630273_4041240_1342623601_9ab4b7993bae46295c7064c952bcfee1_rle_crop_3703299106_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2259dbec7d4ac2283526d73e277a78e4_51224851.png imagette212345371741630383 21234538 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=21234538 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342622771: '1741630015_4038430_1342621869_c047d468caee95e94cade55aad591b62_rle_crop_3703293075_0.png', 1342622772: '1741630015_4038430_1342621869_c047d468caee95e94cade55aad591b62_rle_crop_3703293070_0.png', 1342623540: '1741630054_4038857_1342620334_2c3edf9e58a45548620fec2b44d38e07_rle_crop_3703293919_0.png', 1342623546: '1741630054_4038857_1342620334_2c3edf9e58a45548620fec2b44d38e07_rle_crop_3703293917_0.png', 1342625214: '1741630273_4041240_1342623412_54a6abaed876bb765d67eebf48319931_rle_crop_3703299277_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/150cd737052c282e1bace9816aa4d851_18773866.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4e75bba390c835ddfcb77e1a74bf959d_72326584.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5832377c693fbd694e12d4f9d13f7b34_14360920.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a59f18cd518cc8c0dac0eedfad329b01_89232158.png change filename to text .imagette212345381741630383/ imagette212345381741630383/1741630015_4038430_1342621869_c047d468caee95e94cade55aad591b62_rle_crop_3703293075_0.png.png imagette212345381741630383/1741630054_4038857_1342620334_2c3edf9e58a45548620fec2b44d38e07_rle_crop_3703293917_0.png.png imagette212345381741630383/1741630273_4041240_1342623412_54a6abaed876bb765d67eebf48319931_rle_crop_3703299277_0.png.png imagette212345381741630383/1741630015_4038430_1342621869_c047d468caee95e94cade55aad591b62_rle_crop_3703293070_0.png.png imagette212345381741630383/1741630054_4038857_1342620334_2c3edf9e58a45548620fec2b44d38e07_rle_crop_3703293919_0.png.png imagette212345411741630384/ imagette212345431741630384/ imagette212345441741630384/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3958038153b51109ea6d645b000783c5_93260284.png imagette212345381741630383 21234541 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=21234541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212345411741630384 21234543 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=21234543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212345431741630384 21234544 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=21234544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212345441741630384 21234545 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=21234545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342623604: '1741630054_4038857_1342620603_5a7c194c9980fb27e22d996e2fd6de4f_rle_crop_3703293843_0.png', 1342623605: '1741630054_4038857_1342620603_5a7c194c9980fb27e22d996e2fd6de4f_rle_crop_3703293848_0.png', 1342623606: '1741630054_4038857_1342620284_37ced8f5b0975b4b9a26e8d77372affd_rle_crop_3703293962_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6596138616dad4d01ee85a33fd544998_61649009.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/affc9cfc79b66f76cbc31af0a8d426fb_20034165.png change filename to text .imagette212345451741630384/ imagette212345451741630384/1741630054_4038857_1342620603_5a7c194c9980fb27e22d996e2fd6de4f_rle_crop_3703293843_0.png.png imagette212345451741630384/1741630054_4038857_1342620284_37ced8f5b0975b4b9a26e8d77372affd_rle_crop_3703293962_0.png.png imagette212345451741630384/1741630054_4038857_1342620603_5a7c194c9980fb27e22d996e2fd6de4f_rle_crop_3703293848_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/54563d8abcd613e39f07654b4b6212cb_4464620.png imagette212345451741630384 21234535 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=21234535 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342623289: '1741630033_4038648_1342621977_1ede56b90e132efe28d2bfb93c68e48b_rle_crop_3703293677_0.png', 1342623292: '1741630033_4038648_1342621124_a2edb53909a5b6d7cb06dc9f9aaafb8d_rle_crop_3703293709_0.png', 1342623293: '1741630033_4038648_1342621050_ec1c607977f18248d34cd6f72f2184b0_rle_crop_3703293723_0.png', 1342623294: '1741630033_4038648_1342621017_8ae2cbbec005bbca41c2df9a812888ca_rle_crop_3703293777_0.png', 1342623572: '1741630054_4038857_1342620603_5a7c194c9980fb27e22d996e2fd6de4f_rle_crop_3703293849_0.png', 1342623575: '1741630054_4038857_1342620211_b9d7afdea5bfdc75cc4aa0b614dbdf94_rle_crop_3703293989_0.png', 1342625228: '1741630273_4041240_1342623601_9ab4b7993bae46295c7064c952bcfee1_rle_crop_3703299108_0.png', 1342625229: '1741630273_4041240_1342623526_c2f09a538f98c31388079c4523d48ffe_rle_crop_3703299152_0.png', 1342625230: '1741630273_4041240_1342623447_76cc368f778a2b0b4bf9b881549d2161_rle_crop_3703299169_0.png', 1342625338: '1741630346_208822_1342622305_398cd63f1dc5b48691c09e8163b28917_rle_crop_3703299541_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1bc6e301f07b2d224395c5f88d0d91a6_62224588.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/99563ebf1d55991ce4239f5c4d7fecc7_26427174.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5be308bee84f25e46ff4d536b718497e_68015170.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f389f0fcd348c60fb2b9d7800505ff39_75962477.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/ff29d9588187e1be22d9000684a53e90_32655825.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/238062a58bd1ae8bb970b1c4d6272e55_34754566.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e8965aa3df9708d1500ea3ffeeb7d07f_47960403.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/dd3f34b169c0ab8ec5bf5b24e6dc6777_14867741.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/08e6cafd57600857353b763fa619c8a0_85230209.png change filename to text .imagette212345351741630384/ imagette212345351741630384/1741630273_4041240_1342623601_9ab4b7993bae46295c7064c952bcfee1_rle_crop_3703299108_0.png.png imagette212345351741630384/1741630054_4038857_1342620603_5a7c194c9980fb27e22d996e2fd6de4f_rle_crop_3703293849_0.png.png imagette212345351741630384/1741630033_4038648_1342621977_1ede56b90e132efe28d2bfb93c68e48b_rle_crop_3703293677_0.png.png imagette212345351741630384/1741630033_4038648_1342621124_a2edb53909a5b6d7cb06dc9f9aaafb8d_rle_crop_3703293709_0.png.png imagette212345351741630384/1741630346_208822_1342622305_398cd63f1dc5b48691c09e8163b28917_rle_crop_3703299541_0.png.png imagette212345351741630384/1741630054_4038857_1342620211_b9d7afdea5bfdc75cc4aa0b614dbdf94_rle_crop_3703293989_0.png.png imagette212345351741630384/1741630033_4038648_1342621050_ec1c607977f18248d34cd6f72f2184b0_rle_crop_3703293723_0.png.png imagette212345351741630384/1741630033_4038648_1342621017_8ae2cbbec005bbca41c2df9a812888ca_rle_crop_3703293777_0.png.png imagette212345351741630384/1741630273_4041240_1342623447_76cc368f778a2b0b4bf9b881549d2161_rle_crop_3703299169_0.png.png imagette212345351741630384/1741630273_4041240_1342623526_c2f09a538f98c31388079c4523d48ffe_rle_crop_3703299152_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/ba596351bd9db4a9c0015451313eea74_37152451.png imagette212345351741630384 21234536 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=21234536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342622755: '1741630015_4038430_1342621869_c047d468caee95e94cade55aad591b62_rle_crop_3703293074_0.png', 1342623118: '1741630033_4038648_1342621124_a2edb53909a5b6d7cb06dc9f9aaafb8d_rle_crop_3703293705_0.png', 1342623119: '1741630033_4038648_1342621050_ec1c607977f18248d34cd6f72f2184b0_rle_crop_3703293720_0.png', 1342623121: '1741630033_4038648_1342621017_8ae2cbbec005bbca41c2df9a812888ca_rle_crop_3703293779_0.png', 1342623124: '1741630033_4038648_1342620980_2705d26da9ba6fdefaa84bc304bf9912_rle_crop_3703293829_0.png', 1342623430: '1741630054_4038857_1342620603_5a7c194c9980fb27e22d996e2fd6de4f_rle_crop_3703293847_0.png', 1342623433: '1741630054_4038857_1342620374_e1e303c80093abb3718115088c9c3cf5_rle_crop_3703293883_0.png', 1342625174: '1741630273_4041240_1342623650_5fb8d7340b79ac93c926c865f53f629a_rle_crop_3703299095_0.png', 1342625175: '1741630273_4041240_1342623526_c2f09a538f98c31388079c4523d48ffe_rle_crop_3703299153_0.png', 1342625310: '1741630346_208822_1342622305_398cd63f1dc5b48691c09e8163b28917_rle_crop_3703299551_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/12ea1b67ee841960376b1c966de32ee3_14775325.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3d138c63ab367d6e990a73d7660a8a6f_69190342.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e851f06c3182e3b5950d1b35a4345b16_70036052.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9a156fd235fcca1bf5af7cd27f6ec3b3_66755897.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/edaf2752eb7800d219fa87f2de2f1469_2465444.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/23c13237529c49ee2dc30a7b79305a93_78944922.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b90dc37230e1611abce6715023c6b104_35737397.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9e8ae9898db898d6573179d31ce5ca8e_12366183.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/97338468558216c3d6927b2433f885e7_22512128.png change filename to text .imagette212345361741630384/ imagette212345361741630384/1741630033_4038648_1342621124_a2edb53909a5b6d7cb06dc9f9aaafb8d_rle_crop_3703293705_0.png.png imagette212345361741630384/1741630015_4038430_1342621869_c047d468caee95e94cade55aad591b62_rle_crop_3703293074_0.png.png imagette212345361741630384/1741630054_4038857_1342620374_e1e303c80093abb3718115088c9c3cf5_rle_crop_3703293883_0.png.png imagette212345361741630384/1741630346_208822_1342622305_398cd63f1dc5b48691c09e8163b28917_rle_crop_3703299551_0.png.png imagette212345361741630384/1741630273_4041240_1342623650_5fb8d7340b79ac93c926c865f53f629a_rle_crop_3703299095_0.png.png imagette212345361741630384/1741630033_4038648_1342620980_2705d26da9ba6fdefaa84bc304bf9912_rle_crop_3703293829_0.png.png imagette212345361741630384/1741630054_4038857_1342620603_5a7c194c9980fb27e22d996e2fd6de4f_rle_crop_3703293847_0.png.png imagette212345361741630384/1741630033_4038648_1342621050_ec1c607977f18248d34cd6f72f2184b0_rle_crop_3703293720_0.png.png imagette212345361741630384/1741630273_4041240_1342623526_c2f09a538f98c31388079c4523d48ffe_rle_crop_3703299153_0.png.png imagette212345361741630384/1741630033_4038648_1342621017_8ae2cbbec005bbca41c2df9a812888ca_rle_crop_3703293779_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/830cc0480001df812b0f0493bbc7db38_35328618.png imagette212345361741630384 21234542 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=21234542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342623265: '1741630033_4038648_1342621124_a2edb53909a5b6d7cb06dc9f9aaafb8d_rle_crop_3703293707_0.png', 1342623266: '1741630033_4038648_1342621017_8ae2cbbec005bbca41c2df9a812888ca_rle_crop_3703293773_0.png', 1342623521: '1741630054_4038857_1342620374_e1e303c80093abb3718115088c9c3cf5_rle_crop_3703293877_0.png', 1342625205: '1741630273_4041240_1342623447_76cc368f778a2b0b4bf9b881549d2161_rle_crop_3703299170_0.png', 1342625206: '1741630273_4041240_1342623412_54a6abaed876bb765d67eebf48319931_rle_crop_3703299280_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8108026bb2998bbca52aa9c459a44fcb_99418975.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/14323152b7f9c59f2a2f76b4918e8fe7_12125751.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/15c9703f0085ee722fe6470fea2459a2_4106592.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/30f5ba2f6015413fdedfe9df16ac4a1c_58692908.png change filename to text .imagette212345421741630385/ imagette212345421741630385/1741630033_4038648_1342621124_a2edb53909a5b6d7cb06dc9f9aaafb8d_rle_crop_3703293707_0.png.png imagette212345421741630385/1741630273_4041240_1342623447_76cc368f778a2b0b4bf9b881549d2161_rle_crop_3703299170_0.png.png imagette212345421741630385/1741630033_4038648_1342621017_8ae2cbbec005bbca41c2df9a812888ca_rle_crop_3703293773_0.png.png imagette212345421741630385/1741630054_4038857_1342620374_e1e303c80093abb3718115088c9c3cf5_rle_crop_3703293877_0.png.png imagette212345421741630385/1741630273_4041240_1342623412_54a6abaed876bb765d67eebf48319931_rle_crop_3703299280_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d46bdf39cf59f0dd1150c90de16aca50_98350435.png imagette212345421741630385 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21234496 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21234546,21234547,21234548,21234549,21234550,21234551,21234552,21234553,21234554,21234555,21234560,21234569?tags=autre_refus,Carton_brun,Teint_Dans_La_Masse,kraft,cartonnette,environnement,papier,flou,Carton_gris,metal,mal_croppe,plastique your option no_mail is active, we will not send the real mail to your client args[1342625058] : ('0.05340070817278385',) no score found for photo 1342625058 We are sending mail with results at report@fotonower.com args[1342625027] : ('0.05340070817278385',) no score found for photo 1342625027 We are sending mail with results at report@fotonower.com args[1342624995] : ('0.05340070817278385',) no score found for photo 1342624995 We are sending mail with results at report@fotonower.com args[1342624961] : ('0.05340070817278385',) no score found for photo 1342624961 We are sending mail with results at report@fotonower.com args[1342624740] : ('0.05340070817278385',) no score found for photo 1342624740 We are sending mail with results at report@fotonower.com args[1342624700] : ('0.05340070817278385',) no score found for photo 1342624700 We are sending mail with results at report@fotonower.com args[1342624677] : ('0.05340070817278385',) no score found for photo 1342624677 We are sending mail with results at report@fotonower.com args[1342624636] : ('0.05340070817278385',) no score found for photo 1342624636 We are sending mail with results at report@fotonower.com args[1342624596] : ('0.05340070817278385',) no score found for photo 1342624596 We are sending mail with results at report@fotonower.com args[1342624554] : ('0.05340070817278385',) no score found for photo 1342624554 We are sending mail with results at report@fotonower.com args[1342624217] : ('0.05340070817278385',) no score found for photo 1342624217 We are sending mail with results at report@fotonower.com args[1342624157] : ('0.05340070817278385',) no score found for photo 1342624157 We are sending mail with results at report@fotonower.com args[1342624081] : ('0.05340070817278385',) no score found for photo 1342624081 We are sending mail with results at report@fotonower.com args[1342624016] : ('0.05340070817278385',) no score found for photo 1342624016 We are sending mail with results at report@fotonower.com args[1342623705] : ('0.05340070817278385',) no score found for photo 1342623705 We are sending mail with results at report@fotonower.com args[1342623650] : ('0.05340070817278385',) no score found for photo 1342623650 We are sending mail with results at report@fotonower.com args[1342623601] : ('0.05340070817278385',) no score found for photo 1342623601 We are sending mail with results at report@fotonower.com args[1342623526] : ('0.05340070817278385',) no score found for photo 1342623526 We are sending mail with results at report@fotonower.com args[1342623447] : ('0.05340070817278385',) no score found for photo 1342623447 We are sending mail with results at report@fotonower.com args[1342623412] : ('0.05340070817278385',) no score found for photo 1342623412 We are sending mail with results at report@fotonower.com refus_total : 0.05340070817278385 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=21234496 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_P21234496_10-03-2025_19_13_02.pdf results_Auto_P21234496_10-03-2025_19_13_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21234496_10-03-2025_19_13_02.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','21234496','results_Auto_P21234496_10-03-2025_19_13_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21234496_10-03-2025_19_13_02.pdf','pdf','','0.3','0.05340070817278385') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21234496]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412] map_info['map_portfolio_photo'] : {21234496: [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412, 1342622807, 1342622783, 1342622728, 1342622525, 1342622506, 1342622479, 1342622458, 1342622305, 1342622285, 1342622280, 1342622260, 1342621977, 1342621869, 1342621845, 1342621812, 1342621251, 1342621195, 1342621124, 1342621050, 1342621017, 1342620980, 1342620603, 1342620585, 1342620562, 1342620374, 1342620334, 1342620284, 1342620236, 1342620211]} final : False mtd_id 4302 list_pids : [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412] 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, '2655258') ('4302', '21234496', '1342625058', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342625027', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624995', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624961', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624740', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624700', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624677', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624636', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624596', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624554', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624217', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624157', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624081', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624016', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623705', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623650', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623601', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623526', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623447', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623412', None, None, None, None, None, '2655258') 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', '21234496', '1342625058', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342625027', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624995', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624961', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624740', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624700', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624677', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624636', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624596', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624554', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624217', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624157', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624081', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624016', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623705', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623650', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623601', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623526', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623447', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623412', None, None, None, None, None, '2655258')] time used for this insertion : 0.04831862449645996 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.8203816413879395 time spend to save output : 0.04865574836730957 total time spend for step 4 : 5.869037389755249 step5:split_time_score Mon Mar 10 19:13: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 : ['21234496'] 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 : [('21234496',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21234496) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342624554: {'path': 'temp/1741630382_189292_1342624554_53768e6563f2580f8efe298e4ffb2717.jpg', 'extension': 'jpg'}, 1342624596: {'path': 'temp/1741630382_189292_1342624596_3d1077a95fdaf1ef821f882c0baadca1.jpg', 'extension': 'jpg'}, 1342624636: {'path': 'temp/1741630382_189292_1342624636_cde43b172aa495219f9ef8213197b438.jpg', 'extension': 'jpg'}, 1342624677: {'path': 'temp/1741630382_189292_1342624677_848e744ec6ea32337be3f87198e29694.jpg', 'extension': 'jpg'}, 1342624700: {'path': 'temp/1741630382_189292_1342624700_e8fac3d7de8a177300adbe8ae8772cf1.jpg', 'extension': 'jpg'}, 1342624740: {'path': 'temp/1741630382_189292_1342624740_f40a34a85968323c03c78226dcd7467a.jpg', 'extension': 'jpg'}, 1342624961: {'path': 'temp/1741630382_189292_1342624961_50e9bd2f0dc3c62b1409f4cd32ca0900.jpg', 'extension': 'jpg'}, 1342624995: {'path': 'temp/1741630382_189292_1342624995_773b4a362fd165fce6910d5196ae5863.jpg', 'extension': 'jpg'}, 1342625027: {'path': 'temp/1741630382_189292_1342625027_d7fd83ca15993b2da0d54c4e97bbfae9.jpg', 'extension': 'jpg'}, 1342625058: {'path': 'temp/1741630382_189292_1342625058_97308a9d5abf9a43b3597d2791577904.jpg', 'extension': 'jpg'}, 1342623412: {'path': 'temp/1741630382_189292_1342623412_54a6abaed876bb765d67eebf48319931.jpg', 'extension': 'jpg'}, 1342623447: {'path': 'temp/1741630382_189292_1342623447_76cc368f778a2b0b4bf9b881549d2161.jpg', 'extension': 'jpg'}, 1342623526: {'path': 'temp/1741630382_189292_1342623526_c2f09a538f98c31388079c4523d48ffe.jpg', 'extension': 'jpg'}, 1342623601: {'path': 'temp/1741630382_189292_1342623601_9ab4b7993bae46295c7064c952bcfee1.jpg', 'extension': 'jpg'}, 1342623650: {'path': 'temp/1741630382_189292_1342623650_5fb8d7340b79ac93c926c865f53f629a.jpg', 'extension': 'jpg'}, 1342623705: {'path': 'temp/1741630382_189292_1342623705_175bcd370980f5bf1a41c735c9b7ca80.jpg', 'extension': 'jpg'}, 1342624016: {'path': 'temp/1741630382_189292_1342624016_9a2eb9a98c920af90cee04bd6a3269d7.jpg', 'extension': 'jpg'}, 1342624081: {'path': 'temp/1741630382_189292_1342624081_aeadc7160294f29391cab20d24e41cdc.jpg', 'extension': 'jpg'}, 1342624157: {'path': 'temp/1741630382_189292_1342624157_aaefc2d16d74b372a36e53afadf94b24.jpg', 'extension': 'jpg'}, 1342624217: {'path': 'temp/1741630382_189292_1342624217_00f2eff927caff48ade06237c5d61d5e.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 = 21234496; (('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 = 21234496 group by h (('19', 49),) 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=21234496 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 (21234496) 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 (21234496) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10032025 21234496 Nombre de photos uploadées : 49 / 23040 (0%) 10032025 21234496 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 10032025 21234496 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1342620374, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e1e303c80093abb3718115088c9c3cf5.jpg', 'username': None, 'uploaded_at': 1741629712, 'text': 'image_10032025_19_00_04_010143m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342620334, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2c3edf9e58a45548620fec2b44d38e07.jpg', 'username': None, 'uploaded_at': 1741629712, 'text': 'image_10032025_19_00_13_009125m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342620284, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/37ced8f5b0975b4b9a26e8d77372affd.jpg', 'username': None, 'uploaded_at': 1741629712, 'text': 'image_10032025_19_00_23_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342620236, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/35d6fd807a2c1be166d1658d1bab7318.jpg', 'username': None, 'uploaded_at': 1741629712, 'text': 'image_10032025_19_00_34_010136m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021848678588867188 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21234496, '2025-03-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1654691,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.09081268310546875 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1654691 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663306, 'mtr_portfolio_id': 21232212, 'dashboard_result_id': 9317476, '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_P21232212_10-03-2025_18_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21232305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232316, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663306, 'mtr_portfolio_id': 21232960, 'dashboard_result_id': 9317477, '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_P21232960_10-03-2025_18_48_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21232970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232972, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663306, 'mtr_portfolio_id': 21233690, 'dashboard_result_id': 9317478, '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_P21233690_10-03-2025_19_05_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21233725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21233726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21233727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21233728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21233729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21233731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21233733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21233735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21233738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21233740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21233742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21233744, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663306, 'mtr_portfolio_id': 21234496, 'dashboard_result_id': 9317479, '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_P21234496_10-03-2025_19_09_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21234534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21234535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21234536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21234537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21234538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21234539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21234540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21234541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21234542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21234543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21234544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21234545, '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 = 21232212 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': 2655118, 'mtr_portfolio_id': 21232212, 'created_at': datetime.datetime(2025, 3, 10, 18, 32, 59), 'result': '0.06395025259819843', 'result_long': None, 'result_double': None}] Qualite : 0.06395025259819843 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21232212 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21232212_10-03-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21232212 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_P21232212_10-03-2025_18_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21232305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232316, 'pht': 3726}}" where mtr_portfolio_id = 21232212 and dashboard_run_id = 1663306 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`=21232212 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9317476, 0.06395025259819843, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21232212_10-03-2025_18_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21232305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232316, '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 = 21232960 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': 2655167, 'mtr_portfolio_id': 21232960, 'created_at': datetime.datetime(2025, 3, 10, 18, 47, 59), 'result': '0.06838148498861933', 'result_long': None, 'result_double': None}] Qualite : 0.06838148498861933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21232960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21232960_10-03-2025_18_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21232960 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_P21232960_10-03-2025_18_48_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21232970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232972, 'pht': 3726}}" where mtr_portfolio_id = 21232960 and dashboard_run_id = 1663306 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`=21232960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9317477, 0.06838148498861933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21232960_10-03-2025_18_48_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21232961, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21232962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21232963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21232964, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21232965, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21232966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21232967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21232968, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21232969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21232970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21232971, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21232972, '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 = 21233690 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': 2655202, 'mtr_portfolio_id': 21233690, 'created_at': datetime.datetime(2025, 3, 10, 19, 5, 1), 'result': '0.0764304226530256', 'result_long': None, 'result_double': None}] Qualite : 0.0764304226530256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21233690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21233690_10-03-2025_19_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21233690 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_P21233690_10-03-2025_19_05_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21233725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21233726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21233727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21233728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21233729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21233731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21233733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21233735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21233738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21233740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21233742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21233744, 'pht': 3726}}" where mtr_portfolio_id = 21233690 and dashboard_run_id = 1663306 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`=21233690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9317478, 0.0764304226530256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21233690_10-03-2025_19_05_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21233725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21233726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21233727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21233728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21233729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21233731, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21233733, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21233735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21233738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21233740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21233742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21233744, '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 = 21234496 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': 2655258, 'mtr_portfolio_id': 21234496, 'created_at': datetime.datetime(2025, 3, 10, 19, 13, 1), 'result': '0.05340070817278385', 'result_long': None, 'result_double': None}] Qualite : 0.05340070817278385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21234496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21234496_10-03-2025_19_13_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21234496 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_P21234496_10-03-2025_19_13_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21234534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21234535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21234536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21234537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21234538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21234539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21234540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21234541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21234542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21234543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21234544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21234545, 'pht': 3726}}" where mtr_portfolio_id = 21234496 and dashboard_run_id = 1663306 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`=21234496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9317479, 0.05340070817278385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21234496_10-03-2025_19_13_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21234534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21234535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21234536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21234537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21234538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21234539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21234540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21234541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21234542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21234543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21234544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21234545, '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 (21232212,21232960,21233690,21234496) result : ((1342606531,), (1342606545,), (1342606581,), (1342606846,), (1342606860,), (1342606864,), (1342606868,), (1342606872,), (1342606988,), (1342607005,), (1342607027,), (1342607041,), (1342607065,), (1342607202,), (1342607237,), (1342607255,), (1342607263,), (1342607280,), (1342607359,), (1342607536,), (1342607544,), (1342607565,), (1342607570,), (1342607759,), (1342607764,), (1342607774,), (1342607783,), (1342607794,), (1342607799,), (1342607878,), (1342607887,), (1342607894,), (1342607936,), (1342608117,), (1342608135,), (1342608160,), (1342608178,), (1342608200,), (1342608223,), (1342608449,), (1342608500,), (1342608524,), (1342608538,), (1342608773,), (1342608798,), (1342608830,), (1342608852,), (1342608866,), (1342608890,), (1342609148,), (1342609168,), (1342609195,), (1342609215,), (1342609421,), (1342609447,), (1342609478,), (1342609548,), (1342609600,), (1342609645,), (1342609843,), (1342609955,), (1342610000,), (1342610038,), (1342610063,), (1342610076,), (1342610191,), (1342610235,), (1342610289,), (1342610347,), (1342610561,), (1342610591,), (1342610617,), (1342610641,), (1342610682,), (1342610702,), (1342611036,), (1342610894,), (1342610936,), (1342610952,), (1342611009,), (1342611132,), (1342611138,), (1342611144,), (1342611148,), (1342611153,), (1342611157,), (1342611182,), (1342611202,), (1342611207,), (1342611212,), (1342611257,), (1342611261,), (1342611277,), (1342611300,), (1342611322,), (1342611335,), (1342611417,), (1342611449,), (1342611511,), (1342611515,), (1342611538,), (1342611564,), (1342611588,), (1342611620,), (1342611636,), (1342611815,), (1342611889,), (1342611902,), (1342611916,), (1342611976,), (1342612027,), (1342612291,), (1342612351,), (1342612434,), (1342612490,), (1342612733,), (1342612758,), (1342612787,), (1342612798,), (1342612804,), (1342612820,), (1342613008,), (1342613030,), (1342613078,), (1342613164,), (1342613475,), (1342613514,), (1342613544,), (1342613580,), (1342613655,), (1342613696,), (1342613845,), (1342613884,), (1342613923,), (1342613930,), (1342613935,), (1342613944,), (1342613991,), (1342613996,), (1342614002,), (1342614010,), (1342614069,), (1342614112,), (1342614150,), (1342614186,), (1342614225,), (1342614289,), (1342614683,), (1342614733,), (1342614772,), (1342614814,), (1342615062,), (1342614906,), (1342614915,), (1342614920,), (1342614928,), (1342614941,), (1342615271,), (1342615277,), (1342615284,), (1342615458,), (1342615462,), (1342615467,), (1342615473,), (1342615477,), (1342615478,), (1342615495,), (1342615499,), (1342615502,), (1342615506,), (1342615511,), (1342615692,), (1342615751,), (1342615789,), (1342615817,), (1342615852,), (1342615887,), (1342616012,), (1342616022,), (1342616026,), (1342616031,), (1342616035,), (1342616151,), (1342616169,), (1342616194,), (1342616236,), (1342616251,), (1342616265,), (1342616331,), (1342616334,), (1342616338,), (1342616341,), (1342616442,), (1342616448,), (1342616480,), (1342616490,), (1342616515,), (1342616556,), (1342616710,), (1342616804,), (1342616832,), (1342616865,), (1342616909,), (1342617002,), (1342617369,), (1342617410,), (1342617443,), (1342617474,), (1342617514,), (1342617834,), (1342617879,), (1342617957,), (1342617978,), (1342618057,), (1342618160,), (1342618201,), (1342618223,), (1342618268,), (1342618331,), (1342618367,), (1342618422,), (1342618658,), (1342618681,), (1342618718,), (1342619200,), (1342619621,), (1342619709,), (1342619755,), (1342619788,), (1342619829,), (1342619887,), (1342619994,), (1342620029,), (1342620081,), (1342620406,), (1342620211,), (1342620236,), (1342620284,), (1342620334,), (1342620374,), (1342620562,), (1342620585,), (1342620603,), (1342620980,), (1342621017,), (1342621050,), (1342621124,), (1342621195,), (1342621251,), (1342621812,), (1342621845,), (1342621869,), (1342621977,), (1342622260,), (1342622280,), (1342622285,), (1342622305,), (1342622458,), (1342622479,), (1342622506,), (1342622525,), (1342622728,), (1342622783,), (1342622807,), (1342623412,), (1342623447,), (1342623526,), (1342623601,), (1342623650,), (1342623705,), (1342624016,), (1342624081,), (1342624157,), (1342624217,), (1342624554,), (1342624596,), (1342624636,), (1342624677,), (1342624700,), (1342624740,), (1342624961,), (1342624995,), (1342625027,), (1342625058,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10032025': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21234496]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412] map_info['map_portfolio_photo'] : {21234496: [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412, 1342622807, 1342622783, 1342622728, 1342622525, 1342622506, 1342622479, 1342622458, 1342622305, 1342622285, 1342622280, 1342622260, 1342621977, 1342621869, 1342621845, 1342621812, 1342621251, 1342621195, 1342621124, 1342621050, 1342621017, 1342620980, 1342620603, 1342620585, 1342620562, 1342620374, 1342620334, 1342620284, 1342620236, 1342620211]} final : True mtd_id 4302 list_pids : [1342625058, 1342625027, 1342624995, 1342624961, 1342624740, 1342624700, 1342624677, 1342624636, 1342624596, 1342624554, 1342624217, 1342624157, 1342624081, 1342624016, 1342623705, 1342623650, 1342623601, 1342623526, 1342623447, 1342623412] Looping around the photos to save general results len do output : 1 /21234496Didn'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, '2655258') ('4302', '21234496', '1342625058', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342625027', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624995', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624961', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624740', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624700', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624677', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624636', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624596', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624554', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624217', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624157', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624081', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342624016', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623705', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623650', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623601', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623526', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623447', None, None, None, None, None, '2655258') ('4302', None, None, None, None, None, None, None, '2655258') ('4302', '21234496', '1342623412', None, None, None, None, None, '2655258') 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, '21234496', 'None', None, None, None, None, '2655258'), ('4302', '21234496', '1342625058', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342625027', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624995', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624961', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624740', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624700', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624677', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624636', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624596', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624554', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624217', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624157', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624081', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342624016', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623705', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623650', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623601', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623526', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623447', None, None, None, None, None, '2655258'), ('4302', '21234496', '1342623412', None, None, None, None, None, '2655258')] time used for this insertion : 0.03577113151550293 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1394836902618408 time spend to save output : 0.03610944747924805 total time spend for step 5 : 1.1755931377410889 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 (2655258) 2.59user 2.09system 0:14.66elapsed 31%CPU (0avgtext+0avgdata 160676maxresident)k 31768inputs+18312outputs (228major+77971minor)pagefaults 0swaps