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 : 1899151 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 (2557366) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2557366) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279384 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2557366'] with mtr_portfolio_ids : ['20279384'] and first list_photo_ids : [] new path : /proc/1899151/ Name: python3 Umask: 0002 State: R (running) Tgid: 1899151 Ngid: 0 Pid: 1899151 PPid: 1899150 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1899151 NSpid: 1899151 NSpgid: 1897989 NSsid: 1897989 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99092 kB VmRSS: 99092 kB RssAnon: 59756 kB RssFile: 39336 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 55 nonvoluntary_ctxt_switches: 44 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1899151', 'Ngid': '0', 'Pid': '1899151', 'PPid': '1899150', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1899151', 'NSpid': '1899151', 'NSpgid': '1897989', 'NSsid': '1897989', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99092 kB', 'VmRSS': '99092 kB', 'RssAnon': '59756 kB', 'RssFile': '39336 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '55', 'nonvoluntary_ctxt_switches': '44'} ('datou_batch_current', '1899151', '1106932', '0', '1106932', '865684', '99092', b'', 'marlene', '2557366') 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 (20279384) 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 (2557366 ) ) 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 (20279384) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1335092537, 'portfolio_id': 20279384}, {'photo_id': 1335092536, 'portfolio_id': 20279384}, {'photo_id': 1335092531, 'portfolio_id': 20279384}, {'photo_id': 1335092530, 'portfolio_id': 20279384}, {'photo_id': 1335092523, 'portfolio_id': 20279384}, {'photo_id': 1335092522, 'portfolio_id': 20279384}, {'photo_id': 1335092495, 'portfolio_id': 20279384}, {'photo_id': 1335092492, 'portfolio_id': 20279384}, {'photo_id': 1335092489, 'portfolio_id': 20279384}, {'photo_id': 1335092487, 'portfolio_id': 20279384}, {'photo_id': 1335092479, 'portfolio_id': 20279384}, {'photo_id': 1335092478, 'portfolio_id': 20279384}, {'photo_id': 1335092326, 'portfolio_id': 20279384}, {'photo_id': 1335092167, 'portfolio_id': 20279384}, {'photo_id': 1335092066, 'portfolio_id': 20279384}, {'photo_id': 1335092029, 'portfolio_id': 20279384}, {'photo_id': 1335091948, 'portfolio_id': 20279384}, {'photo_id': 1335091757, 'portfolio_id': 20279384}, {'photo_id': 1335091753, 'portfolio_id': 20279384}, {'photo_id': 1335091751, 'portfolio_id': 20279384}, {'photo_id': 1335091750, 'portfolio_id': 20279384}, {'photo_id': 1335091601, 'portfolio_id': 20279384}, {'photo_id': 1335091600, 'portfolio_id': 20279384}, {'photo_id': 1335091593, 'portfolio_id': 20279384}, {'photo_id': 1335091592, 'portfolio_id': 20279384}, {'photo_id': 1335091589, 'portfolio_id': 20279384}, {'photo_id': 1335091588, 'portfolio_id': 20279384}, {'photo_id': 1335091585, 'portfolio_id': 20279384}, {'photo_id': 1335091584, 'portfolio_id': 20279384}, {'photo_id': 1335091582, 'portfolio_id': 20279384}, {'photo_id': 1335091580, 'portfolio_id': 20279384}, {'photo_id': 1335091577, 'portfolio_id': 20279384}, {'photo_id': 1335091576, 'portfolio_id': 20279384}, {'photo_id': 1335090948, 'portfolio_id': 20279384}, {'photo_id': 1335090945, 'portfolio_id': 20279384}, {'photo_id': 1335090942, 'portfolio_id': 20279384}, {'photo_id': 1335090939, 'portfolio_id': 20279384}, {'photo_id': 1335090935, 'portfolio_id': 20279384}, {'photo_id': 1335090459, 'portfolio_id': 20279384}, {'photo_id': 1335090306, 'portfolio_id': 20279384}, {'photo_id': 1335090171, 'portfolio_id': 20279384}, {'photo_id': 1335090051, 'portfolio_id': 20279384}, {'photo_id': 1335090046, 'portfolio_id': 20279384}, {'photo_id': 1335090045, 'portfolio_id': 20279384}, {'photo_id': 1335090042, 'portfolio_id': 20279384}, {'photo_id': 1335090041, 'portfolio_id': 20279384}, {'photo_id': 1335090039, 'portfolio_id': 20279384}, {'photo_id': 1335090037, 'portfolio_id': 20279384}, {'photo_id': 1335090014, 'portfolio_id': 20279384}, {'photo_id': 1335089987, 'portfolio_id': 20279384}, {'photo_id': 1335089915, 'portfolio_id': 20279384}, {'photo_id': 1335089905, 'portfolio_id': 20279384}, {'photo_id': 1335089560, 'portfolio_id': 20279384}, {'photo_id': 1335089550, 'portfolio_id': 20279384}, {'photo_id': 1335089545, 'portfolio_id': 20279384}, {'photo_id': 1335089483, 'portfolio_id': 20279384}, {'photo_id': 1335089409, 'portfolio_id': 20279384}, {'photo_id': 1335089113, 'portfolio_id': 20279384}, {'photo_id': 1335089111, 'portfolio_id': 20279384}, {'photo_id': 1335089109, 'portfolio_id': 20279384}, {'photo_id': 1335089103, 'portfolio_id': 20279384}, {'photo_id': 1335089102, 'portfolio_id': 20279384}, {'photo_id': 1335089083, 'portfolio_id': 20279384}, {'photo_id': 1335089082, 'portfolio_id': 20279384}, {'photo_id': 1335089080, 'portfolio_id': 20279384}, {'photo_id': 1335089079, 'portfolio_id': 20279384}, {'photo_id': 1335089078, 'portfolio_id': 20279384}, {'photo_id': 1335089077, 'portfolio_id': 20279384}, {'photo_id': 1335089069, 'portfolio_id': 20279384}, {'photo_id': 1335089068, 'portfolio_id': 20279384}, {'photo_id': 1335089066, 'portfolio_id': 20279384}, {'photo_id': 1335089065, 'portfolio_id': 20279384}, {'photo_id': 1335089055, 'portfolio_id': 20279384}, {'photo_id': 1335089052, 'portfolio_id': 20279384}, {'photo_id': 1335089043, 'portfolio_id': 20279384}, {'photo_id': 1335089037, 'portfolio_id': 20279384}, {'photo_id': 1335089006, 'portfolio_id': 20279384}, {'photo_id': 1335089004, 'portfolio_id': 20279384}, {'photo_id': 1335089003, 'portfolio_id': 20279384}, {'photo_id': 1335088979, 'portfolio_id': 20279384}, {'photo_id': 1335088977, 'portfolio_id': 20279384}, {'photo_id': 1335088975, 'portfolio_id': 20279384}, {'photo_id': 1335088972, 'portfolio_id': 20279384}, {'photo_id': 1335088968, 'portfolio_id': 20279384}, {'photo_id': 1335088961, 'portfolio_id': 20279384}, {'photo_id': 1335088959, 'portfolio_id': 20279384}, {'photo_id': 1335088953, 'portfolio_id': 20279384}, {'photo_id': 1335088939, 'portfolio_id': 20279384}, {'photo_id': 1335088935, 'portfolio_id': 20279384}, {'photo_id': 1335088932, 'portfolio_id': 20279384}, {'photo_id': 1335088549, 'portfolio_id': 20279384}, {'photo_id': 1335088547, 'portfolio_id': 20279384}, {'photo_id': 1335088545, 'portfolio_id': 20279384}, {'photo_id': 1335088544, 'portfolio_id': 20279384}] map_portfolio_id_photo_id: {20279384: [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948, 1335091757, 1335091753, 1335091751, 1335091750, 1335091601, 1335091600, 1335091593, 1335091592, 1335091589, 1335091588, 1335091585, 1335091584, 1335091582, 1335091580, 1335091577, 1335091576, 1335090948, 1335090945, 1335090942, 1335090939, 1335090935, 1335090459, 1335090306, 1335090171, 1335090051, 1335090046, 1335090045, 1335090042, 1335090041, 1335090039, 1335090037, 1335090014, 1335089987, 1335089915, 1335089905, 1335089560, 1335089550, 1335089545, 1335089483, 1335089409, 1335089113, 1335089111, 1335089109, 1335089103, 1335089102, 1335089083, 1335089082, 1335089080, 1335089079, 1335089078, 1335089077, 1335089069, 1335089068, 1335089066, 1335089065, 1335089055, 1335089052, 1335089043, 1335089037, 1335089006, 1335089004, 1335089003, 1335088979, 1335088977, 1335088975, 1335088972, 1335088968, 1335088961, 1335088959, 1335088953, 1335088939, 1335088935, 1335088932, 1335088549, 1335088547, 1335088545, 1335088544]} ##### 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.0160980224609375 #### 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 Thu Feb 6 02:47: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 (20279384) 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 : 20279384 get user id for portfolio 20279384 get sub ptf for main ptf 20279384, type 3726 and hashtags ['papier', 'Carton_brun', 'kraft', 'plastique', 'mal_croppe', 'autre_refus', 'Teint_Dans_La_Masse', 'Carton_gris', 'cartonnette', 'flou', 'metal', 'environnement'] 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`=20279384 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','kraft','plastique','mal_croppe','autre_refus','Teint_Dans_La_Masse','Carton_gris','cartonnette','flou','metal','environnement')) 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`=20279384 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','kraft','plastique','mal_croppe','autre_refus','Teint_Dans_La_Masse','Carton_gris','cartonnette','flou','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20279384, 'sub_port_id': 20279457, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971515, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}, 'flou': {'main_port_id': 20279384, 'sub_port_id': 20279458, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971516, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}, 'kraft': {'main_port_id': 20279384, 'sub_port_id': 20279459, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971517, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}, 'autre_refus': {'main_port_id': 20279384, 'sub_port_id': 20279460, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971518, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}, 'metal': {'main_port_id': 20279384, 'sub_port_id': 20279461, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971519, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}, 'Carton_brun': {'main_port_id': 20279384, 'sub_port_id': 20279462, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971520, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}, 'mal_croppe': {'main_port_id': 20279384, 'sub_port_id': 20279463, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971521, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20279384, 'sub_port_id': 20279464, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971522, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}, 'plastique': {'main_port_id': 20279384, 'sub_port_id': 20279465, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971523, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}, 'Carton_gris': {'main_port_id': 20279384, 'sub_port_id': 20279466, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971524, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}, 'environnement': {'main_port_id': 20279384, 'sub_port_id': 20279467, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971525, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}, 'papier': {'main_port_id': 20279384, 'sub_port_id': 20279468, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971526, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20279457 , 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=20279384 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 (20279457) result : ((1335089156,), (1335089157,), (1335089158,), (1335090514,), (1335090516,), (1335090518,), (1335091536,), (1335091842,), (1335092070,), (1335092074,), (1335092077,), (1335092079,), (1335092294,), (1335092553,), (1335092554,), (1335092556,), (1335092557,), (1335092668,), (1335092669,), (1335092670,), (1335092671,), (1335092769,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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 20279458 , 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=20279384 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 (20279458) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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 20279459 , 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=20279384 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 (20279459) result : ((1335091539,), (1335091540,), (1335091541,), (1335092368,), (1335092369,), (1335092370,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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 20279460 , 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=20279384 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 (20279460) result : ((1335089152,), (1335089153,), (1335090380,), (1335090382,), (1335090930,), (1335091821,), (1335091822,), (1335091824,), (1335091825,), (1335092046,), (1335092051,), (1335092481,), (1335092482,), (1335092483,), (1335092546,), (1335092547,), (1335092665,), (1335092666,), (1335092764,), (1335092765,), (1335092766,), (1335092767,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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 20279461 , 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=20279384 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 (20279461) result : ((1335092490,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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 20279462 , 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=20279384 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 (20279462) result : ((1335089133,), (1335089134,), (1335089160,), (1335089161,), (1335090568,), (1335090570,), (1335090775,), (1335090876,), (1335090878,), (1335090880,), (1335090950,), (1335091854,), (1335092488,), (1335092770,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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 20279463 , 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=20279384 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 (20279463) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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 20279464 , 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=20279384 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 (20279464) result : ((1335089149,), (1335089150,), (1335089151,), (1335090324,), (1335090326,), (1335090328,), (1335091471,), (1335091473,), (1335091812,), (1335091813,), (1335091814,), (1335091815,), (1335092028,), (1335092032,), (1335092191,), (1335092193,), (1335092645,), (1335092646,), (1335092648,), (1335092760,), (1335092761,), (1335092762,), (1335092763,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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 20279465 , 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=20279384 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 (20279465) result : ((1335091870,), (1335092771,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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 20279466 , 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=20279384 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 (20279466) result : ((1335089155,), (1335090449,), (1335090737,), (1335090739,), (1335090816,), (1335090949,), (1335091494,), (1335092253,), (1335092485,), (1335092486,), (1335092548,), (1335092549,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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 20279467 , 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=20279384 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 (20279467) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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 20279468 , 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=20279384 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 (20279468) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20279384) result : ((1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) 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 (1335091600) 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`=20279384 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','kraft','plastique','mal_croppe','autre_refus','Teint_Dans_La_Masse','Carton_gris','cartonnette','flou','metal','environnement')) 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`=20279384 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','kraft','plastique','mal_croppe','autre_refus','Teint_Dans_La_Masse','Carton_gris','cartonnette','flou','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20279384, 'sub_port_id': 20279469, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971527, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}, 'flou': {'main_port_id': 20279384, 'sub_port_id': 20279470, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971528, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}, 'kraft': {'main_port_id': 20279384, 'sub_port_id': 20279471, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971529, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}, 'autre_refus': {'main_port_id': 20279384, 'sub_port_id': 20279472, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971530, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}, 'metal': {'main_port_id': 20279384, 'sub_port_id': 20279473, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971531, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}, 'Carton_brun': {'main_port_id': 20279384, 'sub_port_id': 20279474, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971532, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}, 'mal_croppe': {'main_port_id': 20279384, 'sub_port_id': 20279475, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971533, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 20279384, 'sub_port_id': 20279476, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971534, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}, 'plastique': {'main_port_id': 20279384, 'sub_port_id': 20279477, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971535, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}, 'Carton_gris': {'main_port_id': 20279384, 'sub_port_id': 20279478, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971536, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}, 'environnement': {'main_port_id': 20279384, 'sub_port_id': 20279479, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971537, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}, 'papier': {'main_port_id': 20279384, 'sub_port_id': 20279480, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12971538, 'last_updated_at': datetime.datetime(2025, 2, 6, 2, 45, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 2, 45, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 2, 35, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279457 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279459 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279460 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279467 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20279480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20279468 lien utilise dans velours : https://www.fotonower.com/velours/20279469,20279470,20279471,20279472,20279473,20279474,20279475,20279476,20279477,20279478,20279479,20279480?tags=cartonnette,flou,kraft,autre_refus,metal,Carton_brun,mal_croppe,Teint_Dans_La_Masse,plastique,Carton_gris,environnement,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20279384]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948] map_info['map_portfolio_photo'] : {20279384: [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948, 1335091757, 1335091753, 1335091751, 1335091750, 1335091601, 1335091600, 1335091593, 1335091592, 1335091589, 1335091588, 1335091585, 1335091584, 1335091582, 1335091580, 1335091577, 1335091576, 1335090948, 1335090945, 1335090942, 1335090939, 1335090935, 1335090459, 1335090306, 1335090171, 1335090051, 1335090046, 1335090045, 1335090042, 1335090041, 1335090039, 1335090037, 1335090014, 1335089987, 1335089915, 1335089905, 1335089560, 1335089550, 1335089545, 1335089483, 1335089409, 1335089113, 1335089111, 1335089109, 1335089103, 1335089102, 1335089083, 1335089082, 1335089080, 1335089079, 1335089078, 1335089077, 1335089069, 1335089068, 1335089066, 1335089065, 1335089055, 1335089052, 1335089043, 1335089037, 1335089006, 1335089004, 1335089003, 1335088979, 1335088977, 1335088975, 1335088972, 1335088968, 1335088961, 1335088959, 1335088953, 1335088939, 1335088935, 1335088932, 1335088549, 1335088547, 1335088545, 1335088544]} final : False mtd_id 4302 list_pids : [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948] Looping around the photos to save general results len do output : 1 /20279384. 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, '2557366') ('4302', '20279384', '1335092537', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092536', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092531', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092530', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092523', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092522', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092495', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092492', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092489', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092487', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092479', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092478', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092326', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092167', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092066', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092029', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335091948', None, None, None, None, None, '2557366') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '20279384', "{'cartonnette': 20279457, 'flou': 20279458, 'kraft': 20279459, 'autre_refus': 20279460, 'metal': 20279461, 'Carton_brun': 20279462, 'mal_croppe': 20279463, 'Teint_Dans_La_Masse': 20279464, 'plastique': 20279465, 'Carton_gris': 20279466, 'environnement': 20279467, 'papier': 20279468}", None, None, None, None, '2557366'), ('4302', '20279384', '1335092537', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092536', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092531', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092530', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092523', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092522', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092495', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092492', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092489', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092487', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092479', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092478', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092326', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092167', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092066', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092029', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335091948', None, None, None, None, None, '2557366')] time used for this insertion : 0.014933347702026367 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4776597023010254 time spend to save output : 0.015267133712768555 total time spend for step 1 : 0.49292683601379395 step2:final Thu Feb 6 02:47:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20279384) 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 20279384 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1335088549,1335088547,1335088545,1335088544,1335088961,1335088959,1335088953,1335088939,1335088935,1335088932,1335088979,1335088977,1335088975,1335088972,1335088968,1335089006,1335089004,1335089003,1335089069,1335089068,1335089065,1335089066,1335089055,1335089052,1335089043,1335089037,1335089083,1335089082,1335089080,1335089079,1335089078,1335089077,1335089113,1335089111,1335089109,1335089103,1335089102,1335089560,1335089550,1335089545,1335089483,1335089409,1335090046,1335090045,1335090042,1335090041,1335090039,1335090037,1335090014,1335089987,1335089915,1335089905,1335090459,1335090306,1335090171,1335090051,1335090948,1335090945,1335090942,1335090939,1335090935,1335091601,1335091600,1335091593,1335091592,1335091588,1335091589,1335091585,1335091584,1335091582,1335091580,1335091577,1335091576,1335091757,1335091753,1335091751,1335091750,1335092326,1335092167,1335092066,1335092029,1335091948,1335092536,1335092537,1335092530,1335092531,1335092522,1335092523,1335092492,1335092495,1335092487,1335092489,1335092478,1335092479); 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([20279384]) Inside saveOutput : final : False verbose : True original output for save of step final : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} new output for save of step final : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948] map_info['map_portfolio_photo'] : {20279384: [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948, 1335091757, 1335091753, 1335091751, 1335091750, 1335091601, 1335091600, 1335091593, 1335091592, 1335091589, 1335091588, 1335091585, 1335091584, 1335091582, 1335091580, 1335091577, 1335091576, 1335090948, 1335090945, 1335090942, 1335090939, 1335090935, 1335090459, 1335090306, 1335090171, 1335090051, 1335090046, 1335090045, 1335090042, 1335090041, 1335090039, 1335090037, 1335090014, 1335089987, 1335089915, 1335089905, 1335089560, 1335089550, 1335089545, 1335089483, 1335089409, 1335089113, 1335089111, 1335089109, 1335089103, 1335089102, 1335089083, 1335089082, 1335089080, 1335089079, 1335089078, 1335089077, 1335089069, 1335089068, 1335089066, 1335089065, 1335089055, 1335089052, 1335089043, 1335089037, 1335089006, 1335089004, 1335089003, 1335088979, 1335088977, 1335088975, 1335088972, 1335088968, 1335088961, 1335088959, 1335088953, 1335088939, 1335088935, 1335088932, 1335088549, 1335088547, 1335088545, 1335088544]} final : False mtd_id 4302 list_pids : [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948] Looping around the photos to save general results len do output : 17 /1335092537.Didn't retrieve data . /1335092536.Didn't retrieve data . /1335092531.Didn't retrieve data . /1335092530.Didn't retrieve data . /1335092523.Didn't retrieve data . /1335092522.Didn't retrieve data . /1335092495.Didn't retrieve data . /1335092492.Didn't retrieve data . /1335092489.Didn't retrieve data . /1335092487.Didn't retrieve data . /1335092479.Didn't retrieve data . /1335092478.Didn't retrieve data . /1335092326.Didn't retrieve data . /1335092167.Didn't retrieve data . /1335092066.Didn't retrieve data . /1335092029.Didn't retrieve data . /1335091948.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, '2557366') ('4302', '20279384', '1335092537', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092536', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092531', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092530', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092523', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092522', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092495', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092492', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092489', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092487', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092479', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092478', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092326', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092167', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092066', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092029', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335091948', None, None, None, None, None, '2557366') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '20279384', '1335092537', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092536', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092531', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092530', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092523', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092522', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092495', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092492', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092489', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092487', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092479', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092478', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092326', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092167', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092066', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335092029', '0.041949976155419864', None, None, None, None, '2557366'), ('4302', '20279384', '1335091948', '0.041949976155419864', None, None, None, None, '2557366')] time used for this insertion : 0.013062238693237305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07188272476196289 time spend to save output : 0.013828039169311523 total time spend for step 2 : 0.08571076393127441 step3:velours_tree Thu Feb 6 02:47:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20279384: [{'cartonnette': 20279457, 'flou': 20279458, 'kraft': 20279459, 'autre_refus': 20279460, 'metal': 20279461, 'Carton_brun': 20279462, 'mal_croppe': 20279463, 'Teint_Dans_La_Masse': 20279464, 'plastique': 20279465, 'Carton_gris': 20279466, 'environnement': 20279467, 'papier': 20279468}]} input_args_next_step : {20279384: ()} output_args : {20279384: [{'cartonnette': 20279457, 'flou': 20279458, 'kraft': 20279459, 'autre_refus': 20279460, 'metal': 20279461, 'Carton_brun': 20279462, 'mal_croppe': 20279463, 'Teint_Dans_La_Masse': 20279464, 'plastique': 20279465, 'Carton_gris': 20279466, 'environnement': 20279467, 'papier': 20279468}]} args : 20279384 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 : ({'cartonnette': 20279457, 'flou': 20279458, 'kraft': 20279459, 'autre_refus': 20279460, 'metal': 20279461, 'Carton_brun': 20279462, 'mal_croppe': 20279463, 'Teint_Dans_La_Masse': 20279464, 'plastique': 20279465, 'Carton_gris': 20279466, 'environnement': 20279467, 'papier': 20279468},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20279384) 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([20279384]) 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.2956550121307373 time spend to save output : 5.817413330078125e-05 total time spend for step 3 : 0.2957131862640381 step4:send_mail_cod Thu Feb 6 02:47:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} input_args_next_step : {1335092537: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092537 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092536 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092531 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092530 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092523 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092522 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092495 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092492 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092489 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092487 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092479 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092478 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092326 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092167 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092066 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335092029 depend.output_id : 0 input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ()} output_args : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',)} args : 1335091948 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 : {20279384: [{'cartonnette': 20279457, 'flou': 20279458, 'kraft': 20279459, 'autre_refus': 20279460, 'metal': 20279461, 'Carton_brun': 20279462, 'mal_croppe': 20279463, 'Teint_Dans_La_Masse': 20279464, 'plastique': 20279465, 'Carton_gris': 20279466, 'environnement': 20279467, 'papier': 20279468}]} input_args_next_step : {1335092537: ('0.041949976155419864',), 1335092536: ('0.041949976155419864',), 1335092531: ('0.041949976155419864',), 1335092530: ('0.041949976155419864',), 1335092523: ('0.041949976155419864',), 1335092522: ('0.041949976155419864',), 1335092495: ('0.041949976155419864',), 1335092492: ('0.041949976155419864',), 1335092489: ('0.041949976155419864',), 1335092487: ('0.041949976155419864',), 1335092479: ('0.041949976155419864',), 1335092478: ('0.041949976155419864',), 1335092326: ('0.041949976155419864',), 1335092167: ('0.041949976155419864',), 1335092066: ('0.041949976155419864',), 1335092029: ('0.041949976155419864',), 1335091948: ('0.041949976155419864',), 20279384: ()} output_args : {20279384: [{'cartonnette': 20279457, 'flou': 20279458, 'kraft': 20279459, 'autre_refus': 20279460, 'metal': 20279461, 'Carton_brun': 20279462, 'mal_croppe': 20279463, 'Teint_Dans_La_Masse': 20279464, 'plastique': 20279465, 'Carton_gris': 20279466, 'environnement': 20279467, 'papier': 20279468}]} args : 20279384 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 :18, first value : ('0.041949976155419864',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20279384) 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 (1335092537,1335092536,1335092531,1335092530,1335092523,1335092522,1335092495,1335092492,1335092489,1335092487,1335092479,1335092478,1335092326,1335092167,1335092066,1335092029,1335091948) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1335091948 begin to download photo : 1335092326 begin to download photo : 1335092489 begin to download photo : 1335092523 begin to download photo : 1335092537 download finish for photo 1335092326 begin to download photo : 1335092478 download finish for photo 1335091948 begin to download photo : 1335092029 download finish for photo 1335092489 begin to download photo : 1335092492 download finish for photo 1335092523 begin to download photo : 1335092530 download finish for photo 1335092537 download finish for photo 1335092478 begin to download photo : 1335092479 download finish for photo 1335092492 begin to download photo : 1335092495 download finish for photo 1335092029 begin to download photo : 1335092066 download finish for photo 1335092530 begin to download photo : 1335092531 download finish for photo 1335092479 begin to download photo : 1335092487 download finish for photo 1335092066 begin to download photo : 1335092167 download finish for photo 1335092495 begin to download photo : 1335092522 download finish for photo 1335092531 begin to download photo : 1335092536 download finish for photo 1335092487 download finish for photo 1335092167 download finish for photo 1335092522 download finish for photo 1335092536 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 : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P20279384_06-02-2025_02_48_00.pdf 20279457 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=20279457 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335092079: '1738806171_2668664_1335090037_80ed642b1c31f898cd9d11494760733b_rle_crop_3656958241_0.png', 1335092769: '1738806314_2670584_1335089483_fb18e1b0bdfe0b7c954cb444b0941eba_rle_crop_3656958128_0.png', 1335092671: '1738806273_2669931_1335090037_80ed642b1c31f898cd9d11494760733b_rle_crop_3656958241_0.png', 1335092670: '1738806273_2669931_1335090039_efcd58de6089415f2bed1902028e1690_rle_crop_3656958231_0.png', 1335092669: '1738806273_2669931_1335090041_83f8b19ec82fd60f8db8eaf5e00ecfc6_rle_crop_3656958204_0.png', 1335092668: '1738806273_2669931_1335090042_88ee436c378ee1130098996d97fe2ee5_rle_crop_3656958143_0.png', 1335092557: '1738806293_2670206_1335090051_c549ea229625354e960337c1b6e0a234_rle_crop_3656960576_0.png', 1335092556: '1738806293_2670206_1335090171_430371bb2c5dcf0ee346cd760a69e8c6_rle_crop_3656960544_0.png', 1335092554: '1738806293_2670206_1335090171_430371bb2c5dcf0ee346cd760a69e8c6_rle_crop_3656960552_0.png', 1335092553: '1738806293_2670206_1335090171_430371bb2c5dcf0ee346cd760a69e8c6_rle_crop_3656960550_0.png', 1335092294: '1738806194_2668910_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956476_0.png', 1335089156: '1738805753_2656805_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953324_0.png', 1335092077: '1738806171_2668664_1335090039_efcd58de6089415f2bed1902028e1690_rle_crop_3656958231_0.png', 1335092074: '1738806171_2668664_1335090041_83f8b19ec82fd60f8db8eaf5e00ecfc6_rle_crop_3656958204_0.png', 1335092070: '1738806171_2668664_1335090042_88ee436c378ee1130098996d97fe2ee5_rle_crop_3656958143_0.png', 1335091842: '1738806151_2668462_1335089483_fb18e1b0bdfe0b7c954cb444b0941eba_rle_crop_3656958128_0.png', 1335091536: '1738806013_2663530_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956476_0.png', 1335090518: '1738805934_2662361_1335088932_c926ef05ebae934183d919009ba42d4c_rle_crop_3656953393_0.png', 1335090516: '1738805934_2662361_1335088939_12ac636bc8789c7e7fc33cdc9600906e_rle_crop_3656953350_0.png', 1335090514: '1738805934_2662361_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953324_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e31ee35e3a6dfc0f27675169b2bda736_73337452.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2942f1a45d9dec8bcb0de7ffcdc02a5f_65109289.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e31ee35e3a6dfc0f27675169b2bda736_70121914.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e31ee35e3a6dfc0f27675169b2bda736_11146936.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/dfc5fee8216e609814c47c62a274a032_80930469.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/dfc5fee8216e609814c47c62a274a032_24885349.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/a85040ce3ffe85d5c7b5447b06bef9e7_88031063.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f7a3bc7cb5fa38dbaa6d9e121e0218aa_15978932.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/aaf6681052a34dd0f5f288457b60ca8c_1497786.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1acbd78053959e1d73132f83ca81458e_91357565.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/59f3c3c147f93c0b8d002d33675ef43d_12541946.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2e2a851fc4658f75cdf05f24a07c789b_67658955.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e31ee35e3a6dfc0f27675169b2bda736_76221435.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/dfc5fee8216e609814c47c62a274a032_17492235.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/dfc5fee8216e609814c47c62a274a032_41466916.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2942f1a45d9dec8bcb0de7ffcdc02a5f_28457590.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/59f3c3c147f93c0b8d002d33675ef43d_34100714.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/dcb5c27609dbc817ee3570be1e803236_85100274.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/d6caaa9915ab641515d353d618eb5bc3_89646200.png change filename to text .imagette202794571738806480/ imagette202794571738806480/1738805934_2662361_1335088939_12ac636bc8789c7e7fc33cdc9600906e_rle_crop_3656953350_0.png.png imagette202794571738806480/1738806273_2669931_1335090042_88ee436c378ee1130098996d97fe2ee5_rle_crop_3656958143_0.png.png imagette202794571738806480/1738806273_2669931_1335090039_efcd58de6089415f2bed1902028e1690_rle_crop_3656958231_0.png.png imagette202794571738806480/1738805753_2656805_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953324_0.png.png imagette202794571738806480/1738806194_2668910_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956476_0.png.png imagette202794571738806480/1738806293_2670206_1335090171_430371bb2c5dcf0ee346cd760a69e8c6_rle_crop_3656960544_0.png.png imagette202794571738806480/1738806171_2668664_1335090039_efcd58de6089415f2bed1902028e1690_rle_crop_3656958231_0.png.png imagette202794571738806480/1738806293_2670206_1335090171_430371bb2c5dcf0ee346cd760a69e8c6_rle_crop_3656960550_0.png.png imagette202794571738806480/1738806273_2669931_1335090041_83f8b19ec82fd60f8db8eaf5e00ecfc6_rle_crop_3656958204_0.png.png imagette202794571738806480/1738806293_2670206_1335090171_430371bb2c5dcf0ee346cd760a69e8c6_rle_crop_3656960552_0.png.png imagette202794571738806480/1738806273_2669931_1335090037_80ed642b1c31f898cd9d11494760733b_rle_crop_3656958241_0.png.png imagette202794571738806480/1738806171_2668664_1335090041_83f8b19ec82fd60f8db8eaf5e00ecfc6_rle_crop_3656958204_0.png.png imagette202794571738806480/1738806314_2670584_1335089483_fb18e1b0bdfe0b7c954cb444b0941eba_rle_crop_3656958128_0.png.png imagette202794571738806480/1738806151_2668462_1335089483_fb18e1b0bdfe0b7c954cb444b0941eba_rle_crop_3656958128_0.png.png imagette202794571738806480/1738805934_2662361_1335088932_c926ef05ebae934183d919009ba42d4c_rle_crop_3656953393_0.png.png imagette202794571738806480/1738805934_2662361_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953324_0.png.png imagette202794571738806480/1738806013_2663530_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956476_0.png.png imagette202794571738806480/1738806171_2668664_1335090037_80ed642b1c31f898cd9d11494760733b_rle_crop_3656958241_0.png.png imagette202794571738806480/1738806171_2668664_1335090042_88ee436c378ee1130098996d97fe2ee5_rle_crop_3656958143_0.png.png imagette202794571738806480/1738806293_2670206_1335090051_c549ea229625354e960337c1b6e0a234_rle_crop_3656960576_0.png.png imagette202794581738806481/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2e2a851fc4658f75cdf05f24a07c789b_65198378.png imagette202794571738806480 20279458 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=20279458 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202794581738806481 20279459 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=20279459 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335091539: '1738806013_2663530_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956473_0.png', 1335091540: '1738806013_2663530_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956472_0.png', 1335091541: '1738806013_2663530_1335089078_2c8544b78cfb820b3d763230a5b061eb_rle_crop_3656956509_0.png', 1335092368: '1738806194_2668910_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956473_0.png', 1335092369: '1738806194_2668910_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956472_0.png', 1335092370: '1738806194_2668910_1335089078_2c8544b78cfb820b3d763230a5b061eb_rle_crop_3656956509_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ae5c25267cafa494f0681611e9dfff18_9934489.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/81d1c1ffd4732906aa512702c7a6abcf_3387842.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/607e241400d3d4c33e2df422e5efe551_62154941.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ae5c25267cafa494f0681611e9dfff18_55707863.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/81d1c1ffd4732906aa512702c7a6abcf_1589856.png change filename to text .imagette202794591738806481/ imagette202794591738806481/1738806013_2663530_1335089078_2c8544b78cfb820b3d763230a5b061eb_rle_crop_3656956509_0.png.png imagette202794591738806481/1738806194_2668910_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956472_0.png.png imagette202794591738806481/1738806013_2663530_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956473_0.png.png imagette202794591738806481/1738806013_2663530_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956472_0.png.png imagette202794591738806481/1738806194_2668910_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956473_0.png.png imagette202794591738806481/1738806194_2668910_1335089078_2c8544b78cfb820b3d763230a5b061eb_rle_crop_3656956509_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/607e241400d3d4c33e2df422e5efe551_91087717.png imagette202794591738806481 20279460 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=20279460 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335092481: '1738806251_2669613_1335090942_d2b177ab6d9cbcec8e68073d0fa246bd_rle_crop_3656958865_0.png', 1335092767: '1738806314_2670584_1335089483_fb18e1b0bdfe0b7c954cb444b0941eba_rle_crop_3656958135_0.png', 1335092766: '1738806314_2670584_1335089550_1075fe2d9575ab82d75e8250f551d651_rle_crop_3656958105_0.png', 1335092765: '1738806314_2670584_1335090045_f45fd73f68aca7506423b93751f7050e_bib_crop_3656957912_0.jpg', 1335092764: '1738806314_2670584_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_bib_crop_3656957899_0.jpg', 1335092666: '1738806273_2669931_1335090037_80ed642b1c31f898cd9d11494760733b_rle_crop_3656958237_0.png', 1335092665: '1738806273_2669931_1335090039_efcd58de6089415f2bed1902028e1690_rle_crop_3656958227_0.png', 1335092547: '1738806293_2670206_1335090171_430371bb2c5dcf0ee346cd760a69e8c6_rle_crop_3656960549_0.png', 1335092546: '1738806293_2670206_1335090306_d16b3dd94d53122b811929e7c14017ec_rle_crop_3656960463_0.png', 1335092483: '1738806251_2669613_1335090935_14d5c56605707be19a6cdbc4ac32fb2c_rle_crop_3656959140_0.png', 1335092482: '1738806251_2669613_1335090939_40d1d395e22efbff16686a2b93e741a6_rle_crop_3656958900_0.png', 1335089152: '1738805753_2656805_1335088939_12ac636bc8789c7e7fc33cdc9600906e_rle_crop_3656953351_0.png', 1335092051: '1738806171_2668664_1335090037_80ed642b1c31f898cd9d11494760733b_rle_crop_3656958237_0.png', 1335092046: '1738806171_2668664_1335090039_efcd58de6089415f2bed1902028e1690_rle_crop_3656958227_0.png', 1335091825: '1738806151_2668462_1335089483_fb18e1b0bdfe0b7c954cb444b0941eba_rle_crop_3656958135_0.png', 1335091824: '1738806151_2668462_1335089550_1075fe2d9575ab82d75e8250f551d651_rle_crop_3656958105_0.png', 1335091822: '1738806151_2668462_1335090045_f45fd73f68aca7506423b93751f7050e_rle_crop_3656957912_0.png', 1335091821: '1738806151_2668462_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_rle_crop_3656957899_0.png', 1335090930: '1738805993_2663177_1335089109_5c9885fcea9c36a1d8fd1a2b0dbf6972_rle_crop_3656954780_0.png', 1335090382: '1738805934_2662361_1335088932_c926ef05ebae934183d919009ba42d4c_rle_crop_3656953390_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4dbaded63507c17d3b14cc7f2b78eb21_12264575.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ed97a5bf8f5baae09bd08bf0d020ad15_88708397.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/73d25b016dbc02488e949d1da27cc918_99661951.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/d89d1ae914a47b3b9fd50c44367cbb77_30785893.jpg change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/d89d1ae914a47b3b9fd50c44367cbb77_49479994.jpg change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1c5db4bf9c1d8ee1fad0f67b85d66a1f_19126640.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1c5db4bf9c1d8ee1fad0f67b85d66a1f_22743770.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/26b46256e3596f2855890efb18d1e167_15584094.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b414b056124fd20c79b7f2f33e602338_56312844.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/11994ddb364bdec568da9c7233ef7449_91857784.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b59cb649480f8818676105cc0e59185b_51114542.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/9b7570847c862be91c89be0bd825c35f_9135559.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1c5db4bf9c1d8ee1fad0f67b85d66a1f_42833366.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1c5db4bf9c1d8ee1fad0f67b85d66a1f_87594848.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ed97a5bf8f5baae09bd08bf0d020ad15_45480424.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/73d25b016dbc02488e949d1da27cc918_85487959.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/0d36c3e9e408aa1adfa4961ea07b07d0_84734097.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/0d36c3e9e408aa1adfa4961ea07b07d0_2384941.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/a368ff2f260b7eb6f8555ce449d71025_72430542.png change filename to text .imagette202794601738806481/ imagette202794601738806481/1738806151_2668462_1335089483_fb18e1b0bdfe0b7c954cb444b0941eba_rle_crop_3656958135_0.png.png imagette202794601738806481/1738806171_2668664_1335090039_efcd58de6089415f2bed1902028e1690_rle_crop_3656958227_0.png.png imagette202794601738806481/1738806314_2670584_1335089483_fb18e1b0bdfe0b7c954cb444b0941eba_rle_crop_3656958135_0.png.png imagette202794601738806481/1738806151_2668462_1335089550_1075fe2d9575ab82d75e8250f551d651_rle_crop_3656958105_0.png.png imagette202794601738806481/1738806251_2669613_1335090942_d2b177ab6d9cbcec8e68073d0fa246bd_rle_crop_3656958865_0.png.png imagette202794601738806481/1738806314_2670584_1335090045_f45fd73f68aca7506423b93751f7050e_bib_crop_3656957912_0.jpg.jpg imagette202794601738806481/1738805753_2656805_1335088939_12ac636bc8789c7e7fc33cdc9600906e_rle_crop_3656953351_0.png.png imagette202794601738806481/1738805934_2662361_1335088932_c926ef05ebae934183d919009ba42d4c_rle_crop_3656953390_0.png.png imagette202794601738806481/1738806293_2670206_1335090306_d16b3dd94d53122b811929e7c14017ec_rle_crop_3656960463_0.png.png imagette202794601738806481/1738806251_2669613_1335090935_14d5c56605707be19a6cdbc4ac32fb2c_rle_crop_3656959140_0.png.png imagette202794601738806481/1738806273_2669931_1335090037_80ed642b1c31f898cd9d11494760733b_rle_crop_3656958237_0.png.png imagette202794601738806481/1738806314_2670584_1335089550_1075fe2d9575ab82d75e8250f551d651_rle_crop_3656958105_0.png.png imagette202794601738806481/1738806273_2669931_1335090039_efcd58de6089415f2bed1902028e1690_rle_crop_3656958227_0.png.png imagette202794601738806481/1738806151_2668462_1335090045_f45fd73f68aca7506423b93751f7050e_rle_crop_3656957912_0.png.png imagette202794601738806481/1738806314_2670584_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_bib_crop_3656957899_0.jpg.jpg imagette202794601738806481/1738806151_2668462_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_rle_crop_3656957899_0.png.png imagette202794601738806481/1738805993_2663177_1335089109_5c9885fcea9c36a1d8fd1a2b0dbf6972_rle_crop_3656954780_0.png.png imagette202794601738806481/1738806171_2668664_1335090037_80ed642b1c31f898cd9d11494760733b_rle_crop_3656958237_0.png.png imagette202794601738806481/1738806293_2670206_1335090171_430371bb2c5dcf0ee346cd760a69e8c6_rle_crop_3656960549_0.png.png imagette202794601738806481/1738806251_2669613_1335090939_40d1d395e22efbff16686a2b93e741a6_rle_crop_3656958900_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/8e02b5565d2c35194ab7edefb26f2636_94474035.png imagette202794601738806481 20279461 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=20279461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335092490: '1738806251_2669613_1335090939_40d1d395e22efbff16686a2b93e741a6_rle_crop_3656958906_0.png'} change filename to text .imagette202794611738806482/ imagette202794611738806482/1738806251_2669613_1335090939_40d1d395e22efbff16686a2b93e741a6_rle_crop_3656958906_0.png.png imagette202794631738806482/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/96a1ca5c766426987f1bc6ca198abff8_97878126.png imagette202794611738806482 20279463 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=20279463 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202794631738806482 20279465 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=20279465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335091870: '1738806151_2668462_1335089550_1075fe2d9575ab82d75e8250f551d651_rle_crop_3656958106_0.png', 1335092771: '1738806314_2670584_1335089550_1075fe2d9575ab82d75e8250f551d651_rle_crop_3656958106_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/3b8311f48570dd712065dde2c68dcf25_95709354.png change filename to text .imagette202794651738806482/ imagette202794651738806482/1738806314_2670584_1335089550_1075fe2d9575ab82d75e8250f551d651_rle_crop_3656958106_0.png.png imagette202794651738806482/1738806151_2668462_1335089550_1075fe2d9575ab82d75e8250f551d651_rle_crop_3656958106_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/3b8311f48570dd712065dde2c68dcf25_93614926.png imagette202794651738806482 20279462 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=20279462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335089133: '1738805772_2657133_1335088977_868fe85cbecb22c5b83fa5d95468f4da_rle_crop_3656953238_0.png', 1335089134: '1738805772_2657133_1335088975_caff4c761ebeb602e87817dce05f5530_rle_crop_3656953268_0.png', 1335089160: '1738805753_2656805_1335088979_9577df2d96ceac7d2c4786fa8e18598e_rle_crop_3656953249_0.png', 1335089161: '1738805753_2656805_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953334_0.png', 1335090568: '1738805934_2662361_1335088979_9577df2d96ceac7d2c4786fa8e18598e_rle_crop_3656953249_0.png', 1335090570: '1738805934_2662361_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953334_0.png', 1335090775: '1738805972_2662910_1335089004_14aa91950c13ce9cf890092b0a9015e3_rle_crop_3656954132_0.png', 1335090876: '1738805954_2662631_1335089006_8f3c362fc3737a2660bfd9ee3f0b2ed0_rle_crop_3656954489_0.png', 1335090878: '1738805954_2662631_1335088977_868fe85cbecb22c5b83fa5d95468f4da_rle_crop_3656953238_0.png', 1335090880: '1738805954_2662631_1335088975_caff4c761ebeb602e87817dce05f5530_rle_crop_3656953268_0.png', 1335090950: '1738806034_2663855_1335089006_8f3c362fc3737a2660bfd9ee3f0b2ed0_rle_crop_3656954489_0.png', 1335091854: '1738806151_2668462_1335089409_b5fd2ffc822e9c18ee9c40a201a478d1_rle_crop_3656958218_0.png', 1335092488: '1738806251_2669613_1335090935_14d5c56605707be19a6cdbc4ac32fb2c_rle_crop_3656959142_0.png', 1335092770: '1738806314_2670584_1335089409_b5fd2ffc822e9c18ee9c40a201a478d1_rle_crop_3656958218_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/0dcc64851be8dfa2f9b0563b9f18249e_41812182.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/619d56920049230fc84b99a335552dee_74010356.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/0e179658debedc00de44fcb4d17bfa53_92860610.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4796a8d294a3b85b80e27f8d3e0fccfe_98747347.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/0e179658debedc00de44fcb4d17bfa53_14117434.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/4796a8d294a3b85b80e27f8d3e0fccfe_9506141.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/0d109838e4cbc7f6dc35108e741e246f_72915133.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2bc42d2c32790c5c983f1349ea3862dc_85166274.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/0dcc64851be8dfa2f9b0563b9f18249e_31896818.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/619d56920049230fc84b99a335552dee_92306997.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2bc42d2c32790c5c983f1349ea3862dc_53372461.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/eed993a7fd182d25a37af75e6bddde0b_61987352.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c27b2a7714bf491e8e64957652977766_19150836.png change filename to text .imagette202794621738806482/ imagette202794621738806482/1738805772_2657133_1335088977_868fe85cbecb22c5b83fa5d95468f4da_rle_crop_3656953238_0.png.png imagette202794621738806482/1738806314_2670584_1335089409_b5fd2ffc822e9c18ee9c40a201a478d1_rle_crop_3656958218_0.png.png imagette202794621738806482/1738805972_2662910_1335089004_14aa91950c13ce9cf890092b0a9015e3_rle_crop_3656954132_0.png.png imagette202794621738806482/1738805753_2656805_1335088979_9577df2d96ceac7d2c4786fa8e18598e_rle_crop_3656953249_0.png.png imagette202794621738806482/1738805753_2656805_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953334_0.png.png imagette202794621738806482/1738805954_2662631_1335088977_868fe85cbecb22c5b83fa5d95468f4da_rle_crop_3656953238_0.png.png imagette202794621738806482/1738806034_2663855_1335089006_8f3c362fc3737a2660bfd9ee3f0b2ed0_rle_crop_3656954489_0.png.png imagette202794621738806482/1738805954_2662631_1335089006_8f3c362fc3737a2660bfd9ee3f0b2ed0_rle_crop_3656954489_0.png.png imagette202794621738806482/1738805934_2662361_1335088979_9577df2d96ceac7d2c4786fa8e18598e_rle_crop_3656953249_0.png.png imagette202794621738806482/1738805954_2662631_1335088975_caff4c761ebeb602e87817dce05f5530_rle_crop_3656953268_0.png.png imagette202794621738806482/1738805934_2662361_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953334_0.png.png imagette202794621738806482/1738806151_2668462_1335089409_b5fd2ffc822e9c18ee9c40a201a478d1_rle_crop_3656958218_0.png.png imagette202794621738806482/1738806251_2669613_1335090935_14d5c56605707be19a6cdbc4ac32fb2c_rle_crop_3656959142_0.png.png imagette202794621738806482/1738805772_2657133_1335088975_caff4c761ebeb602e87817dce05f5530_rle_crop_3656953268_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/eed993a7fd182d25a37af75e6bddde0b_41180242.png imagette202794621738806482 20279464 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=20279464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335091815: '1738806151_2668462_1335090045_f45fd73f68aca7506423b93751f7050e_rle_crop_3656957917_0.png', 1335092763: '1738806314_2670584_1335090045_f45fd73f68aca7506423b93751f7050e_rle_crop_3656957917_0.png', 1335092762: '1738806314_2670584_1335090045_f45fd73f68aca7506423b93751f7050e_rle_crop_3656957919_0.png', 1335092761: '1738806314_2670584_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_rle_crop_3656957904_0.png', 1335092760: '1738806314_2670584_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_rle_crop_3656957906_0.png', 1335092648: '1738806273_2669931_1335090041_83f8b19ec82fd60f8db8eaf5e00ecfc6_rle_crop_3656958203_0.png', 1335092646: '1738806273_2669931_1335090042_88ee436c378ee1130098996d97fe2ee5_rle_crop_3656958142_0.png', 1335092645: '1738806273_2669931_1335090459_72d61d5debe287b8c58965308d49ad6b_rle_crop_3656960029_0.png', 1335092193: '1738806194_2668910_1335089077_17261c3e7a3a5718d1340d234eaa55ce_rle_crop_3656956556_0.png', 1335092191: '1738806194_2668910_1335089082_7f9487e2ee1d63e05d32c6c980870f73_rle_crop_3656956280_0.png', 1335092032: '1738806171_2668664_1335090041_83f8b19ec82fd60f8db8eaf5e00ecfc6_rle_crop_3656958203_0.png', 1335092028: '1738806171_2668664_1335090042_88ee436c378ee1130098996d97fe2ee5_rle_crop_3656958142_0.png', 1335089149: '1738805753_2656805_1335088979_9577df2d96ceac7d2c4786fa8e18598e_rle_crop_3656953252_0.png', 1335091814: '1738806151_2668462_1335090045_f45fd73f68aca7506423b93751f7050e_rle_crop_3656957919_0.png', 1335091813: '1738806151_2668462_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_rle_crop_3656957904_0.png', 1335091812: '1738806151_2668462_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_rle_crop_3656957906_0.png', 1335091473: '1738806013_2663530_1335089077_17261c3e7a3a5718d1340d234eaa55ce_rle_crop_3656956556_0.png', 1335091471: '1738806013_2663530_1335089082_7f9487e2ee1d63e05d32c6c980870f73_rle_crop_3656956280_0.png', 1335090328: '1738805934_2662361_1335088932_c926ef05ebae934183d919009ba42d4c_rle_crop_3656953395_0.png', 1335090326: '1738805934_2662361_1335088959_d7517460bf7c0ae7c71e4a93354681f4_rle_crop_3656953284_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5a13314af98ae514534621a547b55416_84034198.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5a13314af98ae514534621a547b55416_4447633.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/53f2cd734fb9807b2d03b4b503789c6b_7175757.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5a13314af98ae514534621a547b55416_39256604.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/53f2cd734fb9807b2d03b4b503789c6b_71066079.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/d2699cf7248b70e962c5a519599ec329_40259659.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/d2699cf7248b70e962c5a519599ec329_32889327.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f4d49e2035f770bb4d02a742f4b17149_35670825.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5039d04d469d3e7e26aa202ad2f61422_34366408.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/eaf50e3fd530fc84f1e3a87b1a0ce4ce_65065200.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/d2699cf7248b70e962c5a519599ec329_76407059.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/d2699cf7248b70e962c5a519599ec329_87144330.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/0b4426dbeaa2e61b9315b0f897c0fa4b_31958707.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/53f2cd734fb9807b2d03b4b503789c6b_45066593.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5a13314af98ae514534621a547b55416_55121024.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/53f2cd734fb9807b2d03b4b503789c6b_3054846.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5039d04d469d3e7e26aa202ad2f61422_40163317.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/eaf50e3fd530fc84f1e3a87b1a0ce4ce_6860822.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/968c0c57017aa1d372f1a0fc23c213a0_72458410.png change filename to text .imagette202794641738806483/ imagette202794641738806483/1738805753_2656805_1335088979_9577df2d96ceac7d2c4786fa8e18598e_rle_crop_3656953252_0.png.png imagette202794641738806483/1738805934_2662361_1335088959_d7517460bf7c0ae7c71e4a93354681f4_rle_crop_3656953284_0.png.png imagette202794641738806483/1738806151_2668462_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_rle_crop_3656957904_0.png.png imagette202794641738806483/1738806273_2669931_1335090041_83f8b19ec82fd60f8db8eaf5e00ecfc6_rle_crop_3656958203_0.png.png imagette202794641738806483/1738806151_2668462_1335090045_f45fd73f68aca7506423b93751f7050e_rle_crop_3656957919_0.png.png imagette202794641738806483/1738806013_2663530_1335089082_7f9487e2ee1d63e05d32c6c980870f73_rle_crop_3656956280_0.png.png imagette202794641738806483/1738806151_2668462_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_rle_crop_3656957906_0.png.png imagette202794641738806483/1738806314_2670584_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_rle_crop_3656957904_0.png.png imagette202794641738806483/1738806194_2668910_1335089082_7f9487e2ee1d63e05d32c6c980870f73_rle_crop_3656956280_0.png.png imagette202794641738806483/1738806314_2670584_1335090046_0268dc6c16441bbfc7093d53f04bfe5c_rle_crop_3656957906_0.png.png imagette202794641738806483/1738805934_2662361_1335088932_c926ef05ebae934183d919009ba42d4c_rle_crop_3656953395_0.png.png imagette202794641738806483/1738806171_2668664_1335090041_83f8b19ec82fd60f8db8eaf5e00ecfc6_rle_crop_3656958203_0.png.png imagette202794641738806483/1738806314_2670584_1335090045_f45fd73f68aca7506423b93751f7050e_rle_crop_3656957917_0.png.png imagette202794641738806483/1738806013_2663530_1335089077_17261c3e7a3a5718d1340d234eaa55ce_rle_crop_3656956556_0.png.png imagette202794641738806483/1738806194_2668910_1335089077_17261c3e7a3a5718d1340d234eaa55ce_rle_crop_3656956556_0.png.png imagette202794641738806483/1738806314_2670584_1335090045_f45fd73f68aca7506423b93751f7050e_rle_crop_3656957919_0.png.png imagette202794641738806483/1738806273_2669931_1335090042_88ee436c378ee1130098996d97fe2ee5_rle_crop_3656958142_0.png.png imagette202794641738806483/1738806151_2668462_1335090045_f45fd73f68aca7506423b93751f7050e_rle_crop_3656957917_0.png.png imagette202794641738806483/1738806273_2669931_1335090459_72d61d5debe287b8c58965308d49ad6b_rle_crop_3656960029_0.png.png imagette202794641738806483/1738806171_2668664_1335090042_88ee436c378ee1130098996d97fe2ee5_rle_crop_3656958142_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/979a5bb55d431aecc5f8c71e2687d2f2_98415102.png imagette202794641738806483 20279466 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=20279466 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335089155: '1738805753_2656805_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953325_0.png', 1335090449: '1738805934_2662361_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953325_0.png', 1335090737: '1738805972_2662910_1335089004_14aa91950c13ce9cf890092b0a9015e3_rle_crop_3656954134_0.png', 1335090739: '1738805972_2662910_1335089003_e0dfb5c4721bae9b3d1bc6de9fc71b35_rle_crop_3656954142_0.png', 1335090816: '1738805954_2662631_1335089006_8f3c362fc3737a2660bfd9ee3f0b2ed0_rle_crop_3656954479_0.png', 1335090949: '1738806034_2663855_1335089006_8f3c362fc3737a2660bfd9ee3f0b2ed0_rle_crop_3656954479_0.png', 1335091494: '1738806013_2663530_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956471_0.png', 1335092253: '1738806194_2668910_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956471_0.png', 1335092485: '1738806251_2669613_1335090935_14d5c56605707be19a6cdbc4ac32fb2c_rle_crop_3656959136_0.png', 1335092486: '1738806251_2669613_1335090935_14d5c56605707be19a6cdbc4ac32fb2c_rle_crop_3656959134_0.png', 1335092548: '1738806293_2670206_1335090306_d16b3dd94d53122b811929e7c14017ec_rle_crop_3656960466_0.png', 1335092549: '1738806293_2670206_1335090171_430371bb2c5dcf0ee346cd760a69e8c6_rle_crop_3656960554_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/79146d9590418c78df3dcbb27d23cc63_36219820.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/79146d9590418c78df3dcbb27d23cc63_15249075.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/2484f23b0828589b805f86b2cea0c597_214387.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/11c659d7002755f979490e89a0fc55e1_98302588.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b96ad21a8847211221efc916eac76c5d_41479200.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b96ad21a8847211221efc916eac76c5d_23583254.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c03f076079a0c2ba1ddbade6bac4e03d_17490792.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c03f076079a0c2ba1ddbade6bac4e03d_73516623.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/a6187995f3e0dcfa4adebf867ad6288e_81504116.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/0b414371a0a2423777be5e47a245c452_21236364.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/b976fdf08d85364234c9407fbde23428_79885476.png change filename to text .imagette202794661738806484/ imagette202794661738806484/1738806293_2670206_1335090306_d16b3dd94d53122b811929e7c14017ec_rle_crop_3656960466_0.png.png imagette202794661738806484/1738806251_2669613_1335090935_14d5c56605707be19a6cdbc4ac32fb2c_rle_crop_3656959134_0.png.png imagette202794661738806484/1738806293_2670206_1335090171_430371bb2c5dcf0ee346cd760a69e8c6_rle_crop_3656960554_0.png.png imagette202794661738806484/1738805972_2662910_1335089003_e0dfb5c4721bae9b3d1bc6de9fc71b35_rle_crop_3656954142_0.png.png imagette202794661738806484/1738805934_2662361_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953325_0.png.png imagette202794661738806484/1738805753_2656805_1335088953_20edcf4b241d06a8ddb2b8ff5526d6cd_rle_crop_3656953325_0.png.png imagette202794661738806484/1738805972_2662910_1335089004_14aa91950c13ce9cf890092b0a9015e3_rle_crop_3656954134_0.png.png imagette202794661738806484/1738806251_2669613_1335090935_14d5c56605707be19a6cdbc4ac32fb2c_rle_crop_3656959136_0.png.png imagette202794661738806484/1738806194_2668910_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956471_0.png.png imagette202794661738806484/1738806034_2663855_1335089006_8f3c362fc3737a2660bfd9ee3f0b2ed0_rle_crop_3656954479_0.png.png imagette202794661738806484/1738805954_2662631_1335089006_8f3c362fc3737a2660bfd9ee3f0b2ed0_rle_crop_3656954479_0.png.png imagette202794661738806484/1738806013_2663530_1335089079_407d3bd1bee0723463ddf0ddae5d471f_rle_crop_3656956471_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ad47a561a088741f5c7076886fa87224_48085652.png imagette202794661738806484 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20279384 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20279469,20279470,20279471,20279472,20279473,20279474,20279475,20279476,20279477,20279478,20279479,20279480?tags=cartonnette,flou,kraft,autre_refus,metal,Carton_brun,mal_croppe,Teint_Dans_La_Masse,plastique,Carton_gris,environnement,papier your option no_mail is active, we will not send the real mail to your client args[1335092537] : ('0.041949976155419864',) no score found for photo 1335092537 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092536] : ('0.041949976155419864',) no score found for photo 1335092536 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092531] : ('0.041949976155419864',) no score found for photo 1335092531 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092530] : ('0.041949976155419864',) no score found for photo 1335092530 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092523] : ('0.041949976155419864',) no score found for photo 1335092523 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092522] : ('0.041949976155419864',) no score found for photo 1335092522 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092495] : ('0.041949976155419864',) no score found for photo 1335092495 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092492] : ('0.041949976155419864',) no score found for photo 1335092492 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092489] : ('0.041949976155419864',) no score found for photo 1335092489 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092487] : ('0.041949976155419864',) no score found for photo 1335092487 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092479] : ('0.041949976155419864',) no score found for photo 1335092479 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092478] : ('0.041949976155419864',) no score found for photo 1335092478 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092326] : ('0.041949976155419864',) no score found for photo 1335092326 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092167] : ('0.041949976155419864',) no score found for photo 1335092167 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092066] : ('0.041949976155419864',) no score found for photo 1335092066 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335092029] : ('0.041949976155419864',) no score found for photo 1335092029 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com args[1335091948] : ('0.041949976155419864',) no score found for photo 1335091948 apple ('0.041949976155419864',) We are sending mail with results at report@fotonower.com refus_total : 0.041949976155419864 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=20279384 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_P20279384_06-02-2025_02_48_00.pdf results_Auto_P20279384_06-02-2025_02_48_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279384_06-02-2025_02_48_00.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','20279384','results_Auto_P20279384_06-02-2025_02_48_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279384_06-02-2025_02_48_00.pdf','pdf','','0.33','0.041949976155419864') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20279384]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948] map_info['map_portfolio_photo'] : {20279384: [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948, 1335091757, 1335091753, 1335091751, 1335091750, 1335091601, 1335091600, 1335091593, 1335091592, 1335091589, 1335091588, 1335091585, 1335091584, 1335091582, 1335091580, 1335091577, 1335091576, 1335090948, 1335090945, 1335090942, 1335090939, 1335090935, 1335090459, 1335090306, 1335090171, 1335090051, 1335090046, 1335090045, 1335090042, 1335090041, 1335090039, 1335090037, 1335090014, 1335089987, 1335089915, 1335089905, 1335089560, 1335089550, 1335089545, 1335089483, 1335089409, 1335089113, 1335089111, 1335089109, 1335089103, 1335089102, 1335089083, 1335089082, 1335089080, 1335089079, 1335089078, 1335089077, 1335089069, 1335089068, 1335089066, 1335089065, 1335089055, 1335089052, 1335089043, 1335089037, 1335089006, 1335089004, 1335089003, 1335088979, 1335088977, 1335088975, 1335088972, 1335088968, 1335088961, 1335088959, 1335088953, 1335088939, 1335088935, 1335088932, 1335088549, 1335088547, 1335088545, 1335088544]} final : False mtd_id 4302 list_pids : [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948] 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, '2557366') ('4302', '20279384', '1335092537', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092536', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092531', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092530', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092523', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092522', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092495', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092492', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092489', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092487', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092479', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092478', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092326', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092167', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092066', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092029', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335091948', None, None, None, None, None, '2557366') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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', '20279384', '1335092537', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092536', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092531', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092530', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092523', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092522', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092495', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092492', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092489', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092487', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092479', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092478', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092326', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092167', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092066', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092029', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335091948', None, None, None, None, None, '2557366')] time used for this insertion : 0.015444040298461914 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.64663028717041 time spend to save output : 0.015839815139770508 total time spend for step 4 : 6.662470102310181 step5:split_time_score Thu Feb 6 02:48:06 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 : ['20279384'] 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 : [('20279384',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20279384) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1335092537: {'path': 'temp/1738806479_1899151_1335092537_d034b87d4485ca03fc0c157160158d49.jpg', 'extension': 'jpg'}, 1335092326: {'path': 'temp/1738806479_1899151_1335092326_80e395aa26eb6412d20e01cb5d4343a4.jpg', 'extension': 'jpg'}, 1335092478: {'path': 'temp/1738806479_1899151_1335092478_ef7fc729a092926a68b9c8a1db3ff608.jpg', 'extension': 'jpg'}, 1335092479: {'path': 'temp/1738806479_1899151_1335092479_4348e5c71857eac8256a867da07117ff.jpg', 'extension': 'jpg'}, 1335092487: {'path': 'temp/1738806479_1899151_1335092487_b92141c9f27b0361239f1c0a807af8b6.jpg', 'extension': 'jpg'}, 1335091948: {'path': 'temp/1738806479_1899151_1335091948_6295ba16fad5ad01aa1892459b960fdc.jpg', 'extension': 'jpg'}, 1335092029: {'path': 'temp/1738806479_1899151_1335092029_41b0955365b296cb65fe36aea7858df8.jpg', 'extension': 'jpg'}, 1335092066: {'path': 'temp/1738806479_1899151_1335092066_33165070231f6957470f3a79e2e90482.jpg', 'extension': 'jpg'}, 1335092167: {'path': 'temp/1738806479_1899151_1335092167_73329d8ad074d7eb973011714436069d.jpg', 'extension': 'jpg'}, 1335092489: {'path': 'temp/1738806479_1899151_1335092489_081f710ece80a09d2f8085bd841340dc.jpg', 'extension': 'jpg'}, 1335092492: {'path': 'temp/1738806479_1899151_1335092492_cd18ff1997386cff114084825cfaaadc.jpg', 'extension': 'jpg'}, 1335092495: {'path': 'temp/1738806479_1899151_1335092495_307289f169e6c60d3253789189adc936.jpg', 'extension': 'jpg'}, 1335092522: {'path': 'temp/1738806479_1899151_1335092522_adb33e5157a4ed12886e248afc0b433d.jpg', 'extension': 'jpg'}, 1335092523: {'path': 'temp/1738806479_1899151_1335092523_af5c6de280fe76e3046b81ae6632ddb3.jpg', 'extension': 'jpg'}, 1335092530: {'path': 'temp/1738806479_1899151_1335092530_f920e75277c0aa54ad971736a525b2ac.jpg', 'extension': 'jpg'}, 1335092531: {'path': 'temp/1738806479_1899151_1335092531_fb97ab8c858b791b007e1fca5e1590fb.jpg', 'extension': 'jpg'}, 1335092536: {'path': 'temp/1738806479_1899151_1335092536_2b446a5a22288b6389d2502a48819267.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 = 20279384; (('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 = 20279384 group by h (('02', 94),) 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=20279384 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 (20279384) 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 (20279384) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06022025 20279384 Nombre de photos uploadées : 94 / 23040 (0%) 06022025 20279384 Nombre de photos taguées (types de déchets): 0 / 94 (0%) 06022025 20279384 Nombre de photos taguées (volume) : 0 / 94 (0%) [{'photo_id': 1335088549, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/a06d8c15c1342e4e08ac0d4366e0c0b7.jpg', 'username': None, 'uploaded_at': 1738805477, 'text': 'image_06022025_02_30_04_10159.jpg'}, {'photo_id': 1335088547, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1cfbc9eb69929638715298b527953bf8.jpg', 'username': None, 'uploaded_at': 1738805477, 'text': 'image_06022025_02_30_14_10140.jpg'}, {'photo_id': 1335088545, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/5e4f4e898fc0e2dc371c856aee029f4e.jpg', 'username': None, 'uploaded_at': 1738805477, 'text': 'image_06022025_02_30_24_10134.jpg'}, {'photo_id': 1335088544, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/32aad52e4ada6cdd861292a46790e2d0.jpg', 'username': None, 'uploaded_at': 1738805477, 'text': 'image_06022025_02_30_44_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 2.5272369384765625e-05 ?????????????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031821727752685547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20279384, '2025-02-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1581747,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02226853370666504 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= 1581747 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1581747, 'dashboard_run_id': 1589302, 'mtr_portfolio_id': 20278856, 'dashboard_result_id': 8724777, '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_P20278856_06-02-2025_02_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20278931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20278932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20278933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20278934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20278935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20278936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20278937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20278938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20278939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20278940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20278941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20278942, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1589302, 'mtr_portfolio_id': 20279015, 'dashboard_result_id': 8724778, '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_P20279015_06-02-2025_02_47_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20279096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279107, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1589302, 'mtr_portfolio_id': 20279159, 'dashboard_result_id': 8724779, '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_P20279159_06-02-2025_02_41_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279227, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1589302, 'mtr_portfolio_id': 20279384, 'dashboard_result_id': 8724780, '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_P20279384_06-02-2025_02_45_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279468, '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 = 20278856 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': 2557324, 'mtr_portfolio_id': 20278856, 'created_at': datetime.datetime(2025, 2, 6, 2, 47), 'result': '0.07774493339029574', 'result_long': None, 'result_double': None}] Qualite : 0.07774493339029574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20278856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20278856_06-02-2025_02_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20278856 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_P20278856_06-02-2025_02_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20278931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20278932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20278933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20278934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20278935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20278936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20278937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20278938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20278939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20278940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20278941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20278942, 'pht': 3726}}" where mtr_portfolio_id = 20278856 and dashboard_run_id = 1589302 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`=20278856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8724777, 0.07774493339029574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20278856_06-02-2025_02_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20278931, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20278932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20278933, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20278934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20278935, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20278936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20278937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20278938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20278939, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20278940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20278941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20278942, '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 = 20279015 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': 2557331, 'mtr_portfolio_id': 20279015, 'created_at': datetime.datetime(2025, 2, 6, 2, 47, 30), 'result': '0.04954117668500577', 'result_long': None, 'result_double': None}] Qualite : 0.04954117668500577 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20279015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279015_06-02-2025_02_47_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20279015 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_P20279015_06-02-2025_02_47_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20279096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279107, 'pht': 3726}}" where mtr_portfolio_id = 20279015 and dashboard_run_id = 1589302 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`=20279015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8724778, 0.04954117668500577, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279015_06-02-2025_02_47_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20279096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279097, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279107, '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 = 20279159 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': 2557341, 'mtr_portfolio_id': 20279159, 'created_at': datetime.datetime(2025, 2, 6, 2, 41, 5), 'result': '0.04048153135804388', 'result_long': None, 'result_double': None}] Qualite : 0.04048153135804388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20279159 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279159_06-02-2025_02_41_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20279159 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_P20279159_06-02-2025_02_41_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279227, 'pht': 3726}}" where mtr_portfolio_id = 20279159 and dashboard_run_id = 1589302 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`=20279159 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8724779, 0.04048153135804388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279159_06-02-2025_02_41_06.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279227, '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 = 20279384 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': 2557366, 'mtr_portfolio_id': 20279384, 'created_at': datetime.datetime(2025, 2, 6, 2, 47, 59), 'result': '0.041949976155419864', 'result_long': None, 'result_double': None}] Qualite : 0.041949976155419864 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20279384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279384_06-02-2025_02_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20279384 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_P20279384_06-02-2025_02_48_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279468, 'pht': 3726}}" where mtr_portfolio_id = 20279384 and dashboard_run_id = 1589302 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`=20279384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8724780, 0.041949976155419864, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20279384_06-02-2025_02_48_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20279457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20279458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20279459, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20279460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20279461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20279462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20279463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20279464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20279465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20279466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20279467, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20279468, '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 (20278856,20279015,20279159,20279384) result : ((1335086494,), (1335086561,), (1335086565,), (1335086613,), (1335086615,), (1335086708,), (1335087281,), (1335087336,), (1335087366,), (1335087368,), (1335087372,), (1335087373,), (1335087632,), (1335087640,), (1335087648,), (1335087730,), (1335087764,), (1335087780,), (1335087986,), (1335088011,), (1335088012,), (1335088015,), (1335088018,), (1335088021,), (1335092387,), (1335092388,), (1335092389,), (1335092390,), (1335092397,), (1335092456,), (1335077989,), (1335082355,), (1335088092,), (1335088099,), (1335088140,), (1335088156,), (1335088256,), (1335088340,), (1335088375,), (1335088378,), (1335088380,), (1335088396,), (1335088398,), (1335088399,), (1335088401,), (1335088404,), (1335088408,), (1335088416,), (1335088426,), (1335088434,), (1335088450,), (1335088451,), (1335088456,), (1335088459,), (1335088462,), (1335088466,), (1335089740,), (1335089757,), (1335089761,), (1335089784,), (1335089827,), (1335089829,), (1335090048,), (1335090049,), (1335090609,), (1335090717,), (1335090921,), (1335090923,), (1335090925,), (1335090926,), (1335090927,), (1335090928,), (1335090953,), (1335091069,), (1335091071,), (1335091152,), (1335091317,), (1335091452,), (1335091520,), (1335091760,), (1335091762,), (1335091769,), (1335091771,), (1335091808,), (1335091810,), (1335091811,), (1335091816,), (1335092376,), (1335088485,), (1335088486,), (1335088489,), (1335088490,), (1335088493,), (1335088494,), (1335088497,), (1335088498,), (1335088501,), (1335088502,), (1335088505,), (1335088506,), (1335088512,), (1335088513,), (1335088514,), (1335088515,), (1335088518,), (1335088519,), (1335088532,), (1335088534,), (1335088535,), (1335088541,), (1335088542,), (1335088543,), (1335088551,), (1335088598,), (1335088790,), (1335088797,), (1335088839,), (1335088850,), (1335088856,), (1335088887,), (1335088982,), (1335088993,), (1335088996,), (1335088998,), (1335088999,), (1335089000,), (1335089001,), (1335089009,), (1335089013,), (1335089016,), (1335089021,), (1335089023,), (1335089024,), (1335089025,), (1335089026,), (1335089030,), (1335089071,), (1335089072,), (1335089074,), (1335089075,), (1335089091,), (1335089093,), (1335089095,), (1335089097,), (1335089098,), (1335089099,), (1335089123,), (1335089135,), (1335089137,), (1335089154,), (1335089159,), (1335089167,), (1335089169,), (1335089583,), (1335088544,), (1335088545,), (1335088547,), (1335088549,), (1335088932,), (1335088935,), (1335088939,), (1335088953,), (1335088959,), (1335088961,), (1335088968,), (1335088972,), (1335088975,), (1335088977,), (1335088979,), (1335089003,), (1335089004,), (1335089006,), (1335089037,), (1335089043,), (1335089052,), (1335089055,), (1335089065,), (1335089066,), (1335089068,), (1335089069,), (1335089077,), (1335089078,), (1335089079,), (1335089080,), (1335089082,), (1335089083,), (1335089102,), (1335089103,), (1335089109,), (1335089111,), (1335089113,), (1335089409,), (1335089483,), (1335089545,), (1335089550,), (1335089560,), (1335089905,), (1335089915,), (1335089987,), (1335090014,), (1335090037,), (1335090039,), (1335090041,), (1335090042,), (1335090045,), (1335090046,), (1335090051,), (1335090171,), (1335090306,), (1335090459,), (1335090935,), (1335090939,), (1335090942,), (1335090945,), (1335090948,), (1335091576,), (1335091577,), (1335091580,), (1335091582,), (1335091584,), (1335091585,), (1335091588,), (1335091589,), (1335091592,), (1335091593,), (1335091600,), (1335091601,), (1335091750,), (1335091751,), (1335091753,), (1335091757,), (1335091948,), (1335092029,), (1335092066,), (1335092167,), (1335092326,), (1335092478,), (1335092479,), (1335092487,), (1335092489,), (1335092492,), (1335092495,), (1335092522,), (1335092523,), (1335092530,), (1335092531,), (1335092536,), (1335092537,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06022025': {'nb_upload': 94, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20279384]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948] map_info['map_portfolio_photo'] : {20279384: [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948, 1335091757, 1335091753, 1335091751, 1335091750, 1335091601, 1335091600, 1335091593, 1335091592, 1335091589, 1335091588, 1335091585, 1335091584, 1335091582, 1335091580, 1335091577, 1335091576, 1335090948, 1335090945, 1335090942, 1335090939, 1335090935, 1335090459, 1335090306, 1335090171, 1335090051, 1335090046, 1335090045, 1335090042, 1335090041, 1335090039, 1335090037, 1335090014, 1335089987, 1335089915, 1335089905, 1335089560, 1335089550, 1335089545, 1335089483, 1335089409, 1335089113, 1335089111, 1335089109, 1335089103, 1335089102, 1335089083, 1335089082, 1335089080, 1335089079, 1335089078, 1335089077, 1335089069, 1335089068, 1335089066, 1335089065, 1335089055, 1335089052, 1335089043, 1335089037, 1335089006, 1335089004, 1335089003, 1335088979, 1335088977, 1335088975, 1335088972, 1335088968, 1335088961, 1335088959, 1335088953, 1335088939, 1335088935, 1335088932, 1335088549, 1335088547, 1335088545, 1335088544]} final : True mtd_id 4302 list_pids : [1335092537, 1335092536, 1335092531, 1335092530, 1335092523, 1335092522, 1335092495, 1335092492, 1335092489, 1335092487, 1335092479, 1335092478, 1335092326, 1335092167, 1335092066, 1335092029, 1335091948] Looping around the photos to save general results len do output : 1 /20279384Didn'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, '2557366') ('4302', '20279384', '1335092537', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092536', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092531', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092530', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092523', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092522', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092495', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092492', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092489', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092487', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092479', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092478', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092326', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092167', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092066', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335092029', None, None, None, None, None, '2557366') ('4302', None, None, None, None, None, None, None, '2557366') ('4302', '20279384', '1335091948', None, None, None, None, None, '2557366') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '20279384', 'None', None, None, None, None, '2557366'), ('4302', '20279384', '1335092537', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092536', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092531', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092530', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092523', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092522', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092495', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092492', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092489', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092487', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092479', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092478', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092326', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092167', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092066', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335092029', None, None, None, None, None, '2557366'), ('4302', '20279384', '1335091948', None, None, None, None, None, '2557366')] time used for this insertion : 0.015030145645141602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.37308454513549805 time spend to save output : 0.015326499938964844 total time spend for step 5 : 0.3884110450744629 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 (2557366) 2.39user 2.43system 0:11.26elapsed 42%CPU (0avgtext+0avgdata 162040maxresident)k 696inputs+23736outputs (4major+75210minor)pagefaults 0swaps