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 : 1148235 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 (2570039) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2570039) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387604 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2570039'] with mtr_portfolio_ids : ['20387604'] and first list_photo_ids : [] new path : /proc/1148235/ Name: python3 Umask: 0002 State: R (running) Tgid: 1148235 Ngid: 0 Pid: 1148235 PPid: 1148233 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1148235 NSpid: 1148235 NSpgid: 1147779 NSsid: 1147779 VmPeak: 1106584 kB VmSize: 1106568 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98864 kB VmRSS: 98864 kB RssAnon: 59752 kB RssFile: 39112 kB RssShmem: 0 kB VmData: 865320 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 540 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: 37 nonvoluntary_ctxt_switches: 117 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1148235', 'Ngid': '0', 'Pid': '1148235', 'PPid': '1148233', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1148235', 'NSpid': '1148235', 'NSpgid': '1147779', 'NSsid': '1147779', 'VmPeak': '1106584 kB', 'VmSize': '1106568 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98864 kB', 'VmRSS': '98864 kB', 'RssAnon': '59752 kB', 'RssFile': '39112 kB', 'RssShmem': '0 kB', 'VmData': '865320 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '540 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': '37', 'nonvoluntary_ctxt_switches': '117'} ('datou_batch_current', '1148235', '1106584', '0', '1106568', '865320', '98864', b'', 'marlene', '2570039') 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 (20387604) 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 (2570039 ) ) 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 (20387604) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336397327, 'portfolio_id': 20387604}, {'photo_id': 1336397326, 'portfolio_id': 20387604}, {'photo_id': 1336397325, 'portfolio_id': 20387604}, {'photo_id': 1336397324, 'portfolio_id': 20387604}, {'photo_id': 1336397247, 'portfolio_id': 20387604}, {'photo_id': 1336397213, 'portfolio_id': 20387604}, {'photo_id': 1336397084, 'portfolio_id': 20387604}, {'photo_id': 1336397030, 'portfolio_id': 20387604}, {'photo_id': 1336396968, 'portfolio_id': 20387604}, {'photo_id': 1336396921, 'portfolio_id': 20387604}, {'photo_id': 1336396902, 'portfolio_id': 20387604}, {'photo_id': 1336396892, 'portfolio_id': 20387604}, {'photo_id': 1336396880, 'portfolio_id': 20387604}, {'photo_id': 1336396878, 'portfolio_id': 20387604}, {'photo_id': 1336396876, 'portfolio_id': 20387604}, {'photo_id': 1336396874, 'portfolio_id': 20387604}, {'photo_id': 1336396860, 'portfolio_id': 20387604}, {'photo_id': 1336396859, 'portfolio_id': 20387604}, {'photo_id': 1336396825, 'portfolio_id': 20387604}, {'photo_id': 1336396822, 'portfolio_id': 20387604}, {'photo_id': 1336396821, 'portfolio_id': 20387604}, {'photo_id': 1336396820, 'portfolio_id': 20387604}, {'photo_id': 1336396819, 'portfolio_id': 20387604}, {'photo_id': 1336396797, 'portfolio_id': 20387604}, {'photo_id': 1336396796, 'portfolio_id': 20387604}, {'photo_id': 1336396795, 'portfolio_id': 20387604}, {'photo_id': 1336396782, 'portfolio_id': 20387604}, {'photo_id': 1336396780, 'portfolio_id': 20387604}, {'photo_id': 1336396776, 'portfolio_id': 20387604}, {'photo_id': 1336396774, 'portfolio_id': 20387604}, {'photo_id': 1336396765, 'portfolio_id': 20387604}, {'photo_id': 1336396521, 'portfolio_id': 20387604}, {'photo_id': 1336396510, 'portfolio_id': 20387604}, {'photo_id': 1336396508, 'portfolio_id': 20387604}, {'photo_id': 1336396507, 'portfolio_id': 20387604}, {'photo_id': 1336396496, 'portfolio_id': 20387604}, {'photo_id': 1336396490, 'portfolio_id': 20387604}, {'photo_id': 1336396174, 'portfolio_id': 20387604}, {'photo_id': 1336396173, 'portfolio_id': 20387604}, {'photo_id': 1336396107, 'portfolio_id': 20387604}, {'photo_id': 1336395757, 'portfolio_id': 20387604}, {'photo_id': 1336395621, 'portfolio_id': 20387604}, {'photo_id': 1336395501, 'portfolio_id': 20387604}, {'photo_id': 1336395396, 'portfolio_id': 20387604}, {'photo_id': 1336395393, 'portfolio_id': 20387604}, {'photo_id': 1336395391, 'portfolio_id': 20387604}, {'photo_id': 1336395389, 'portfolio_id': 20387604}, {'photo_id': 1336395385, 'portfolio_id': 20387604}, {'photo_id': 1336395380, 'portfolio_id': 20387604}, {'photo_id': 1336395365, 'portfolio_id': 20387604}, {'photo_id': 1336395363, 'portfolio_id': 20387604}, {'photo_id': 1336395362, 'portfolio_id': 20387604}, {'photo_id': 1336395361, 'portfolio_id': 20387604}, {'photo_id': 1336395192, 'portfolio_id': 20387604}] map_portfolio_id_photo_id: {20387604: [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902, 1336396892, 1336396880, 1336396878, 1336396876, 1336396874, 1336396860, 1336396859, 1336396825, 1336396822, 1336396821, 1336396820, 1336396819, 1336396797, 1336396796, 1336396795, 1336396782, 1336396780, 1336396776, 1336396774, 1336396765, 1336396521, 1336396510, 1336396508, 1336396507, 1336396496, 1336396490, 1336396174, 1336396173, 1336396107, 1336395757, 1336395621, 1336395501, 1336395396, 1336395393, 1336395391, 1336395389, 1336395385, 1336395380, 1336395365, 1336395363, 1336395362, 1336395361, 1336395192]} ##### 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.01610255241394043 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Feb 10 06:14:29 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 (20387604) 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 : 20387604 get user id for portfolio 20387604 get sub ptf for main ptf 20387604, type 3726 and hashtags ['mal_croppe', 'papier', 'autre_refus', 'plastique', 'environnement', 'Carton_brun', 'Carton_gris', 'cartonnette', 'Teint_Dans_La_Masse', 'flou', 'kraft', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20387604 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','autre_refus','plastique','environnement','Carton_brun','Carton_gris','cartonnette','Teint_Dans_La_Masse','flou','kraft','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20387604 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','autre_refus','plastique','environnement','Carton_brun','Carton_gris','cartonnette','Teint_Dans_La_Masse','flou','kraft','metal')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20387604, 'sub_port_id': 20387657, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067695, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}, 'autre_refus': {'main_port_id': 20387604, 'sub_port_id': 20387658, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067696, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}, 'plastique': {'main_port_id': 20387604, 'sub_port_id': 20387659, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067697, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}, 'flou': {'main_port_id': 20387604, 'sub_port_id': 20387660, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067698, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}, 'kraft': {'main_port_id': 20387604, 'sub_port_id': 20387661, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067699, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}, 'metal': {'main_port_id': 20387604, 'sub_port_id': 20387662, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067700, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}, 'mal_croppe': {'main_port_id': 20387604, 'sub_port_id': 20387663, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067701, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}, 'Carton_gris': {'main_port_id': 20387604, 'sub_port_id': 20387664, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067702, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}, 'papier': {'main_port_id': 20387604, 'sub_port_id': 20387665, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067703, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}, 'environnement': {'main_port_id': 20387604, 'sub_port_id': 20387666, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067704, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20387604, 'sub_port_id': 20387667, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067705, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}, 'Carton_brun': {'main_port_id': 20387604, 'sub_port_id': 20387668, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067706, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20387657 , 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=20387604 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 (20387657) result : ((1336395978,), (1336396849,), (1336396851,), (1336396852,), (1336396896,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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 20387658 , 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=20387604 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 (20387658) result : ((1336395974,), (1336396840,), (1336396841,), (1336396894,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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 20387659 , 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=20387604 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 (20387659) result : ((1336396794,), (1336396858,), (1336396898,), (1336396899,), (1336396900,), (1336396901,), (1336397323,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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 20387660 , 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=20387604 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 (20387660) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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 20387661 , 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=20387604 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 (20387661) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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 20387662 , 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=20387604 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 (20387662) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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 20387663 , 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=20387604 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 (20387663) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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 20387664 , 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=20387604 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 (20387664) result : ((1336395975,), (1336395976,), (1336395977,), (1336396488,), (1336396763,), (1336396764,), (1336396817,), (1336396818,), (1336396842,), (1336396843,), (1336396844,), (1336396845,), (1336396846,), (1336396847,), (1336396895,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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 20387665 , 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=20387604 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 (20387665) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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 20387666 , 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=20387604 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 (20387666) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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 20387667 , 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=20387604 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 (20387667) result : ((1336395972,), (1336395973,), (1336396755,), (1336396756,), (1336396757,), (1336396758,), (1336396759,), (1336396760,), (1336396761,), (1336396762,), (1336396792,), (1336396793,), (1336396809,), (1336396810,), (1336396811,), (1336396812,), (1336396813,), (1336396814,), (1336396815,), (1336396816,), (1336396837,), (1336396838,), (1336396839,), (1336396891,), (1336396893,), (1336397315,), (1336397320,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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 20387668 , 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=20387604 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 (20387668) result : ((1336396208,), (1336396489,), (1336396848,), (1336396850,), (1336396853,), (1336396854,), (1336396855,), (1336396856,), (1336396857,), (1336396897,), (1336397316,), (1336397321,), (1336397322,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20387604) result : ((1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) 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`=20387604 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','autre_refus','plastique','environnement','Carton_brun','Carton_gris','cartonnette','Teint_Dans_La_Masse','flou','kraft','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20387604 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','papier','autre_refus','plastique','environnement','Carton_brun','Carton_gris','cartonnette','Teint_Dans_La_Masse','flou','kraft','metal')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20387604, 'sub_port_id': 20387669, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067707, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}, 'autre_refus': {'main_port_id': 20387604, 'sub_port_id': 20387670, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067708, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}, 'plastique': {'main_port_id': 20387604, 'sub_port_id': 20387671, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067709, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}, 'flou': {'main_port_id': 20387604, 'sub_port_id': 20387672, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067710, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}, 'kraft': {'main_port_id': 20387604, 'sub_port_id': 20387673, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067711, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}, 'metal': {'main_port_id': 20387604, 'sub_port_id': 20387674, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067712, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}, 'mal_croppe': {'main_port_id': 20387604, 'sub_port_id': 20387675, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067713, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}, 'Carton_gris': {'main_port_id': 20387604, 'sub_port_id': 20387676, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067714, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}, 'papier': {'main_port_id': 20387604, 'sub_port_id': 20387677, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067715, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}, 'environnement': {'main_port_id': 20387604, 'sub_port_id': 20387678, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067716, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20387604, 'sub_port_id': 20387679, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067717, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}, 'Carton_brun': {'main_port_id': 20387604, 'sub_port_id': 20387680, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13067718, 'last_updated_at': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 2, 10, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 2, 10, 6, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387669,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387657 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387670,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387658 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387671,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387659 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387672,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387660 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387673,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387661 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387674,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387662 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387663 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20387680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20387668 lien utilise dans velours : https://www.fotonower.com/velours/20387669,20387670,20387671,20387672,20387673,20387674,20387675,20387676,20387677,20387678,20387679,20387680?tags=cartonnette,autre_refus,plastique,flou,kraft,metal,mal_croppe,Carton_gris,papier,environnement,Teint_Dans_La_Masse,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20387604]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902] map_info['map_portfolio_photo'] : {20387604: [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902, 1336396892, 1336396880, 1336396878, 1336396876, 1336396874, 1336396860, 1336396859, 1336396825, 1336396822, 1336396821, 1336396820, 1336396819, 1336396797, 1336396796, 1336396795, 1336396782, 1336396780, 1336396776, 1336396774, 1336396765, 1336396521, 1336396510, 1336396508, 1336396507, 1336396496, 1336396490, 1336396174, 1336396173, 1336396107, 1336395757, 1336395621, 1336395501, 1336395396, 1336395393, 1336395391, 1336395389, 1336395385, 1336395380, 1336395365, 1336395363, 1336395362, 1336395361, 1336395192]} final : False mtd_id 4302 list_pids : [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902] Looping around the photos to save general results len do output : 1 /20387604. 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, '2570039') ('4302', '20387604', '1336397327', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397326', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397325', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397324', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397247', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397213', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397084', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397030', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396968', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396921', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396902', None, None, None, None, None, '2570039') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20387604', "{'cartonnette': 20387657, 'autre_refus': 20387658, 'plastique': 20387659, 'flou': 20387660, 'kraft': 20387661, 'metal': 20387662, 'mal_croppe': 20387663, 'Carton_gris': 20387664, 'papier': 20387665, 'environnement': 20387666, 'Teint_Dans_La_Masse': 20387667, 'Carton_brun': 20387668}", None, None, None, None, '2570039'), ('4302', '20387604', '1336397327', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397326', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397325', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397324', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397247', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397213', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397084', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397030', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336396968', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336396921', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336396902', None, None, None, None, None, '2570039')] time used for this insertion : 0.018491744995117188 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.060025215148926 time spend to save output : 0.0188291072845459 total time spend for step 1 : 2.0788543224334717 step2:final Mon Feb 10 06:14:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20387604) 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 20387604 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336395192,1336395365,1336395363,1336395362,1336395361,1336395396,1336395393,1336395391,1336395389,1336395385,1336395380,1336395757,1336395621,1336395501,1336396174,1336396173,1336396107,1336396521,1336396510,1336396508,1336396507,1336396496,1336396490,1336396782,1336396780,1336396776,1336396774,1336396765,1336396797,1336396796,1336396795,1336396825,1336396822,1336396821,1336396820,1336396819,1336396860,1336396859,1336396880,1336396878,1336396876,1336396874,1336397084,1336397030,1336396968,1336396921,1336396902,1336397247,1336396892,1336397213,1336397327,1336397326,1336397325,1336397324); 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([20387604]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} new output for save of step final : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902] map_info['map_portfolio_photo'] : {20387604: [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902, 1336396892, 1336396880, 1336396878, 1336396876, 1336396874, 1336396860, 1336396859, 1336396825, 1336396822, 1336396821, 1336396820, 1336396819, 1336396797, 1336396796, 1336396795, 1336396782, 1336396780, 1336396776, 1336396774, 1336396765, 1336396521, 1336396510, 1336396508, 1336396507, 1336396496, 1336396490, 1336396174, 1336396173, 1336396107, 1336395757, 1336395621, 1336395501, 1336395396, 1336395393, 1336395391, 1336395389, 1336395385, 1336395380, 1336395365, 1336395363, 1336395362, 1336395361, 1336395192]} final : False mtd_id 4302 list_pids : [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902] Looping around the photos to save general results len do output : 11 /1336397327.Didn't retrieve data . /1336397326.Didn't retrieve data . /1336397325.Didn't retrieve data . /1336397324.Didn't retrieve data . /1336397247.Didn't retrieve data . /1336397213.Didn't retrieve data . /1336397084.Didn't retrieve data . /1336397030.Didn't retrieve data . /1336396968.Didn't retrieve data . /1336396921.Didn't retrieve data . /1336396902.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, '2570039') ('4302', '20387604', '1336397327', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397326', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397325', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397324', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397247', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397213', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397084', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397030', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396968', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396921', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396902', None, None, None, None, None, '2570039') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '20387604', '1336397327', '0.04056756320031221', None, None, None, None, '2570039'), ('4302', '20387604', '1336397326', '0.04056756320031221', None, None, None, None, '2570039'), ('4302', '20387604', '1336397325', '0.04056756320031221', None, None, None, None, '2570039'), ('4302', '20387604', '1336397324', '0.04056756320031221', None, None, None, None, '2570039'), ('4302', '20387604', '1336397247', '0.04056756320031221', None, None, None, None, '2570039'), ('4302', '20387604', '1336397213', '0.04056756320031221', None, None, None, None, '2570039'), ('4302', '20387604', '1336397084', '0.04056756320031221', None, None, None, None, '2570039'), ('4302', '20387604', '1336397030', '0.04056756320031221', None, None, None, None, '2570039'), ('4302', '20387604', '1336396968', '0.04056756320031221', None, None, None, None, '2570039'), ('4302', '20387604', '1336396921', '0.04056756320031221', None, None, None, None, '2570039'), ('4302', '20387604', '1336396902', '0.04056756320031221', None, None, None, None, '2570039')] time used for this insertion : 0.015773773193359375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1317141056060791 time spend to save output : 0.016309261322021484 total time spend for step 2 : 0.14802336692810059 step3:velours_tree Mon Feb 10 06:14:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20387604: [{'cartonnette': 20387657, 'autre_refus': 20387658, 'plastique': 20387659, 'flou': 20387660, 'kraft': 20387661, 'metal': 20387662, 'mal_croppe': 20387663, 'Carton_gris': 20387664, 'papier': 20387665, 'environnement': 20387666, 'Teint_Dans_La_Masse': 20387667, 'Carton_brun': 20387668}]} input_args_next_step : {20387604: ()} output_args : {20387604: [{'cartonnette': 20387657, 'autre_refus': 20387658, 'plastique': 20387659, 'flou': 20387660, 'kraft': 20387661, 'metal': 20387662, 'mal_croppe': 20387663, 'Carton_gris': 20387664, 'papier': 20387665, 'environnement': 20387666, 'Teint_Dans_La_Masse': 20387667, 'Carton_brun': 20387668}]} args : 20387604 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 20387657, 'autre_refus': 20387658, 'plastique': 20387659, 'flou': 20387660, 'kraft': 20387661, 'metal': 20387662, 'mal_croppe': 20387663, 'Carton_gris': 20387664, 'papier': 20387665, 'environnement': 20387666, 'Teint_Dans_La_Masse': 20387667, 'Carton_brun': 20387668},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20387604) 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([20387604]) 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.28253889083862305 time spend to save output : 4.5299530029296875e-05 total time spend for step 3 : 0.28258419036865234 step4:send_mail_cod Mon Feb 10 06:14:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} input_args_next_step : {1336397327: ()} output_args : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} args : 1336397327 depend.output_id : 0 input_args_next_step : {1336397327: ('0.04056756320031221',), 1336397326: ()} output_args : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} args : 1336397326 depend.output_id : 0 input_args_next_step : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ()} output_args : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} args : 1336397325 depend.output_id : 0 input_args_next_step : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ()} output_args : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} args : 1336397324 depend.output_id : 0 input_args_next_step : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ()} output_args : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} args : 1336397247 depend.output_id : 0 input_args_next_step : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ()} output_args : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} args : 1336397213 depend.output_id : 0 input_args_next_step : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ()} output_args : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} args : 1336397084 depend.output_id : 0 input_args_next_step : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ()} output_args : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} args : 1336397030 depend.output_id : 0 input_args_next_step : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ()} output_args : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} args : 1336396968 depend.output_id : 0 input_args_next_step : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ()} output_args : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} args : 1336396921 depend.output_id : 0 input_args_next_step : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ()} output_args : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',)} args : 1336396902 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 : {20387604: [{'cartonnette': 20387657, 'autre_refus': 20387658, 'plastique': 20387659, 'flou': 20387660, 'kraft': 20387661, 'metal': 20387662, 'mal_croppe': 20387663, 'Carton_gris': 20387664, 'papier': 20387665, 'environnement': 20387666, 'Teint_Dans_La_Masse': 20387667, 'Carton_brun': 20387668}]} input_args_next_step : {1336397327: ('0.04056756320031221',), 1336397326: ('0.04056756320031221',), 1336397325: ('0.04056756320031221',), 1336397324: ('0.04056756320031221',), 1336397247: ('0.04056756320031221',), 1336397213: ('0.04056756320031221',), 1336397084: ('0.04056756320031221',), 1336397030: ('0.04056756320031221',), 1336396968: ('0.04056756320031221',), 1336396921: ('0.04056756320031221',), 1336396902: ('0.04056756320031221',), 20387604: ()} output_args : {20387604: [{'cartonnette': 20387657, 'autre_refus': 20387658, 'plastique': 20387659, 'flou': 20387660, 'kraft': 20387661, 'metal': 20387662, 'mal_croppe': 20387663, 'Carton_gris': 20387664, 'papier': 20387665, 'environnement': 20387666, 'Teint_Dans_La_Masse': 20387667, 'Carton_brun': 20387668}]} args : 20387604 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 :12, first value : ('0.04056756320031221',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20387604) 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 (1336397327,1336397326,1336397325,1336397324,1336397247,1336397213,1336397084,1336397030,1336396968,1336396921,1336396902) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336396902 begin to download photo : 1336397030 begin to download photo : 1336397247 begin to download photo : 1336397326 download finish for photo 1336397326 begin to download photo : 1336397327 download finish for photo 1336397030 begin to download photo : 1336397084 download finish for photo 1336397247 begin to download photo : 1336397324 download finish for photo 1336396902 begin to download photo : 1336396921 download finish for photo 1336397327 download finish for photo 1336397084 begin to download photo : 1336397213 download finish for photo 1336397324 begin to download photo : 1336397325 download finish for photo 1336396921 begin to download photo : 1336396968 download finish for photo 1336397325 download finish for photo 1336397213 download finish for photo 1336396968 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P20387604_10-02-2025_06_14_32.pdf 20387657 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=20387657 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336395978: '1739163831_3590847_1336395365_c551ad53bdc1aa53dcd856ffd5a21cde_rle_crop_3667334919_0.png', 1336396849: '1739164141_3598214_1336396508_0e967be37635e8526b8c253aa7aeb558_rle_crop_3667338522_0.png', 1336396851: '1739164141_3598214_1336396507_a887cd1831ef5d6f186c51aaf6085d23_rle_crop_3667338530_0.png', 1336396852: '1739164141_3598214_1336396496_7cfe6027e08fa8d3c02c4fc314cffe9e_rle_crop_3667338565_0.png', 1336396896: '1739164272_3600576_1336396819_8f71c436f4ab006e35bfefc48244b705_rle_crop_3667341072_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/ac5d7615be1d1ddc0ff1c529fe39ca2d_65736755.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e2a98796cff9e3a9100d39cb3f64f445_51492007.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/02d45d919f70645c488791f0c72501e7_10732919.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4b604562ff610b1e25fb7e1cbae4c199_45547088.png change filename to text .imagette203876571739164472/ imagette203876571739164472/1739164141_3598214_1336396508_0e967be37635e8526b8c253aa7aeb558_rle_crop_3667338522_0.png.png imagette203876571739164472/1739163831_3590847_1336395365_c551ad53bdc1aa53dcd856ffd5a21cde_rle_crop_3667334919_0.png.png imagette203876571739164472/1739164141_3598214_1336396507_a887cd1831ef5d6f186c51aaf6085d23_rle_crop_3667338530_0.png.png imagette203876571739164472/1739164272_3600576_1336396819_8f71c436f4ab006e35bfefc48244b705_rle_crop_3667341072_0.png.png imagette203876571739164472/1739164141_3598214_1336396496_7cfe6027e08fa8d3c02c4fc314cffe9e_rle_crop_3667338565_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/16e4759fcd75a7d8fbc60f35fdb4d17a_98537594.png imagette203876571739164472 20387658 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=20387658 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336395974: '1739163831_3590847_1336395365_c551ad53bdc1aa53dcd856ffd5a21cde_rle_crop_3667334918_0.png', 1336396840: '1739164141_3598214_1336396782_408c21736093c1168f2b06a9dc463b4b_rle_crop_3667338471_0.png', 1336396841: '1739164153_3598530_1336396765_4e21042f74f5c249ffee946e53ccf9ac_rle_crop_3667338623_0.png', 1336396894: '1739164272_3600576_1336396820_9260b02d50ad1f21a742048fbc40d385_rle_crop_3667341059_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e4ff75a0dfb0875cbc49ead507d43047_38740761.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/6cbe57b3d960d515fa1561d82f2bf92f_53983631.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/dc8defa5bdf601450f865782b7507507_17385025.png change filename to text .imagette203876581739164472/ imagette203876581739164472/1739164272_3600576_1336396820_9260b02d50ad1f21a742048fbc40d385_rle_crop_3667341059_0.png.png imagette203876581739164472/1739164153_3598530_1336396765_4e21042f74f5c249ffee946e53ccf9ac_rle_crop_3667338623_0.png.png imagette203876581739164472/1739164141_3598214_1336396782_408c21736093c1168f2b06a9dc463b4b_rle_crop_3667338471_0.png.png imagette203876581739164472/1739163831_3590847_1336395365_c551ad53bdc1aa53dcd856ffd5a21cde_rle_crop_3667334918_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3f03be06d2b9d1cc8bac00113613d417_24034153.png imagette203876581739164472 20387659 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=20387659 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336396794: '1739164033_3596038_1336396173_095ec3c43be5c6f2065c6d4122452804_rle_crop_3667337775_0.png', 1336396858: '1739164171_3598868_1336396796_407a0710c0cd9c5454ca6f9d448e08fb_rle_crop_3667338616_0.png', 1336396898: '1739164272_3600576_1336396820_9260b02d50ad1f21a742048fbc40d385_rle_crop_3667341058_0.png', 1336396899: '1739164272_3600576_1336396820_9260b02d50ad1f21a742048fbc40d385_rle_crop_3667341065_0.png', 1336396900: '1739164272_3600576_1336396819_8f71c436f4ab006e35bfefc48244b705_rle_crop_3667341078_0.png', 1336396901: '1739164272_3600576_1336396819_8f71c436f4ab006e35bfefc48244b705_rle_crop_3667341081_0.png', 1336397323: '1739164413_3602218_1336396859_ed7dd905cdfae17581ca87439f5813e9_rle_crop_3667341656_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b005ba50f291a1d005e4de68f0b3e56b_17588611.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/da998086452a86f51e5956c3fc8428ad_40109999.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/06005569b051784bdd110cf98ba1b28a_98029919.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/564d8f08619f8fee044d77457d43277a_18566183.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/33b1933af524c25ec44776a27e0acac7_45931509.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1206e67703aee6b0d584ce2441d0e902_39940191.png change filename to text .imagette203876591739164472/ imagette203876591739164472/1739164272_3600576_1336396819_8f71c436f4ab006e35bfefc48244b705_rle_crop_3667341081_0.png.png imagette203876591739164472/1739164272_3600576_1336396820_9260b02d50ad1f21a742048fbc40d385_rle_crop_3667341058_0.png.png imagette203876591739164472/1739164413_3602218_1336396859_ed7dd905cdfae17581ca87439f5813e9_rle_crop_3667341656_0.png.png imagette203876591739164472/1739164171_3598868_1336396796_407a0710c0cd9c5454ca6f9d448e08fb_rle_crop_3667338616_0.png.png imagette203876591739164472/1739164272_3600576_1336396819_8f71c436f4ab006e35bfefc48244b705_rle_crop_3667341078_0.png.png imagette203876591739164472/1739164033_3596038_1336396173_095ec3c43be5c6f2065c6d4122452804_rle_crop_3667337775_0.png.png imagette203876591739164472/1739164272_3600576_1336396820_9260b02d50ad1f21a742048fbc40d385_rle_crop_3667341065_0.png.png imagette203876601739164473/ imagette203876611739164473/ imagette203876621739164473/ imagette203876631739164473/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/37f48c04bf1b57c40119c305c99adc51_88552971.png imagette203876591739164472 20387660 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=20387660 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203876601739164473 20387661 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=20387661 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203876611739164473 20387662 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=20387662 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203876621739164473 20387663 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=20387663 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203876631739164473 20387664 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=20387664 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336395975: '1739163831_3590847_1336395365_c551ad53bdc1aa53dcd856ffd5a21cde_rle_crop_3667334923_0.png', 1336395976: '1739163831_3590847_1336395365_c551ad53bdc1aa53dcd856ffd5a21cde_rle_crop_3667334922_0.png', 1336395977: '1739163831_3590847_1336395365_c551ad53bdc1aa53dcd856ffd5a21cde_rle_crop_3667334913_0.png', 1336396488: '1739163914_3592572_1336395621_5ad5dbf1982150b84b29746ca919cc92_rle_crop_3667335288_0.png', 1336396763: '1739163932_3592993_1336395391_16e1b3d21add7ea355cd1d2072e2df20_rle_crop_3667336753_0.png', 1336396764: '1739163932_3592993_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336786_0.png', 1336396817: '1739164071_3596836_1336395391_16e1b3d21add7ea355cd1d2072e2df20_rle_crop_3667336753_0.png', 1336396818: '1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336786_0.png', 1336396842: '1739164141_3598214_1336396510_74c68ececd222e6f095b5548d6670aa3_rle_crop_3667338482_0.png', 1336396843: '1739164141_3598214_1336396490_c06970483b1e0c5d80a72352e5e7feba_rle_crop_3667338581_0.png', 1336396844: '1739164153_3598530_1336396776_d9604847995277e56fd7d6f48f2f580a_rle_crop_3667338556_0.png', 1336396845: '1739164153_3598530_1336396765_4e21042f74f5c249ffee946e53ccf9ac_rle_crop_3667338627_0.png', 1336396846: '1739164153_3598530_1336396765_4e21042f74f5c249ffee946e53ccf9ac_rle_crop_3667338625_0.png', 1336396847: '1739164171_3598868_1336396795_2a4ec1aeb6068cad1f167881aa0dc62b_rle_crop_3667338639_0.png', 1336396895: '1739164272_3600576_1336396860_7b9e86aa2d7f434515ceb7781d7aba74_rle_crop_3667341030_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b1d4dcbc28f63e5282c9c13a99dd1515_41288219.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/390d6a026f529e08f375e97317bc6214_13702044.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/11fa06736f6d99b939defdce41ab4282_6213296.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/92c7a1f09e56ed9d2274befc3db03b51_32902141.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b91645824a2012d7c45e344b716c4b83_39863170.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/a6384161f4be4e906642d3310250c4ea_4315647.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b91645824a2012d7c45e344b716c4b83_98146055.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/a6384161f4be4e906642d3310250c4ea_36515273.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/44d8dae2b218f043926f93ef9f176a2c_29348678.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/77d4c0055a21eddcc57fe1b3c9d747ff_42442465.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/32440bc0a0c5288d122f2f8caa13dc04_85692002.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/d7d6ac7f2f1abab428d9e01dc690adb7_24262218.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/83ba317f70269a61bc06cd20a615b3c8_62188728.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/f2530dca046c305c079d273c704740bc_58523929.png change filename to text .imagette203876641739164473/ imagette203876641739164473/1739164153_3598530_1336396776_d9604847995277e56fd7d6f48f2f580a_rle_crop_3667338556_0.png.png imagette203876641739164473/1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336786_0.png.png imagette203876641739164473/1739163914_3592572_1336395621_5ad5dbf1982150b84b29746ca919cc92_rle_crop_3667335288_0.png.png imagette203876641739164473/1739164272_3600576_1336396860_7b9e86aa2d7f434515ceb7781d7aba74_rle_crop_3667341030_0.png.png imagette203876641739164473/1739163831_3590847_1336395365_c551ad53bdc1aa53dcd856ffd5a21cde_rle_crop_3667334922_0.png.png imagette203876641739164473/1739163932_3592993_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336786_0.png.png imagette203876641739164473/1739164153_3598530_1336396765_4e21042f74f5c249ffee946e53ccf9ac_rle_crop_3667338625_0.png.png imagette203876641739164473/1739163831_3590847_1336395365_c551ad53bdc1aa53dcd856ffd5a21cde_rle_crop_3667334923_0.png.png imagette203876641739164473/1739163831_3590847_1336395365_c551ad53bdc1aa53dcd856ffd5a21cde_rle_crop_3667334913_0.png.png imagette203876641739164473/1739164153_3598530_1336396765_4e21042f74f5c249ffee946e53ccf9ac_rle_crop_3667338627_0.png.png imagette203876641739164473/1739164171_3598868_1336396795_2a4ec1aeb6068cad1f167881aa0dc62b_rle_crop_3667338639_0.png.png imagette203876641739164473/1739164141_3598214_1336396510_74c68ececd222e6f095b5548d6670aa3_rle_crop_3667338482_0.png.png imagette203876641739164473/1739164071_3596836_1336395391_16e1b3d21add7ea355cd1d2072e2df20_rle_crop_3667336753_0.png.png imagette203876641739164473/1739163932_3592993_1336395391_16e1b3d21add7ea355cd1d2072e2df20_rle_crop_3667336753_0.png.png imagette203876641739164473/1739164141_3598214_1336396490_c06970483b1e0c5d80a72352e5e7feba_rle_crop_3667338581_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/6b7c16dfc709fa67e0a5fef5dc062a69_6488728.png imagette203876641739164473 20387667 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=20387667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336396810: '1739164071_3596836_1336395393_67058dc9af45e449df9dc92ddca66b19_rle_crop_3667336585_0.png', 1336397320: '1739164413_3602218_1336396859_ed7dd905cdfae17581ca87439f5813e9_rle_crop_3667341660_0.png', 1336397315: '1739164393_3601928_1336396874_6565a9bf5b99817a7a3bf8930817c370_rle_crop_3667341584_0.png', 1336396893: '1739164272_3600576_1336396820_9260b02d50ad1f21a742048fbc40d385_rle_crop_3667341064_0.png', 1336396891: '1739164272_3600576_1336396860_7b9e86aa2d7f434515ceb7781d7aba74_rle_crop_3667341040_0.png', 1336396839: '1739164141_3598214_1336396496_7cfe6027e08fa8d3c02c4fc314cffe9e_rle_crop_3667338569_0.png', 1336396838: '1739164141_3598214_1336396507_a887cd1831ef5d6f186c51aaf6085d23_rle_crop_3667338534_0.png', 1336396837: '1739164141_3598214_1336396508_0e967be37635e8526b8c253aa7aeb558_rle_crop_3667338520_0.png', 1336396816: '1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336790_0.png', 1336396815: '1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336792_0.png', 1336396814: '1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336787_0.png', 1336396813: '1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336794_0.png', 1336396812: '1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336795_0.png', 1336396811: '1739164071_3596836_1336395391_16e1b3d21add7ea355cd1d2072e2df20_rle_crop_3667336760_0.png', 1336395972: '1739163831_3590847_1336395192_9df26ffbd5c0dbb3840fb2473b4f243a_rle_crop_3667334940_0.png', 1336396809: '1739164071_3596836_1336395393_67058dc9af45e449df9dc92ddca66b19_rle_crop_3667336593_0.png', 1336396793: '1739164033_3596038_1336396107_63ed720f9d5f47b04add54acf8c31f71_rle_crop_3667337836_0.png', 1336396792: '1739164033_3596038_1336396173_095ec3c43be5c6f2065c6d4122452804_rle_crop_3667337779_0.png', 1336396762: '1739163932_3592993_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336790_0.png', 1336396761: '1739163932_3592993_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336792_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/17788ff385be683ae0368010c0a21477_19361927.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/2b37be32926636dd9c14f23bb2c5e9c3_90830516.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/306b188686a853f0c416a7081939e9bb_50712009.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/e3774fcc5df51c89fef444a85df0b137_49581697.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/98c3b6b44a9aebed2644a0f6498ec4d7_7969975.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c8c34f85f153dadc12935536ff846825_11739719.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/41db35a47f5641f61649502a7107d088_87321983.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/f84ed2515cef7543f4148b6d5d252522_4477193.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/6f2e21c4fc3827e2c0e8bbb3341bf854_13534698.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/7d2e4e95087d9d4384df14442cc7ee3f_20098912.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c970f204d16009b3aa3e5d6021fa2a48_1989181.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/217d62ab64951b27079ea83f60259080_21581182.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/1068db361d9198b44ec15c581d751f4f_59114841.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4de3f5ea523d6d0ac769ca3eda8650ad_78871498.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/a0c1763b3f6b92cb7ff045e32c634d0b_49514005.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/4701313d29ddb63a9f6600505ce2599c_96508172.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/0cdd49ad639cf41ba5f3afd967c5e757_11858858.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/7e49f7a561fa98a3c63424531404f53f_71039061.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/6f2e21c4fc3827e2c0e8bbb3341bf854_56951730.png change filename to text .imagette203876671739164474/ imagette203876671739164474/1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336787_0.png.png imagette203876671739164474/1739163831_3590847_1336395192_9df26ffbd5c0dbb3840fb2473b4f243a_rle_crop_3667334940_0.png.png imagette203876671739164474/1739164393_3601928_1336396874_6565a9bf5b99817a7a3bf8930817c370_rle_crop_3667341584_0.png.png imagette203876671739164474/1739164071_3596836_1336395393_67058dc9af45e449df9dc92ddca66b19_rle_crop_3667336585_0.png.png imagette203876671739164474/1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336795_0.png.png imagette203876671739164474/1739164141_3598214_1336396496_7cfe6027e08fa8d3c02c4fc314cffe9e_rle_crop_3667338569_0.png.png imagette203876671739164474/1739164071_3596836_1336395393_67058dc9af45e449df9dc92ddca66b19_rle_crop_3667336593_0.png.png imagette203876671739164474/1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336794_0.png.png imagette203876671739164474/1739164413_3602218_1336396859_ed7dd905cdfae17581ca87439f5813e9_rle_crop_3667341660_0.png.png imagette203876671739164474/1739164033_3596038_1336396173_095ec3c43be5c6f2065c6d4122452804_rle_crop_3667337779_0.png.png imagette203876671739164474/1739163932_3592993_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336792_0.png.png imagette203876671739164474/1739164141_3598214_1336396508_0e967be37635e8526b8c253aa7aeb558_rle_crop_3667338520_0.png.png imagette203876671739164474/1739164272_3600576_1336396820_9260b02d50ad1f21a742048fbc40d385_rle_crop_3667341064_0.png.png imagette203876671739164474/1739164033_3596038_1336396107_63ed720f9d5f47b04add54acf8c31f71_rle_crop_3667337836_0.png.png imagette203876671739164474/1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336792_0.png.png imagette203876671739164474/1739164071_3596836_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336790_0.png.png imagette203876671739164474/1739164071_3596836_1336395391_16e1b3d21add7ea355cd1d2072e2df20_rle_crop_3667336760_0.png.png imagette203876671739164474/1739163932_3592993_1336395385_d21614460eb0ec156182b2caef856976_rle_crop_3667336790_0.png.png imagette203876671739164474/1739164141_3598214_1336396507_a887cd1831ef5d6f186c51aaf6085d23_rle_crop_3667338534_0.png.png imagette203876671739164474/1739164272_3600576_1336396860_7b9e86aa2d7f434515ceb7781d7aba74_rle_crop_3667341040_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/7d2e4e95087d9d4384df14442cc7ee3f_783151.png imagette203876671739164474 20387668 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=20387668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336396208: '1739163853_3591343_1336395362_aa28aee7a1ce06f65a8c69c544db0e24_rle_crop_3667335069_0.png', 1336396489: '1739163914_3592572_1336395501_67db6ade177e665201726930105481e4_rle_crop_3667335318_0.png', 1336396848: '1739164153_3598530_1336396797_f966192fea4f93f538525db9d84dd374_rle_crop_3667338501_0.png', 1336396850: '1739164153_3598530_1336396797_f966192fea4f93f538525db9d84dd374_rle_crop_3667338506_0.png', 1336396853: '1739164171_3598868_1336396796_407a0710c0cd9c5454ca6f9d448e08fb_rle_crop_3667338608_0.png', 1336396854: '1739164141_3598214_1336396508_0e967be37635e8526b8c253aa7aeb558_rle_crop_3667338519_0.png', 1336396855: '1739164141_3598214_1336396508_0e967be37635e8526b8c253aa7aeb558_rle_crop_3667338521_0.png', 1336396856: '1739164141_3598214_1336396507_a887cd1831ef5d6f186c51aaf6085d23_rle_crop_3667338532_0.png', 1336396857: '1739164141_3598214_1336396496_7cfe6027e08fa8d3c02c4fc314cffe9e_rle_crop_3667338574_0.png', 1336396897: '1739164272_3600576_1336396860_7b9e86aa2d7f434515ceb7781d7aba74_rle_crop_3667341035_0.png', 1336397316: '1739164393_3601928_1336396878_6d53cb56b6956876c1774bb96b5e2e64_rle_crop_3667341562_0.png', 1336397321: '1739164413_3602218_1336396880_a8d692698fa2b976387a390981c792fd_rle_crop_3667341647_0.png', 1336397322: '1739164413_3602218_1336396859_ed7dd905cdfae17581ca87439f5813e9_rle_crop_3667341655_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/f8e90fc49b0537c80a7100f8d2f4a6cc_63008921.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/3e01df10d5d1e8652d875dd13d2e3c78_12871818.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/244a3be08dbe20b86ab76c6fd79d8d87_54466572.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/08a006c69466cc9b564222c30d53d248_70616032.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/8c689d892390cedb5f7b2518a5820019_51954438.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/358a8171438ba7875315b20b9e41d752_56276372.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/6f2a6eb6b9fc368b74ede7bca339025c_87561441.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/31b9739a5e3398b9adfedd105b5d79fd_65816924.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/2846f4db3092ab0f30e80da3cc058da8_57216048.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/fe4a41750ce95bb49d640d3033f5df0c_59074865.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/17095ae220d46a9e6bc09eb50b51e43e_23230898.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/44f7ed381405ad8d02f400a0d2499b3b_642389.png change filename to text .imagette203876681739164475/ imagette203876681739164475/1739164141_3598214_1336396508_0e967be37635e8526b8c253aa7aeb558_rle_crop_3667338519_0.png.png imagette203876681739164475/1739164413_3602218_1336396880_a8d692698fa2b976387a390981c792fd_rle_crop_3667341647_0.png.png imagette203876681739164475/1739164171_3598868_1336396796_407a0710c0cd9c5454ca6f9d448e08fb_rle_crop_3667338608_0.png.png imagette203876681739164475/1739163853_3591343_1336395362_aa28aee7a1ce06f65a8c69c544db0e24_rle_crop_3667335069_0.png.png imagette203876681739164475/1739164393_3601928_1336396878_6d53cb56b6956876c1774bb96b5e2e64_rle_crop_3667341562_0.png.png imagette203876681739164475/1739164141_3598214_1336396507_a887cd1831ef5d6f186c51aaf6085d23_rle_crop_3667338532_0.png.png imagette203876681739164475/1739164141_3598214_1336396496_7cfe6027e08fa8d3c02c4fc314cffe9e_rle_crop_3667338574_0.png.png imagette203876681739164475/1739164141_3598214_1336396508_0e967be37635e8526b8c253aa7aeb558_rle_crop_3667338521_0.png.png imagette203876681739164475/1739164272_3600576_1336396860_7b9e86aa2d7f434515ceb7781d7aba74_rle_crop_3667341035_0.png.png imagette203876681739164475/1739164413_3602218_1336396859_ed7dd905cdfae17581ca87439f5813e9_rle_crop_3667341655_0.png.png imagette203876681739164475/1739164153_3598530_1336396797_f966192fea4f93f538525db9d84dd374_rle_crop_3667338506_0.png.png imagette203876681739164475/1739164153_3598530_1336396797_f966192fea4f93f538525db9d84dd374_rle_crop_3667338501_0.png.png imagette203876681739164475/1739163914_3592572_1336395501_67db6ade177e665201726930105481e4_rle_crop_3667335318_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/611346d3951f6ad92305e5b883fcde35_36336494.png imagette203876681739164475 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20387604 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20387669,20387670,20387671,20387672,20387673,20387674,20387675,20387676,20387677,20387678,20387679,20387680?tags=cartonnette,autre_refus,plastique,flou,kraft,metal,mal_croppe,Carton_gris,papier,environnement,Teint_Dans_La_Masse,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1336397327] : ('0.04056756320031221',) no score found for photo 1336397327 apple ('0.04056756320031221',) We are sending mail with results at report@fotonower.com args[1336397326] : ('0.04056756320031221',) no score found for photo 1336397326 apple ('0.04056756320031221',) We are sending mail with results at report@fotonower.com args[1336397325] : ('0.04056756320031221',) no score found for photo 1336397325 apple ('0.04056756320031221',) We are sending mail with results at report@fotonower.com args[1336397324] : ('0.04056756320031221',) no score found for photo 1336397324 apple ('0.04056756320031221',) We are sending mail with results at report@fotonower.com args[1336397247] : ('0.04056756320031221',) no score found for photo 1336397247 apple ('0.04056756320031221',) We are sending mail with results at report@fotonower.com args[1336397213] : ('0.04056756320031221',) no score found for photo 1336397213 apple ('0.04056756320031221',) We are sending mail with results at report@fotonower.com args[1336397084] : ('0.04056756320031221',) no score found for photo 1336397084 apple ('0.04056756320031221',) We are sending mail with results at report@fotonower.com args[1336397030] : ('0.04056756320031221',) no score found for photo 1336397030 apple ('0.04056756320031221',) We are sending mail with results at report@fotonower.com args[1336396968] : ('0.04056756320031221',) no score found for photo 1336396968 apple ('0.04056756320031221',) We are sending mail with results at report@fotonower.com args[1336396921] : ('0.04056756320031221',) no score found for photo 1336396921 apple ('0.04056756320031221',) We are sending mail with results at report@fotonower.com args[1336396902] : ('0.04056756320031221',) no score found for photo 1336396902 apple ('0.04056756320031221',) We are sending mail with results at report@fotonower.com refus_total : 0.04056756320031221 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=20387604 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_P20387604_10-02-2025_06_14_32.pdf results_Auto_P20387604_10-02-2025_06_14_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387604_10-02-2025_06_14_32.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20387604','results_Auto_P20387604_10-02-2025_06_14_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387604_10-02-2025_06_14_32.pdf','pdf','','0.29','0.04056756320031221') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20387604]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902] map_info['map_portfolio_photo'] : {20387604: [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902, 1336396892, 1336396880, 1336396878, 1336396876, 1336396874, 1336396860, 1336396859, 1336396825, 1336396822, 1336396821, 1336396820, 1336396819, 1336396797, 1336396796, 1336396795, 1336396782, 1336396780, 1336396776, 1336396774, 1336396765, 1336396521, 1336396510, 1336396508, 1336396507, 1336396496, 1336396490, 1336396174, 1336396173, 1336396107, 1336395757, 1336395621, 1336395501, 1336395396, 1336395393, 1336395391, 1336395389, 1336395385, 1336395380, 1336395365, 1336395363, 1336395362, 1336395361, 1336395192]} final : False mtd_id 4302 list_pids : [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902] 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, '2570039') ('4302', '20387604', '1336397327', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397326', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397325', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397324', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397247', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397213', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397084', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397030', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396968', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396921', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396902', None, None, None, None, None, '2570039') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '20387604', '1336397327', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397326', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397325', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397324', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397247', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397213', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397084', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397030', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336396968', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336396921', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336396902', None, None, None, None, None, '2570039')] time used for this insertion : 0.024184703826904297 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.6574578285217285 time spend to save output : 0.024361133575439453 total time spend for step 4 : 5.681818962097168 step5:split_time_score Mon Feb 10 06:14:37 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 : ['20387604'] 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 : [('20387604',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20387604) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336397326: {'path': 'temp/1739164471_1148235_1336397326_18e6b15910796267259d893685ab9190.jpg', 'extension': 'jpg'}, 1336397327: {'path': 'temp/1739164471_1148235_1336397327_1ff70b8f8251a07c8d30ae032f8f673f.jpg', 'extension': 'jpg'}, 1336397247: {'path': 'temp/1739164471_1148235_1336397247_04f64ef4cb06e695bd22ae624bb6f4fd.jpg', 'extension': 'jpg'}, 1336397324: {'path': 'temp/1739164471_1148235_1336397324_c3505da97174ebc2fbb5a5779778397c.jpg', 'extension': 'jpg'}, 1336397325: {'path': 'temp/1739164471_1148235_1336397325_70286ea36eef7e9213daecc3b9398f82.jpg', 'extension': 'jpg'}, 1336397030: {'path': 'temp/1739164471_1148235_1336397030_644fba8e45fd1ac8e67904f98f7ebe4c.jpg', 'extension': 'jpg'}, 1336397084: {'path': 'temp/1739164471_1148235_1336397084_c4785aee02ae1697155260b501541868.jpg', 'extension': 'jpg'}, 1336397213: {'path': 'temp/1739164471_1148235_1336397213_52b4d45f80d5581f78c34e67e417517d.jpg', 'extension': 'jpg'}, 1336396902: {'path': 'temp/1739164471_1148235_1336396902_6728eadaa388ad6680d7563a4469ecad.jpg', 'extension': 'jpg'}, 1336396921: {'path': 'temp/1739164471_1148235_1336396921_92166f17a4cebb1b5dedb0c62d4a19ff.jpg', 'extension': 'jpg'}, 1336396968: {'path': 'temp/1739164471_1148235_1336396968_1be1044b828ed5f8051c09da1da9ade7.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 = 20387604; (('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 = 20387604 group by h (('06', 54),) 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=20387604 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 (20387604) 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 (20387604) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10022025 20387604 Nombre de photos uploadées : 54 / 23040 (0%) 10022025 20387604 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 10022025 20387604 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1336395192, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/9df26ffbd5c0dbb3840fb2473b4f243a.jpg', 'username': None, 'uploaded_at': 1739163667, 'text': 'image_10022025_06_00_14_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336395365, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/c551ad53bdc1aa53dcd856ffd5a21cde.jpg', 'username': None, 'uploaded_at': 1739163728, 'text': 'image_10022025_06_00_54_010136m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1336395363, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/b03a894309a7fc51ff35d9fdc13e0094.jpg', 'username': None, 'uploaded_at': 1739163728, 'text': 'image_10022025_06_01_14_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336395362, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/10/aa28aee7a1ce06f65a8c69c544db0e24.jpg', 'username': None, 'uploaded_at': 1739163728, 'text': 'image_10022025_06_01_24_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 3.337860107421875e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0013523101806640625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20387604, '2025-02-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1590566,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02863025665283203 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= 1590566 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1590566, 'dashboard_run_id': 1598136, 'mtr_portfolio_id': 20385910, 'dashboard_result_id': 8780658, '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_P20385910_10-02-2025_05_34_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20385912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20385913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20385914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20385915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20385916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20385917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20385918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20385919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20385920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20385921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20385922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20385923, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1598136, 'mtr_portfolio_id': 20386506, 'dashboard_result_id': 8780659, '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_P20386506_10-02-2025_05_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20386510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20386511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20386512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20386514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20386515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20386516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20386517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20386518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20386519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20386520, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1598136, 'mtr_portfolio_id': 20387155, 'dashboard_result_id': 8780660, '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_P20387155_10-02-2025_06_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387170, 'pht': 3726}}"}, {'dashboat_entry_day': 1590566, 'dashboard_run_id': 1598136, 'mtr_portfolio_id': 20387604, 'dashboard_result_id': 8780661, '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_P20387604_10-02-2025_06_13_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387668, '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 = 20385910 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': 2569962, 'mtr_portfolio_id': 20385910, 'created_at': datetime.datetime(2025, 2, 10, 5, 34, 30), 'result': '0.05512025960710891', 'result_long': None, 'result_double': None}] Qualite : 0.05512025960710891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20385910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20385910_10-02-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20385910 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_P20385910_10-02-2025_05_34_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20385912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20385913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20385914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20385915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20385916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20385917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20385918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20385919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20385920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20385921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20385922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20385923, 'pht': 3726}}" where mtr_portfolio_id = 20385910 and dashboard_run_id = 1598136 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`=20385910 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780658, 0.05512025960710891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20385910_10-02-2025_05_34_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20385912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20385913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20385914, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20385915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20385916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20385917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20385918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20385919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20385920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20385921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20385922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20385923, '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 = 20386506 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': 2569963, 'mtr_portfolio_id': 20386506, 'created_at': datetime.datetime(2025, 2, 10, 5, 46, 30), 'result': '0.04677344814338779', 'result_long': None, 'result_double': None}] Qualite : 0.04677344814338779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20386506 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20386506_10-02-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20386506 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_P20386506_10-02-2025_05_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20386510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20386511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20386512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20386514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20386515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20386516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20386517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20386518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20386519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20386520, 'pht': 3726}}" where mtr_portfolio_id = 20386506 and dashboard_run_id = 1598136 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`=20386506 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780659, 0.04677344814338779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20386506_10-02-2025_05_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20386510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20386511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20386512, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20386514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20386515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20386516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20386517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20386518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20386519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20386520, '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 = 20387155 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': 2569996, 'mtr_portfolio_id': 20387155, 'created_at': datetime.datetime(2025, 2, 10, 6, 2, 58), 'result': '0.05581708337328718', 'result_long': None, 'result_double': None}] Qualite : 0.05581708337328718 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20387155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387155_10-02-2025_06_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20387155 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_P20387155_10-02-2025_06_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387170, 'pht': 3726}}" where mtr_portfolio_id = 20387155 and dashboard_run_id = 1598136 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`=20387155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780660, 0.05581708337328718, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387155_10-02-2025_06_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387159, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387170, '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 = 20387604 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': 2570039, 'mtr_portfolio_id': 20387604, 'created_at': datetime.datetime(2025, 2, 10, 6, 14, 31), 'result': '0.04056756320031221', 'result_long': None, 'result_double': None}] Qualite : 0.04056756320031221 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20387604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387604_10-02-2025_06_14_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20387604 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_P20387604_10-02-2025_06_14_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387668, 'pht': 3726}}" where mtr_portfolio_id = 20387604 and dashboard_run_id = 1598136 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`=20387604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8780661, 0.04056756320031221, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20387604_10-02-2025_06_14_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20387657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20387658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20387659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20387660, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20387661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20387662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20387663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20387664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20387665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20387666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20387667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20387668, '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 (20385910,20386506,20387155,20387604) result : ((1336381626,), (1336381627,), (1336381628,), (1336381629,), (1336381637,), (1336381638,), (1336381639,), (1336381640,), (1336381653,), (1336381654,), (1336381655,), (1336381656,), (1336381661,), (1336382822,), (1336382828,), (1336382829,), (1336383447,), (1336383511,), (1336383529,), (1336383557,), (1336383720,), (1336383721,), (1336383722,), (1336383864,), (1336383865,), (1336383866,), (1336383872,), (1336384162,), (1336384234,), (1336384313,), (1336384354,), (1336384355,), (1336384605,), (1336384607,), (1336384608,), (1336384633,), (1336384636,), (1336384651,), (1336384652,), (1336384653,), (1336384674,), (1336384677,), (1336384679,), (1336384682,), (1336384683,), (1336384690,), (1336384691,), (1336384692,), (1336384701,), (1336384703,), (1336384705,), (1336384707,), (1336384749,), (1336384750,), (1336384751,), (1336384752,), (1336384769,), (1336384771,), (1336384791,), (1336384788,), (1336384790,), (1336385029,), (1336385088,), (1336385119,), (1336385164,), (1336385766,), (1336385778,), (1336385781,), (1336385784,), (1336385785,), (1336385786,), (1336386121,), (1336386164,), (1336386338,), (1336386339,), (1336386340,), (1336386794,), (1336386908,), (1336388036,), (1336388037,), (1336388721,), (1336388725,), (1336388811,), (1336389467,), (1336389468,), (1336389612,), (1336389750,), (1336390014,), (1336390041,), (1336390176,), (1336390177,), (1336390178,), (1336390179,), (1336390352,), (1336390359,), (1336390374,), (1336390379,), (1336390842,), (1336390870,), (1336390891,), (1336390959,), (1336391231,), (1336391233,), (1336391234,), (1336391235,), (1336391242,), (1336391246,), (1336391247,), (1336391261,), (1336391260,), (1336391415,), (1336391440,), (1336391511,), (1336391533,), (1336391623,), (1336391624,), (1336391631,), (1336391632,), (1336391633,), (1336391636,), (1336391637,), (1336391653,), (1336391654,), (1336391655,), (1336391656,), (1336391663,), (1336391674,), (1336391785,), (1336393033,), (1336393034,), (1336393102,), (1336393175,), (1336393692,), (1336393741,), (1336393883,), (1336393888,), (1336393893,), (1336393900,), (1336393901,), (1336393902,), (1336393910,), (1336393912,), (1336393914,), (1336393924,), (1336393925,), (1336393926,), (1336393927,), (1336393939,), (1336393940,), (1336393941,), (1336394888,), (1336394936,), (1336394948,), (1336394950,), (1336395028,), (1336395029,), (1336395030,), (1336395193,), (1336395192,), (1336395361,), (1336395362,), (1336395363,), (1336395365,), (1336395380,), (1336395385,), (1336395389,), (1336395391,), (1336395393,), (1336395396,), (1336395501,), (1336395621,), (1336395757,), (1336396107,), (1336396173,), (1336396174,), (1336396490,), (1336396496,), (1336396507,), (1336396508,), (1336396510,), (1336396521,), (1336396765,), (1336396774,), (1336396776,), (1336396780,), (1336396782,), (1336396795,), (1336396796,), (1336396797,), (1336396819,), (1336396820,), (1336396821,), (1336396822,), (1336396825,), (1336396859,), (1336396860,), (1336396874,), (1336396876,), (1336396878,), (1336396880,), (1336396892,), (1336396902,), (1336396921,), (1336396968,), (1336397030,), (1336397084,), (1336397213,), (1336397247,), (1336397324,), (1336397325,), (1336397326,), (1336397327,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10022025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20387604]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902] map_info['map_portfolio_photo'] : {20387604: [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902, 1336396892, 1336396880, 1336396878, 1336396876, 1336396874, 1336396860, 1336396859, 1336396825, 1336396822, 1336396821, 1336396820, 1336396819, 1336396797, 1336396796, 1336396795, 1336396782, 1336396780, 1336396776, 1336396774, 1336396765, 1336396521, 1336396510, 1336396508, 1336396507, 1336396496, 1336396490, 1336396174, 1336396173, 1336396107, 1336395757, 1336395621, 1336395501, 1336395396, 1336395393, 1336395391, 1336395389, 1336395385, 1336395380, 1336395365, 1336395363, 1336395362, 1336395361, 1336395192]} final : True mtd_id 4302 list_pids : [1336397327, 1336397326, 1336397325, 1336397324, 1336397247, 1336397213, 1336397084, 1336397030, 1336396968, 1336396921, 1336396902] Looping around the photos to save general results len do output : 1 /20387604Didn'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, '2570039') ('4302', '20387604', '1336397327', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397326', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397325', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397324', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397247', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397213', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397084', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336397030', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396968', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396921', None, None, None, None, None, '2570039') ('4302', None, None, None, None, None, None, None, '2570039') ('4302', '20387604', '1336396902', None, None, None, None, None, '2570039') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '20387604', 'None', None, None, None, None, '2570039'), ('4302', '20387604', '1336397327', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397326', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397325', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397324', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397247', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397213', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397084', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336397030', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336396968', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336396921', None, None, None, None, None, '2570039'), ('4302', '20387604', '1336396902', None, None, None, None, None, '2570039')] time used for this insertion : 0.01926445960998535 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.349048376083374 time spend to save output : 0.019488096237182617 total time spend for step 5 : 0.36853647232055664 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 (2570039) 2.28user 2.23system 0:12.81elapsed 35%CPU (0avgtext+0avgdata 160324maxresident)k 4008inputs+16400outputs (28major+77262minor)pagefaults 0swaps