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 : 1401154 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 (2782908) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2782908) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600238 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2782908'] with mtr_portfolio_ids : ['22600238'] and first list_photo_ids : [] new path : /proc/1401154/ Name: python3 Umask: 0002 State: R (running) Tgid: 1401154 Ngid: 0 Pid: 1401154 PPid: 1401153 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1401154 NSpid: 1401154 NSpgid: 1397525 NSsid: 1397525 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98620 kB VmRSS: 98620 kB RssAnon: 60200 kB RssFile: 38420 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 77 nonvoluntary_ctxt_switches: 135 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1401154', 'Ngid': '0', 'Pid': '1401154', 'PPid': '1401153', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1401154', 'NSpid': '1401154', 'NSpgid': '1397525', 'NSsid': '1397525', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98620 kB', 'VmRSS': '98620 kB', 'RssAnon': '60200 kB', 'RssFile': '38420 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '77', 'nonvoluntary_ctxt_switches': '135'} ('datou_batch_current', '1401154', '1107228', '0', '1107228', '865976', '98620', b'', 'marlene', '2782908') 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 (22600238) 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 (2782908 ) ) 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 (22600238) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1355260443, 'portfolio_id': 22600238}, {'photo_id': 1355260436, 'portfolio_id': 22600238}, {'photo_id': 1355260429, 'portfolio_id': 22600238}, {'photo_id': 1355260393, 'portfolio_id': 22600238}, {'photo_id': 1355260387, 'portfolio_id': 22600238}, {'photo_id': 1355260381, 'portfolio_id': 22600238}, {'photo_id': 1355260376, 'portfolio_id': 22600238}, {'photo_id': 1355260372, 'portfolio_id': 22600238}, {'photo_id': 1355260347, 'portfolio_id': 22600238}, {'photo_id': 1355260343, 'portfolio_id': 22600238}, {'photo_id': 1355260340, 'portfolio_id': 22600238}, {'photo_id': 1355260336, 'portfolio_id': 22600238}, {'photo_id': 1355260334, 'portfolio_id': 22600238}, {'photo_id': 1355260331, 'portfolio_id': 22600238}, {'photo_id': 1355260285, 'portfolio_id': 22600238}, {'photo_id': 1355260281, 'portfolio_id': 22600238}, {'photo_id': 1355260276, 'portfolio_id': 22600238}, {'photo_id': 1355260273, 'portfolio_id': 22600238}, {'photo_id': 1355260216, 'portfolio_id': 22600238}, {'photo_id': 1355260214, 'portfolio_id': 22600238}, {'photo_id': 1355260211, 'portfolio_id': 22600238}, {'photo_id': 1355260155, 'portfolio_id': 22600238}, {'photo_id': 1355260151, 'portfolio_id': 22600238}, {'photo_id': 1355260147, 'portfolio_id': 22600238}, {'photo_id': 1355260112, 'portfolio_id': 22600238}, {'photo_id': 1355260108, 'portfolio_id': 22600238}, {'photo_id': 1355260106, 'portfolio_id': 22600238}, {'photo_id': 1355260103, 'portfolio_id': 22600238}, {'photo_id': 1355260069, 'portfolio_id': 22600238}, {'photo_id': 1355260065, 'portfolio_id': 22600238}, {'photo_id': 1355260063, 'portfolio_id': 22600238}, {'photo_id': 1355260059, 'portfolio_id': 22600238}, {'photo_id': 1355260020, 'portfolio_id': 22600238}, {'photo_id': 1355260015, 'portfolio_id': 22600238}, {'photo_id': 1355260013, 'portfolio_id': 22600238}, {'photo_id': 1355260009, 'portfolio_id': 22600238}, {'photo_id': 1355259975, 'portfolio_id': 22600238}, {'photo_id': 1355259972, 'portfolio_id': 22600238}, {'photo_id': 1355259970, 'portfolio_id': 22600238}, {'photo_id': 1355259920, 'portfolio_id': 22600238}, {'photo_id': 1355259916, 'portfolio_id': 22600238}, {'photo_id': 1355259911, 'portfolio_id': 22600238}, {'photo_id': 1355259862, 'portfolio_id': 22600238}, {'photo_id': 1355259858, 'portfolio_id': 22600238}, {'photo_id': 1355259855, 'portfolio_id': 22600238}, {'photo_id': 1355259853, 'portfolio_id': 22600238}, {'photo_id': 1355259794, 'portfolio_id': 22600238}, {'photo_id': 1355259788, 'portfolio_id': 22600238}, {'photo_id': 1355259782, 'portfolio_id': 22600238}, {'photo_id': 1355259762, 'portfolio_id': 22600238}, {'photo_id': 1355259665, 'portfolio_id': 22600238}, {'photo_id': 1355259662, 'portfolio_id': 22600238}, {'photo_id': 1355259661, 'portfolio_id': 22600238}, {'photo_id': 1355259658, 'portfolio_id': 22600238}, {'photo_id': 1355259608, 'portfolio_id': 22600238}, {'photo_id': 1355259592, 'portfolio_id': 22600238}] map_portfolio_id_photo_id: {22600238: [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331, 1355260285, 1355260281, 1355260276, 1355260273, 1355260216, 1355260214, 1355260211, 1355260155, 1355260151, 1355260147, 1355260112, 1355260108, 1355260106, 1355260103, 1355260069, 1355260065, 1355260063, 1355260059, 1355260020, 1355260015, 1355260013, 1355260009, 1355259975, 1355259972, 1355259970, 1355259920, 1355259916, 1355259911, 1355259862, 1355259858, 1355259855, 1355259853, 1355259794, 1355259788, 1355259782, 1355259762, 1355259665, 1355259662, 1355259661, 1355259658, 1355259608, 1355259592]} ##### 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.016329050064086914 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri May 2 11:30: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 (22600238) 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 : 22600238 get user id for portfolio 22600238 get sub ptf for main ptf 22600238, type 3726 and hashtags ['papier', 'autre_refus', 'Carton_brun', 'plastique', 'mal_croppe', 'metal', 'Carton_gris', 'environnement', 'Teint_Dans_La_Masse', 'flou', 'cartonnette', 'kraft'] 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`=22600238 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','Carton_brun','plastique','mal_croppe','metal','Carton_gris','environnement','Teint_Dans_La_Masse','flou','cartonnette','kraft')) 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`=22600238 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','Carton_brun','plastique','mal_croppe','metal','Carton_gris','environnement','Teint_Dans_La_Masse','flou','cartonnette','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22600238, 'sub_port_id': 22600268, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029818, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}, 'papier': {'main_port_id': 22600238, 'sub_port_id': 22600269, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029819, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}, 'environnement': {'main_port_id': 22600238, 'sub_port_id': 22600270, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029820, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}, 'kraft': {'main_port_id': 22600238, 'sub_port_id': 22600271, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029821, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}, 'mal_croppe': {'main_port_id': 22600238, 'sub_port_id': 22600272, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029822, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}, 'plastique': {'main_port_id': 22600238, 'sub_port_id': 22600273, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029823, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22600238, 'sub_port_id': 22600274, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029824, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}, 'metal': {'main_port_id': 22600238, 'sub_port_id': 22600275, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029825, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}, 'autre_refus': {'main_port_id': 22600238, 'sub_port_id': 22600276, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029826, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}, 'Carton_gris': {'main_port_id': 22600238, 'sub_port_id': 22600277, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029827, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}, 'flou': {'main_port_id': 22600238, 'sub_port_id': 22600278, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029828, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}, 'cartonnette': {'main_port_id': 22600238, 'sub_port_id': 22600279, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029829, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600268 , 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=22600238 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 (22600268) result : ((1355260090,), (1355260306,), (1355260307,), (1355260497,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600269 , 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=22600238 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 (22600269) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600270 , 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=22600238 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 (22600270) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600271 , 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=22600238 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 (22600271) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600272 , 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=22600238 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 (22600272) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600273 , 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=22600238 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 (22600273) result : ((1355260041,), (1355260042,), (1355260086,), (1355260087,), (1355260092,), (1355260182,), (1355260308,), (1355260498,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600274 , 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=22600238 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 (22600274) result : ((1355259884,), (1355259898,), (1355259899,), (1355259900,), (1355259902,), (1355259903,), (1355259904,), (1355259905,), (1355260037,), (1355260407,), (1355260486,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600275 , 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=22600238 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 (22600275) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600276 , 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=22600238 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 (22600276) result : ((1355259886,), (1355260039,), (1355260178,), (1355260304,), (1355260305,), (1355260487,), (1355260488,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600277 , 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=22600238 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 (22600277) result : ((1355259888,), (1355259906,), (1355260084,), (1355260490,), (1355260491,), (1355260492,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600278 , 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=22600238 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 (22600278) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22600279 , 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=22600238 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 (22600279) result : ((1355260181,), (1355260411,), (1355260412,), (1355260495,), (1355260496,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22600238) result : ((1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22600238 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','Carton_brun','plastique','mal_croppe','metal','Carton_gris','environnement','Teint_Dans_La_Masse','flou','cartonnette','kraft')) 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`=22600238 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','Carton_brun','plastique','mal_croppe','metal','Carton_gris','environnement','Teint_Dans_La_Masse','flou','cartonnette','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22600238, 'sub_port_id': 22600280, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029830, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}, 'papier': {'main_port_id': 22600238, 'sub_port_id': 22600281, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029831, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}, 'environnement': {'main_port_id': 22600238, 'sub_port_id': 22600282, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029832, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}, 'kraft': {'main_port_id': 22600238, 'sub_port_id': 22600283, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029833, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}, 'mal_croppe': {'main_port_id': 22600238, 'sub_port_id': 22600284, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029834, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}, 'plastique': {'main_port_id': 22600238, 'sub_port_id': 22600285, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029835, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 22600238, 'sub_port_id': 22600286, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029836, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}, 'metal': {'main_port_id': 22600238, 'sub_port_id': 22600287, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029837, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}, 'autre_refus': {'main_port_id': 22600238, 'sub_port_id': 22600288, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029838, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}, 'Carton_gris': {'main_port_id': 22600238, 'sub_port_id': 22600289, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029839, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}, 'flou': {'main_port_id': 22600238, 'sub_port_id': 22600290, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029840, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 17, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}, 'cartonnette': {'main_port_id': 22600238, 'sub_port_id': 22600291, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15029841, 'last_updated_at': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 11, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 11, 17, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600280,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600268 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600269 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600271 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600272 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600273 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600286,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600274 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600287,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600275 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600277 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22600291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22600279 lien utilise dans velours : https://www.fotonower.com/velours/22600280,22600281,22600282,22600283,22600284,22600285,22600286,22600287,22600288,22600289,22600290,22600291?tags=Carton_brun,papier,environnement,kraft,mal_croppe,plastique,Teint_Dans_La_Masse,metal,autre_refus,Carton_gris,flou,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22600238]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331] map_info['map_portfolio_photo'] : {22600238: [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331, 1355260285, 1355260281, 1355260276, 1355260273, 1355260216, 1355260214, 1355260211, 1355260155, 1355260151, 1355260147, 1355260112, 1355260108, 1355260106, 1355260103, 1355260069, 1355260065, 1355260063, 1355260059, 1355260020, 1355260015, 1355260013, 1355260009, 1355259975, 1355259972, 1355259970, 1355259920, 1355259916, 1355259911, 1355259862, 1355259858, 1355259855, 1355259853, 1355259794, 1355259788, 1355259782, 1355259762, 1355259665, 1355259662, 1355259661, 1355259658, 1355259608, 1355259592]} final : False mtd_id 4302 list_pids : [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331] Looping around the photos to save general results len do output : 1 /22600238. 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, '2782908') ('4302', '22600238', '1355260443', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260436', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260429', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260393', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260387', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260381', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260376', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260372', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260347', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260343', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260340', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260336', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260334', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260331', None, None, None, None, None, '2782908') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22600238', "{'Carton_brun': 22600268, 'papier': 22600269, 'environnement': 22600270, 'kraft': 22600271, 'mal_croppe': 22600272, 'plastique': 22600273, 'Teint_Dans_La_Masse': 22600274, 'metal': 22600275, 'autre_refus': 22600276, 'Carton_gris': 22600277, 'flou': 22600278, 'cartonnette': 22600279}", None, None, None, None, '2782908'), ('4302', '22600238', '1355260443', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260436', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260429', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260393', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260387', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260381', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260376', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260372', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260347', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260343', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260340', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260336', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260334', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260331', None, None, None, None, None, '2782908')] time used for this insertion : 0.013386249542236328 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4613041877746582 time spend to save output : 0.013746023178100586 total time spend for step 1 : 1.4750502109527588 step2:final Fri May 2 11:31:00 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 (22600238) 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 22600238 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1355259608,1355259592,1355259665,1355259662,1355259661,1355259658,1355259794,1355259788,1355259782,1355259762,1355259862,1355259858,1355259855,1355259853,1355259920,1355259916,1355259911,1355259975,1355259972,1355260020,1355259970,1355260015,1355260013,1355260009,1355260069,1355260065,1355260063,1355260059,1355260112,1355260108,1355260106,1355260103,1355260155,1355260151,1355260147,1355260216,1355260214,1355260211,1355260285,1355260281,1355260276,1355260273,1355260347,1355260343,1355260340,1355260336,1355260334,1355260331,1355260393,1355260387,1355260381,1355260376,1355260372,1355260443,1355260436,1355260429); 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([22600238]) Inside saveOutput : final : False verbose : True original output for save of step final : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} new output for save of step final : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331] map_info['map_portfolio_photo'] : {22600238: [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331, 1355260285, 1355260281, 1355260276, 1355260273, 1355260216, 1355260214, 1355260211, 1355260155, 1355260151, 1355260147, 1355260112, 1355260108, 1355260106, 1355260103, 1355260069, 1355260065, 1355260063, 1355260059, 1355260020, 1355260015, 1355260013, 1355260009, 1355259975, 1355259972, 1355259970, 1355259920, 1355259916, 1355259911, 1355259862, 1355259858, 1355259855, 1355259853, 1355259794, 1355259788, 1355259782, 1355259762, 1355259665, 1355259662, 1355259661, 1355259658, 1355259608, 1355259592]} final : False mtd_id 4302 list_pids : [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331] Looping around the photos to save general results len do output : 14 /1355260443.Didn't retrieve data . /1355260436.Didn't retrieve data . /1355260429.Didn't retrieve data . /1355260393.Didn't retrieve data . /1355260387.Didn't retrieve data . /1355260381.Didn't retrieve data . /1355260376.Didn't retrieve data . /1355260372.Didn't retrieve data . /1355260347.Didn't retrieve data . /1355260343.Didn't retrieve data . /1355260340.Didn't retrieve data . /1355260336.Didn't retrieve data . /1355260334.Didn't retrieve data . /1355260331.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, '2782908') ('4302', '22600238', '1355260443', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260436', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260429', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260393', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260387', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260381', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260376', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260372', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260347', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260343', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260340', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260336', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260334', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260331', None, None, None, None, None, '2782908') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '22600238', '1355260443', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260436', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260429', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260393', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260387', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260381', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260376', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260372', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260347', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260343', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260340', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260336', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260334', '0.04529418905699722', None, None, None, None, '2782908'), ('4302', '22600238', '1355260331', '0.04529418905699722', None, None, None, None, '2782908')] time used for this insertion : 0.013579607009887695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06962060928344727 time spend to save output : 0.014104604721069336 total time spend for step 2 : 0.0837252140045166 step3:velours_tree Fri May 2 11:31:00 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 : {22600238: [{'Carton_brun': 22600268, 'papier': 22600269, 'environnement': 22600270, 'kraft': 22600271, 'mal_croppe': 22600272, 'plastique': 22600273, 'Teint_Dans_La_Masse': 22600274, 'metal': 22600275, 'autre_refus': 22600276, 'Carton_gris': 22600277, 'flou': 22600278, 'cartonnette': 22600279}]} input_args_next_step : {22600238: ()} output_args : {22600238: [{'Carton_brun': 22600268, 'papier': 22600269, 'environnement': 22600270, 'kraft': 22600271, 'mal_croppe': 22600272, 'plastique': 22600273, 'Teint_Dans_La_Masse': 22600274, 'metal': 22600275, 'autre_refus': 22600276, 'Carton_gris': 22600277, 'flou': 22600278, 'cartonnette': 22600279}]} args : 22600238 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 22600268, 'papier': 22600269, 'environnement': 22600270, 'kraft': 22600271, 'mal_croppe': 22600272, 'plastique': 22600273, 'Teint_Dans_La_Masse': 22600274, 'metal': 22600275, 'autre_refus': 22600276, 'Carton_gris': 22600277, 'flou': 22600278, 'cartonnette': 22600279},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22600238) 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([22600238]) 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.2879464626312256 time spend to save output : 5.221366882324219e-05 total time spend for step 3 : 0.28799867630004883 step4:send_mail_cod Fri May 2 11:31:00 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 : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} input_args_next_step : {1355260443: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260443 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260436 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260429 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260393 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260387 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260381 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260376 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260372 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260347 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260343 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260340 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260336 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260334 depend.output_id : 0 input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ()} output_args : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',)} args : 1355260331 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 : {22600238: [{'Carton_brun': 22600268, 'papier': 22600269, 'environnement': 22600270, 'kraft': 22600271, 'mal_croppe': 22600272, 'plastique': 22600273, 'Teint_Dans_La_Masse': 22600274, 'metal': 22600275, 'autre_refus': 22600276, 'Carton_gris': 22600277, 'flou': 22600278, 'cartonnette': 22600279}]} input_args_next_step : {1355260443: ('0.04529418905699722',), 1355260436: ('0.04529418905699722',), 1355260429: ('0.04529418905699722',), 1355260393: ('0.04529418905699722',), 1355260387: ('0.04529418905699722',), 1355260381: ('0.04529418905699722',), 1355260376: ('0.04529418905699722',), 1355260372: ('0.04529418905699722',), 1355260347: ('0.04529418905699722',), 1355260343: ('0.04529418905699722',), 1355260340: ('0.04529418905699722',), 1355260336: ('0.04529418905699722',), 1355260334: ('0.04529418905699722',), 1355260331: ('0.04529418905699722',), 22600238: ()} output_args : {22600238: [{'Carton_brun': 22600268, 'papier': 22600269, 'environnement': 22600270, 'kraft': 22600271, 'mal_croppe': 22600272, 'plastique': 22600273, 'Teint_Dans_La_Masse': 22600274, 'metal': 22600275, 'autre_refus': 22600276, 'Carton_gris': 22600277, 'flou': 22600278, 'cartonnette': 22600279}]} args : 22600238 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 :15, first value : ('0.04529418905699722',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22600238) 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 (1355260443,1355260436,1355260429,1355260393,1355260387,1355260381,1355260376,1355260372,1355260347,1355260343,1355260340,1355260336,1355260334,1355260331) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1355260331 begin to download photo : 1355260340 begin to download photo : 1355260372 begin to download photo : 1355260387 begin to download photo : 1355260436 download finish for photo 1355260436 begin to download photo : 1355260443 download finish for photo 1355260340 begin to download photo : 1355260343 download finish for photo 1355260331 begin to download photo : 1355260334 download finish for photo 1355260372 begin to download photo : 1355260376 download finish for photo 1355260387 begin to download photo : 1355260393 download finish for photo 1355260443 download finish for photo 1355260393 begin to download photo : 1355260429 download finish for photo 1355260376 begin to download photo : 1355260381 download finish for photo 1355260343 begin to download photo : 1355260347 download finish for photo 1355260334 begin to download photo : 1355260336 download finish for photo 1355260429 download finish for photo 1355260381 download finish for photo 1355260347 download finish for photo 1355260336 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette226002711746178260/ imagette226002721746178260/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22600238_02-05-2025_11_31_00.pdf 22600271 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=22600271 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226002711746178260 22600272 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=22600272 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226002721746178260 22600273 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=22600273 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355260041: '1746177732_2530663_1355259862_dfbe2e0482f545250356b31e0a53d178_rle_crop_3779518280_0.png', 1355260042: '1746177732_2530663_1355259862_dfbe2e0482f545250356b31e0a53d178_rle_crop_3779518279_0.png', 1355260086: '1746177793_2531168_1355260020_71a775e9324ccfdc4383f16e0f79652b_rle_crop_3779519449_0.png', 1355260087: '1746177793_2531168_1355259970_968b0c95110d055868978a8182e749c6_rle_crop_3779519471_0.png', 1355260092: '1746177805_388751_1355260015_1faf3cd7120a66f5fefe0a4cfebc316f_rle_crop_3779519483_0.png', 1355260182: '1746177910_2532609_1355260063_77ba8c48376604017bd1bda39ee483c1_rle_crop_3779519929_0.png', 1355260308: '1746178033_2533625_1355260151_a94b4bbaacddda126631a96bb14a6aec_rle_crop_3779520419_0.png', 1355260498: '1746178212_2535394_1355259858_135e0cea5a52ea1625d2080ced280ea9_rle_crop_3779521435_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/3d5c47ae2139c93d76b2640376305154_45766857.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/dadf349f99bc59e3db1720b0b1c5e286_25678925.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/38b94be75fe925104e08893f077900f6_36365695.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/c3b16076f1e3698b2e470a949bef6ceb_63375816.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/268f7b4ef07be6ab3e7520d01a006e9a_34477669.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/6adafb777bce330b2e864a6bf60c081e_56315066.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d5cb893767a1e601529b51265dd26f5b_4407972.png change filename to text .imagette226002731746178260/ imagette226002731746178260/1746177732_2530663_1355259862_dfbe2e0482f545250356b31e0a53d178_rle_crop_3779518279_0.png.png imagette226002731746178260/1746177793_2531168_1355260020_71a775e9324ccfdc4383f16e0f79652b_rle_crop_3779519449_0.png.png imagette226002731746178260/1746177732_2530663_1355259862_dfbe2e0482f545250356b31e0a53d178_rle_crop_3779518280_0.png.png imagette226002731746178260/1746177793_2531168_1355259970_968b0c95110d055868978a8182e749c6_rle_crop_3779519471_0.png.png imagette226002731746178260/1746178212_2535394_1355259858_135e0cea5a52ea1625d2080ced280ea9_rle_crop_3779521435_0.png.png imagette226002731746178260/1746178033_2533625_1355260151_a94b4bbaacddda126631a96bb14a6aec_rle_crop_3779520419_0.png.png imagette226002731746178260/1746177910_2532609_1355260063_77ba8c48376604017bd1bda39ee483c1_rle_crop_3779519929_0.png.png imagette226002731746178260/1746177805_388751_1355260015_1faf3cd7120a66f5fefe0a4cfebc316f_rle_crop_3779519483_0.png.png imagette226002751746178261/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/fdc33851dba1fd9385e9020f858ca585_30873929.png imagette226002731746178260 22600275 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=22600275 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226002751746178261 22600276 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=22600276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355259886: '1746177553_2528643_1355259762_05ab87573b16ea145f6967a0f9d31f07_rle_crop_3779517489_0.png', 1355260039: '1746177732_2530663_1355259862_dfbe2e0482f545250356b31e0a53d178_rle_crop_3779518285_0.png', 1355260178: '1746177910_2532609_1355260065_d2804b32b2394002541651974688e76f_rle_crop_3779519914_0.png', 1355260304: '1746178033_2533625_1355260151_a94b4bbaacddda126631a96bb14a6aec_rle_crop_3779520425_0.png', 1355260305: '1746178033_2533625_1355260151_a94b4bbaacddda126631a96bb14a6aec_rle_crop_3779520422_0.png', 1355260487: '1746178212_2535394_1355259920_37abcf378cfc6b090b2b18877e70131c_rle_crop_3779521414_0.png', 1355260488: '1746178212_2535394_1355259858_135e0cea5a52ea1625d2080ced280ea9_rle_crop_3779521428_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/cde114e12294f61a59472d38482a0d26_87892424.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/3db892e9a953ccb62a6b6a5b9e9bc9fa_1089858.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/85e4a242db7fa0a16b7545ea15843f2c_98071612.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/88a5a752916b940a8c99ed3b2ea34481_62056155.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/4f211d9e126cebc540ecf41de8e672bf_82091866.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/f38b1c9239a2e29484302c5fe0f935d0_99545790.png change filename to text .imagette226002761746178261/ imagette226002761746178261/1746177910_2532609_1355260065_d2804b32b2394002541651974688e76f_rle_crop_3779519914_0.png.png imagette226002761746178261/1746178212_2535394_1355259858_135e0cea5a52ea1625d2080ced280ea9_rle_crop_3779521428_0.png.png imagette226002761746178261/1746178212_2535394_1355259920_37abcf378cfc6b090b2b18877e70131c_rle_crop_3779521414_0.png.png imagette226002761746178261/1746178033_2533625_1355260151_a94b4bbaacddda126631a96bb14a6aec_rle_crop_3779520425_0.png.png imagette226002761746178261/1746177732_2530663_1355259862_dfbe2e0482f545250356b31e0a53d178_rle_crop_3779518285_0.png.png imagette226002761746178261/1746177553_2528643_1355259762_05ab87573b16ea145f6967a0f9d31f07_rle_crop_3779517489_0.png.png imagette226002761746178261/1746178033_2533625_1355260151_a94b4bbaacddda126631a96bb14a6aec_rle_crop_3779520422_0.png.png imagette226002781746178261/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/c488a1e80c5b0412f699c6d1dc88cfaa_72922678.png imagette226002761746178261 22600278 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=22600278 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226002781746178261 22600279 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=22600279 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355260181: '1746177910_2532609_1355260112_075d188fadbb68967e024025e07af944_rle_crop_3779519907_0.png', 1355260411: '1746178152_2534816_1355260281_473c9e5f8e099c432b9b78efd096109f_rle_crop_3779521085_0.png', 1355260412: '1746178152_2534816_1355260276_596905d76f47cefef45d68e47698309b_rle_crop_3779521099_0.png', 1355260495: '1746178212_2535394_1355259920_37abcf378cfc6b090b2b18877e70131c_rle_crop_3779521417_0.png', 1355260496: '1746178212_2535394_1355259858_135e0cea5a52ea1625d2080ced280ea9_rle_crop_3779521433_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/4dc69ecc2ab1e919094f5e56fc5fdf19_48351975.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/c01fde0fec127b81c8ad7c50a990bb91_48970213.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/e073e3f2b6374871c06e138ee6450fb4_74013804.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/fb33687d38cae0cc94e99a749451ee2b_32330675.png change filename to text .imagette226002791746178261/ imagette226002791746178261/1746177910_2532609_1355260112_075d188fadbb68967e024025e07af944_rle_crop_3779519907_0.png.png imagette226002791746178261/1746178152_2534816_1355260276_596905d76f47cefef45d68e47698309b_rle_crop_3779521099_0.png.png imagette226002791746178261/1746178212_2535394_1355259858_135e0cea5a52ea1625d2080ced280ea9_rle_crop_3779521433_0.png.png imagette226002791746178261/1746178212_2535394_1355259920_37abcf378cfc6b090b2b18877e70131c_rle_crop_3779521417_0.png.png imagette226002791746178261/1746178152_2534816_1355260281_473c9e5f8e099c432b9b78efd096109f_rle_crop_3779521085_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d04e1f5d5a45f0896dd2b9cd3bff35f1_81122859.png imagette226002791746178261 22600268 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=22600268 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355260090: '1746177805_388751_1355260009_cb62e8f9f08a10870aa33aa1bf2e2fc9_rle_crop_3779519517_0.png', 1355260306: '1746178033_2533625_1355260151_a94b4bbaacddda126631a96bb14a6aec_rle_crop_3779520423_0.png', 1355260307: '1746178033_2533625_1355260147_f50dd9d4cdac572402c4c6c8379705ff_rle_crop_3779520436_0.png', 1355260497: '1746178212_2535394_1355259920_37abcf378cfc6b090b2b18877e70131c_rle_crop_3779521419_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/72c6bfccffbb73879702959e316e7f8f_67579948.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/53e5b645b9691648b5ed9e2615884ff5_75110371.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/858874c6ad91585262b84799fe117e3f_94776444.png change filename to text .imagette226002681746178262/ imagette226002681746178262/1746178033_2533625_1355260151_a94b4bbaacddda126631a96bb14a6aec_rle_crop_3779520423_0.png.png imagette226002681746178262/1746177805_388751_1355260009_cb62e8f9f08a10870aa33aa1bf2e2fc9_rle_crop_3779519517_0.png.png imagette226002681746178262/1746178033_2533625_1355260147_f50dd9d4cdac572402c4c6c8379705ff_rle_crop_3779520436_0.png.png imagette226002681746178262/1746178212_2535394_1355259920_37abcf378cfc6b090b2b18877e70131c_rle_crop_3779521419_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/8ddc304f80900fe2d72134d85fc3e4dc_55944019.png imagette226002681746178262 22600274 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=22600274 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355259884: '1746177553_2528643_1355259762_05ab87573b16ea145f6967a0f9d31f07_rle_crop_3779517493_0.png', 1355259898: '1746177566_1426066_1355259794_398c463b2736e5777e5f57fdcc59176b_rle_crop_3779517502_0.png', 1355259899: '1746177566_1426066_1355259794_398c463b2736e5777e5f57fdcc59176b_rle_crop_3779517507_0.png', 1355259900: '1746177566_1426066_1355259661_37337fdfaeaba53db473549105855273_rle_crop_3779517523_0.png', 1355259902: '1746177566_1426066_1355259661_37337fdfaeaba53db473549105855273_rle_crop_3779517527_0.png', 1355259903: '1746177566_1426066_1355259661_37337fdfaeaba53db473549105855273_rle_crop_3779517534_0.png', 1355259904: '1746177566_1426066_1355259658_f8cb85f44ee3b1b17c1cc595d1d14149_rle_crop_3779517544_0.png', 1355259905: '1746177566_1426066_1355259658_f8cb85f44ee3b1b17c1cc595d1d14149_rle_crop_3779517548_0.png', 1355260037: '1746177732_2530663_1355259862_dfbe2e0482f545250356b31e0a53d178_rle_crop_3779518286_0.png', 1355260407: '1746178152_2534816_1355260273_92cb2de0acb44efa6ca7d253d5f59eea_rle_crop_3779521107_0.png', 1355260486: '1746178212_2535394_1355259858_135e0cea5a52ea1625d2080ced280ea9_rle_crop_3779521432_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/532ec8be90eed3556b61ad102d730d11_61716013.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/3b1b4deff3921b84f6cb94bfee536372_37020468.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/66652fef7cbe9d4e785fe368325a68b9_72475273.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/9bd70b397a5e51a72ecbbade80289641_34581757.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/a7624af3221d2839388ce1ae45d667cd_21120519.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d107286e08b630b28db7033d095cce99_63589683.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/e9f183aada9b5143e2a2ce55bc64bdc1_97175990.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/fcfa73661af2523286c93dd7c9909b80_8374643.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/4c7697d60e84f9ba8bad5f95b2bc8f99_9341549.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/6d323218562ea54dc9876ee514af8df1_81082034.png change filename to text .imagette226002741746178262/ imagette226002741746178262/1746177566_1426066_1355259661_37337fdfaeaba53db473549105855273_rle_crop_3779517523_0.png.png imagette226002741746178262/1746178152_2534816_1355260273_92cb2de0acb44efa6ca7d253d5f59eea_rle_crop_3779521107_0.png.png imagette226002741746178262/1746177566_1426066_1355259794_398c463b2736e5777e5f57fdcc59176b_rle_crop_3779517507_0.png.png imagette226002741746178262/1746178212_2535394_1355259858_135e0cea5a52ea1625d2080ced280ea9_rle_crop_3779521432_0.png.png imagette226002741746178262/1746177566_1426066_1355259794_398c463b2736e5777e5f57fdcc59176b_rle_crop_3779517502_0.png.png imagette226002741746178262/1746177566_1426066_1355259658_f8cb85f44ee3b1b17c1cc595d1d14149_rle_crop_3779517544_0.png.png imagette226002741746178262/1746177566_1426066_1355259661_37337fdfaeaba53db473549105855273_rle_crop_3779517534_0.png.png imagette226002741746178262/1746177566_1426066_1355259658_f8cb85f44ee3b1b17c1cc595d1d14149_rle_crop_3779517548_0.png.png imagette226002741746178262/1746177732_2530663_1355259862_dfbe2e0482f545250356b31e0a53d178_rle_crop_3779518286_0.png.png imagette226002741746178262/1746177566_1426066_1355259661_37337fdfaeaba53db473549105855273_rle_crop_3779517527_0.png.png imagette226002741746178262/1746177553_2528643_1355259762_05ab87573b16ea145f6967a0f9d31f07_rle_crop_3779517493_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/ed0162eeb59e8894e536aa49092f8491_95652186.png imagette226002741746178262 22600277 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=22600277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355259888: '1746177553_2528643_1355259788_fd12f14eaf207e953375ac41d6246c92_rle_crop_3779517464_0.png', 1355259906: '1746177566_1426066_1355259794_398c463b2736e5777e5f57fdcc59176b_rle_crop_3779517498_0.png', 1355260084: '1746177793_2531168_1355260020_71a775e9324ccfdc4383f16e0f79652b_rle_crop_3779519447_0.png', 1355260490: '1746178212_2535394_1355259920_37abcf378cfc6b090b2b18877e70131c_rle_crop_3779521416_0.png', 1355260491: '1746178212_2535394_1355259858_135e0cea5a52ea1625d2080ced280ea9_rle_crop_3779521425_0.png', 1355260492: '1746178212_2535394_1355259853_17c36739b8f8a4e4a60d5442cc95699e_rle_crop_3779521457_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/e2899034838ae3d9910a75ff756acd40_93195394.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/b99e26f1ecdfba5411163b8e5c5a8172_94519357.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/7f4ff8bf90b9328a53dd6cf9a107a36b_23647879.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/7ecc438159fd8083aae24aa1bd4447e9_45514189.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/089b9e7223787a0a8be85bdee5cf2ad1_22630629.png change filename to text .imagette226002771746178264/ imagette226002771746178264/1746178212_2535394_1355259920_37abcf378cfc6b090b2b18877e70131c_rle_crop_3779521416_0.png.png imagette226002771746178264/1746178212_2535394_1355259853_17c36739b8f8a4e4a60d5442cc95699e_rle_crop_3779521457_0.png.png imagette226002771746178264/1746178212_2535394_1355259858_135e0cea5a52ea1625d2080ced280ea9_rle_crop_3779521425_0.png.png imagette226002771746178264/1746177793_2531168_1355260020_71a775e9324ccfdc4383f16e0f79652b_rle_crop_3779519447_0.png.png imagette226002771746178264/1746177553_2528643_1355259788_fd12f14eaf207e953375ac41d6246c92_rle_crop_3779517464_0.png.png imagette226002771746178264/1746177566_1426066_1355259794_398c463b2736e5777e5f57fdcc59176b_rle_crop_3779517498_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/323ab324fccd9ed7f1dbf7ebef329f87_48821681.png imagette226002771746178264 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22600238 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22600280,22600281,22600282,22600283,22600284,22600285,22600286,22600287,22600288,22600289,22600290,22600291?tags=Carton_brun,papier,environnement,kraft,mal_croppe,plastique,Teint_Dans_La_Masse,metal,autre_refus,Carton_gris,flou,cartonnette your option no_mail is active, we will not send the real mail to your client args[1355260443] : ('0.04529418905699722',) no score found for photo 1355260443 We are sending mail with results at report@fotonower.com args[1355260436] : ('0.04529418905699722',) no score found for photo 1355260436 We are sending mail with results at report@fotonower.com args[1355260429] : ('0.04529418905699722',) no score found for photo 1355260429 We are sending mail with results at report@fotonower.com args[1355260393] : ('0.04529418905699722',) no score found for photo 1355260393 We are sending mail with results at report@fotonower.com args[1355260387] : ('0.04529418905699722',) no score found for photo 1355260387 We are sending mail with results at report@fotonower.com args[1355260381] : ('0.04529418905699722',) no score found for photo 1355260381 We are sending mail with results at report@fotonower.com args[1355260376] : ('0.04529418905699722',) no score found for photo 1355260376 We are sending mail with results at report@fotonower.com args[1355260372] : ('0.04529418905699722',) no score found for photo 1355260372 We are sending mail with results at report@fotonower.com args[1355260347] : ('0.04529418905699722',) no score found for photo 1355260347 We are sending mail with results at report@fotonower.com args[1355260343] : ('0.04529418905699722',) no score found for photo 1355260343 We are sending mail with results at report@fotonower.com args[1355260340] : ('0.04529418905699722',) no score found for photo 1355260340 We are sending mail with results at report@fotonower.com args[1355260336] : ('0.04529418905699722',) no score found for photo 1355260336 We are sending mail with results at report@fotonower.com args[1355260334] : ('0.04529418905699722',) no score found for photo 1355260334 We are sending mail with results at report@fotonower.com args[1355260331] : ('0.04529418905699722',) no score found for photo 1355260331 We are sending mail with results at report@fotonower.com refus_total : 0.04529418905699722 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=22600238 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_P22600238_02-05-2025_11_31_00.pdf results_Auto_P22600238_02-05-2025_11_31_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22600238_02-05-2025_11_31_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','22600238','results_Auto_P22600238_02-05-2025_11_31_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22600238_02-05-2025_11_31_00.pdf','pdf','','0.24','0.04529418905699722') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22600238]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331] map_info['map_portfolio_photo'] : {22600238: [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331, 1355260285, 1355260281, 1355260276, 1355260273, 1355260216, 1355260214, 1355260211, 1355260155, 1355260151, 1355260147, 1355260112, 1355260108, 1355260106, 1355260103, 1355260069, 1355260065, 1355260063, 1355260059, 1355260020, 1355260015, 1355260013, 1355260009, 1355259975, 1355259972, 1355259970, 1355259920, 1355259916, 1355259911, 1355259862, 1355259858, 1355259855, 1355259853, 1355259794, 1355259788, 1355259782, 1355259762, 1355259665, 1355259662, 1355259661, 1355259658, 1355259608, 1355259592]} final : False mtd_id 4302 list_pids : [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331] 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, '2782908') ('4302', '22600238', '1355260443', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260436', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260429', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260393', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260387', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260381', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260376', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260372', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260347', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260343', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260340', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260336', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260334', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260331', None, None, None, None, None, '2782908') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22600238', '1355260443', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260436', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260429', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260393', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260387', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260381', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260376', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260372', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260347', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260343', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260340', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260336', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260334', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260331', None, None, None, None, None, '2782908')] time used for this insertion : 0.01586127281188965 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.752900123596191 time spend to save output : 0.016117572784423828 total time spend for step 4 : 5.769017696380615 step5:split_time_score Fri May 2 11:31: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 : ['22600238'] 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 : [('22600238',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22600238) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1355260436: {'path': 'temp/1746178260_1401154_1355260436_62dc69261be0d3da3261b47abd6c2636.jpg', 'extension': 'jpg'}, 1355260443: {'path': 'temp/1746178260_1401154_1355260443_77c4d8a1e7392632ef13a83ef6022b2a.jpg', 'extension': 'jpg'}, 1355260387: {'path': 'temp/1746178260_1401154_1355260387_49092f9db008178bca435227c73e5163.jpg', 'extension': 'jpg'}, 1355260393: {'path': 'temp/1746178260_1401154_1355260393_3a695135332d6abaed8c14abfafc6f80.jpg', 'extension': 'jpg'}, 1355260429: {'path': 'temp/1746178260_1401154_1355260429_cf21651fcd293771ebdeb97c0c341818.jpg', 'extension': 'jpg'}, 1355260372: {'path': 'temp/1746178260_1401154_1355260372_1200d77a494f7447c689a8978da9c7d5.jpg', 'extension': 'jpg'}, 1355260376: {'path': 'temp/1746178260_1401154_1355260376_1a1cb96024702b70fb7158d73bfe2738.jpg', 'extension': 'jpg'}, 1355260381: {'path': 'temp/1746178260_1401154_1355260381_b4fd78bdb6ef0e541d5b0a22596c5085.jpg', 'extension': 'jpg'}, 1355260340: {'path': 'temp/1746178260_1401154_1355260340_e59fb276c2dde218bc76e79518bd84cd.jpg', 'extension': 'jpg'}, 1355260343: {'path': 'temp/1746178260_1401154_1355260343_37ae4b67519ce3cde4115cc0077b966f.jpg', 'extension': 'jpg'}, 1355260347: {'path': 'temp/1746178260_1401154_1355260347_dc9c1870f61b98d1f3f03525247dcd90.jpg', 'extension': 'jpg'}, 1355260331: {'path': 'temp/1746178260_1401154_1355260331_bc0c8f090068dc4ab170ad42e92bf239.jpg', 'extension': 'jpg'}, 1355260334: {'path': 'temp/1746178260_1401154_1355260334_2fcbc4748506027f655796e7ff5f70e8.jpg', 'extension': 'jpg'}, 1355260336: {'path': 'temp/1746178260_1401154_1355260336_d91d6b8cb6740b069a96bafb5e2e9b4e.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 = 22600238; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22600238 group by h (('11', 56),) 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=22600238 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 (22600238) 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 (22600238) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02052025 22600238 Nombre de photos uploadées : 56 / 23040 (0%) 02052025 22600238 Nombre de photos taguées (types de déchets): 0 / 56 (0%) 02052025 22600238 Nombre de photos taguées (volume) : 0 / 56 (0%) [{'photo_id': 1355259608, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/f94bf4b90d343a16004c981dbb1bf97b.jpg', 'username': None, 'uploaded_at': 1746177367, 'text': 'image_02052025_11_15_03_009140m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1355259592, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/80ce3604e472ec6c13b2f86cac2ae675.jpg', 'username': None, 'uploaded_at': 1746177367, 'text': 'image_02052025_11_15_13_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355259665, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/ca461738d1d23a99efb5aa83698db6f9.jpg', 'username': None, 'uploaded_at': 1746177428, 'text': 'image_02052025_11_15_54_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355259662, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/3b92410e76c5f685b66a8ded0b7e3b22.jpg', 'username': None, 'uploaded_at': 1746177428, 'text': 'image_02052025_11_16_13_009127m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 8.821487426757812e-06 ???????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024535655975341797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22600238, '2025-05-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1765550,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023398876190185547 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= 1765550 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1765550, 'dashboard_run_id': 1774520, 'mtr_portfolio_id': 22598714, 'dashboard_result_id': 10240883, '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_P22598714_02-05-2025_10_47_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22598743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22598744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22598745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22598746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22598747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22598748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22598749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22598750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22598751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22598752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22598753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22598754, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1774520, 'mtr_portfolio_id': 22599216, 'dashboard_result_id': 10240884, '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_P22599216_02-05-2025_11_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22599221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22599222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22599223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22599224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22599225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22599226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22599227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22599228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22599229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22599230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22599231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22599232, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1774520, 'mtr_portfolio_id': 22599783, 'dashboard_result_id': 10240885, '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_P22599783_02-05-2025_11_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22599842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22599843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22599845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22599846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22599847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22599849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22599850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22599851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22599852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22599853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22599854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22599855, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1774520, 'mtr_portfolio_id': 22600238, 'dashboard_result_id': 10240886, '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_P22600238_02-05-2025_11_29_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22600268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22600269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22600270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22600271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22600272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22600273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22600274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22600275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22600276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22600277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22600278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22600279, '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 = 22598714 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': 2782724, 'mtr_portfolio_id': 22598714, 'created_at': datetime.datetime(2025, 5, 2, 10, 47, 27), 'result': '0.04843794702838668', 'result_long': None, 'result_double': None}] Qualite : 0.04843794702838668 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22598714 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22598714_02-05-2025_10_47_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22598714 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_P22598714_02-05-2025_10_47_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22598743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22598744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22598745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22598746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22598747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22598748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22598749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22598750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22598751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22598752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22598753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22598754, 'pht': 3726}}" where mtr_portfolio_id = 22598714 and dashboard_run_id = 1774519 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`=22598714 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10240883, 0.04843794702838668, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22598714_02-05-2025_10_47_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22598743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22598744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22598745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22598746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22598747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22598748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22598749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22598750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22598751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22598752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22598753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22598754, '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 = 22599216 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': 2782781, 'mtr_portfolio_id': 22599216, 'created_at': datetime.datetime(2025, 5, 2, 11, 3, 29), 'result': '0.07107325147203536', 'result_long': None, 'result_double': None}] Qualite : 0.07107325147203536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22599216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22599216_02-05-2025_11_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22599216 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_P22599216_02-05-2025_11_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22599221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22599222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22599223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22599224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22599225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22599226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22599227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22599228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22599229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22599230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22599231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22599232, 'pht': 3726}}" where mtr_portfolio_id = 22599216 and dashboard_run_id = 1774519 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`=22599216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10240884, 0.07107325147203536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22599216_02-05-2025_11_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22599221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22599222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22599223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22599224, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22599225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22599226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22599227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22599228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22599229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22599230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22599231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22599232, '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 = 22599783 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': 2782860, 'mtr_portfolio_id': 22599783, 'created_at': datetime.datetime(2025, 5, 2, 11, 16, 59), 'result': '0.07637225675810834', 'result_long': None, 'result_double': None}] Qualite : 0.07637225675810834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22599783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22599783_02-05-2025_11_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22599783 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_P22599783_02-05-2025_11_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22599842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22599843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22599845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22599846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22599847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22599849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22599850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22599851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22599852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22599853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22599854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22599855, 'pht': 3726}}" where mtr_portfolio_id = 22599783 and dashboard_run_id = 1774519 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`=22599783 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10240885, 0.07637225675810834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22599783_02-05-2025_11_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22599842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22599843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22599845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22599846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22599847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22599849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22599850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22599851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22599852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22599853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22599854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22599855, '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 = 22600238 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': 2782908, 'mtr_portfolio_id': 22600238, 'created_at': datetime.datetime(2025, 5, 2, 11, 31), 'result': '0.04529418905699722', 'result_long': None, 'result_double': None}] Qualite : 0.04529418905699722 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22600238 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22600238_02-05-2025_11_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22600238 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_P22600238_02-05-2025_11_31_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22600268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22600269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22600270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22600271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22600272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22600273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22600274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22600275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22600276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22600277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22600278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22600279, 'pht': 3726}}" where mtr_portfolio_id = 22600238 and dashboard_run_id = 1774519 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`=22600238 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10240886, 0.04529418905699722, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22600238_02-05-2025_11_31_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22600268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22600269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22600270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22600271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22600272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22600273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22600274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22600275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22600276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22600277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22600278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22600279, '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 (22598714,22599216,22599783,22600238) result : ((1355252642,), (1355252702,), (1355252706,), (1355252709,), (1355252713,), (1355252715,), (1355252755,), (1355252757,), (1355252814,), (1355252817,), (1355252820,), (1355252823,), (1355252843,), (1355253085,), (1355253147,), (1355253149,), (1355253151,), (1355253154,), (1355253156,), (1355253160,), (1355253197,), (1355253199,), (1355253202,), (1355253206,), (1355253249,), (1355253252,), (1355253255,), (1355253326,), (1355253329,), (1355253337,), (1355253374,), (1355253378,), (1355253381,), (1355253384,), (1355253388,), (1355253392,), (1355253423,), (1355253427,), (1355253430,), (1355253434,), (1355253440,), (1355253528,), (1355253529,), (1355253534,), (1355253594,), (1355253597,), (1355253600,), (1355253604,), (1355253666,), (1355253668,), (1355253690,), (1355253693,), (1355253733,), (1355253736,), (1355253739,), (1355253743,), (1355253746,), (1355253748,), (1355253778,), (1355253781,), (1355253855,), (1355253835,), (1355253837,), (1355253841,), (1355253911,), (1355253913,), (1355253915,), (1355253917,), (1355253919,), (1355253965,), (1355253969,), (1355253971,), (1355253975,), (1355253978,), (1355254021,), (1355254025,), (1355254029,), (1355254033,), (1355254036,), (1355254116,), (1355254119,), (1355254175,), (1355254179,), (1355254183,), (1355254234,), (1355254238,), (1355254241,), (1355254244,), (1355254281,), (1355254286,), (1355254343,), (1355254348,), (1355254357,), (1355254362,), (1355254667,), (1355254672,), (1355254675,), (1355254713,), (1355254719,), (1355254760,), (1355254764,), (1355254835,), (1355254839,), (1355254844,), (1355254960,), (1355254991,), (1355255022,), (1355255153,), (1355255184,), (1355255217,), (1355255249,), (1355255669,), (1355255612,), (1355256521,), (1355257225,), (1355257482,), (1355257910,), (1355257956,), (1355258439,), (1355258562,), (1355258722,), (1355258825,), (1355258896,), (1355259140,), (1355259168,), (1355259180,), (1355259183,), (1355259189,), (1355259472,), (1355259476,), (1355259481,), (1355259486,), (1355259536,), (1355259539,), (1355259541,), (1355259544,), (1355259610,), (1355259592,), (1355259608,), (1355259658,), (1355259661,), (1355259662,), (1355259665,), (1355259762,), (1355259782,), (1355259788,), (1355259794,), (1355259853,), (1355259855,), (1355259858,), (1355259862,), (1355259911,), (1355259916,), (1355259920,), (1355259970,), (1355259972,), (1355259975,), (1355260009,), (1355260013,), (1355260015,), (1355260020,), (1355260059,), (1355260063,), (1355260065,), (1355260069,), (1355260103,), (1355260106,), (1355260108,), (1355260112,), (1355260147,), (1355260151,), (1355260155,), (1355260211,), (1355260214,), (1355260216,), (1355260273,), (1355260276,), (1355260281,), (1355260285,), (1355260331,), (1355260334,), (1355260336,), (1355260340,), (1355260343,), (1355260347,), (1355260372,), (1355260376,), (1355260381,), (1355260387,), (1355260393,), (1355260429,), (1355260436,), (1355260443,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02052025': {'nb_upload': 56, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22600238]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331] map_info['map_portfolio_photo'] : {22600238: [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331, 1355260285, 1355260281, 1355260276, 1355260273, 1355260216, 1355260214, 1355260211, 1355260155, 1355260151, 1355260147, 1355260112, 1355260108, 1355260106, 1355260103, 1355260069, 1355260065, 1355260063, 1355260059, 1355260020, 1355260015, 1355260013, 1355260009, 1355259975, 1355259972, 1355259970, 1355259920, 1355259916, 1355259911, 1355259862, 1355259858, 1355259855, 1355259853, 1355259794, 1355259788, 1355259782, 1355259762, 1355259665, 1355259662, 1355259661, 1355259658, 1355259608, 1355259592]} final : True mtd_id 4302 list_pids : [1355260443, 1355260436, 1355260429, 1355260393, 1355260387, 1355260381, 1355260376, 1355260372, 1355260347, 1355260343, 1355260340, 1355260336, 1355260334, 1355260331] Looping around the photos to save general results len do output : 1 /22600238Didn'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, '2782908') ('4302', '22600238', '1355260443', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260436', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260429', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260393', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260387', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260381', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260376', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260372', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260347', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260343', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260340', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260336', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260334', None, None, None, None, None, '2782908') ('4302', None, None, None, None, None, None, None, '2782908') ('4302', '22600238', '1355260331', None, None, None, None, None, '2782908') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22600238', 'None', None, None, None, None, '2782908'), ('4302', '22600238', '1355260443', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260436', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260429', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260393', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260387', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260381', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260376', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260372', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260347', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260343', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260340', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260336', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260334', None, None, None, None, None, '2782908'), ('4302', '22600238', '1355260331', None, None, None, None, None, '2782908')] time used for this insertion : 0.015162944793701172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3335409164428711 time spend to save output : 0.015462398529052734 total time spend for step 5 : 0.34900331497192383 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 (2782908) 2.47user 2.27system 0:10.60elapsed 44%CPU (0avgtext+0avgdata 160700maxresident)k 408inputs+14760outputs (23major+75673minor)pagefaults 0swaps