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 : 1117765 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 (2727012) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2727012) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080485 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2727012'] with mtr_portfolio_ids : ['22080485'] and first list_photo_ids : [] new path : /proc/1117765/ Name: python3 Umask: 0002 State: R (running) Tgid: 1117765 Ngid: 0 Pid: 1117765 PPid: 1117763 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1117765 NSpid: 1117765 NSpgid: 1116770 NSsid: 1116770 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99288 kB VmRSS: 99288 kB RssAnon: 59796 kB RssFile: 39492 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 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: 45 nonvoluntary_ctxt_switches: 106 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1117765', 'Ngid': '0', 'Pid': '1117765', 'PPid': '1117763', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1117765', 'NSpid': '1117765', 'NSpgid': '1116770', 'NSsid': '1116770', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99288 kB', 'VmRSS': '99288 kB', 'RssAnon': '59796 kB', 'RssFile': '39492 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '45', 'nonvoluntary_ctxt_switches': '106'} ('datou_batch_current', '1117765', '1106928', '0', '1106928', '865676', '99288', b'', 'marlene', '2727012') 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 (22080485) 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 (2727012 ) ) 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 (22080485) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350118274, 'portfolio_id': 22080485}, {'photo_id': 1350118272, 'portfolio_id': 22080485}, {'photo_id': 1350118268, 'portfolio_id': 22080485}, {'photo_id': 1350118259, 'portfolio_id': 22080485}, {'photo_id': 1350118126, 'portfolio_id': 22080485}, {'photo_id': 1350118123, 'portfolio_id': 22080485}, {'photo_id': 1350118119, 'portfolio_id': 22080485}, {'photo_id': 1350118117, 'portfolio_id': 22080485}, {'photo_id': 1350118112, 'portfolio_id': 22080485}, {'photo_id': 1350118106, 'portfolio_id': 22080485}, {'photo_id': 1350117898, 'portfolio_id': 22080485}, {'photo_id': 1350117884, 'portfolio_id': 22080485}, {'photo_id': 1350117858, 'portfolio_id': 22080485}, {'photo_id': 1350117851, 'portfolio_id': 22080485}, {'photo_id': 1350117847, 'portfolio_id': 22080485}, {'photo_id': 1350117769, 'portfolio_id': 22080485}, {'photo_id': 1350117760, 'portfolio_id': 22080485}, {'photo_id': 1350117753, 'portfolio_id': 22080485}, {'photo_id': 1350117692, 'portfolio_id': 22080485}, {'photo_id': 1350117688, 'portfolio_id': 22080485}, {'photo_id': 1350117683, 'portfolio_id': 22080485}, {'photo_id': 1350117679, 'portfolio_id': 22080485}, {'photo_id': 1350117675, 'portfolio_id': 22080485}, {'photo_id': 1350117671, 'portfolio_id': 22080485}, {'photo_id': 1350117503, 'portfolio_id': 22080485}, {'photo_id': 1350117498, 'portfolio_id': 22080485}, {'photo_id': 1350117486, 'portfolio_id': 22080485}, {'photo_id': 1350117477, 'portfolio_id': 22080485}, {'photo_id': 1350117462, 'portfolio_id': 22080485}, {'photo_id': 1350117389, 'portfolio_id': 22080485}, {'photo_id': 1350117385, 'portfolio_id': 22080485}, {'photo_id': 1350117354, 'portfolio_id': 22080485}, {'photo_id': 1350117248, 'portfolio_id': 22080485}, {'photo_id': 1350117233, 'portfolio_id': 22080485}, {'photo_id': 1350117176, 'portfolio_id': 22080485}, {'photo_id': 1350117156, 'portfolio_id': 22080485}, {'photo_id': 1350117106, 'portfolio_id': 22080485}, {'photo_id': 1350117060, 'portfolio_id': 22080485}, {'photo_id': 1350116906, 'portfolio_id': 22080485}, {'photo_id': 1350116884, 'portfolio_id': 22080485}, {'photo_id': 1350116864, 'portfolio_id': 22080485}] map_portfolio_id_photo_id: {22080485: [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847, 1350117769, 1350117760, 1350117753, 1350117692, 1350117688, 1350117683, 1350117679, 1350117675, 1350117671, 1350117503, 1350117498, 1350117486, 1350117477, 1350117462, 1350117389, 1350117385, 1350117354, 1350117248, 1350117233, 1350117176, 1350117156, 1350117106, 1350117060, 1350116906, 1350116884, 1350116864]} ##### 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.019454002380371094 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 4 15:54: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 (22080485) 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 : 22080485 get user id for portfolio 22080485 get sub ptf for main ptf 22080485, type 3726 and hashtags ['kraft', 'Teint_Dans_La_Masse', 'environnement', 'papier', 'Carton_gris', 'autre_refus', 'flou', 'plastique', 'cartonnette', 'metal', 'Carton_brun', 'mal_croppe'] 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`=22080485 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','environnement','papier','Carton_gris','autre_refus','flou','plastique','cartonnette','metal','Carton_brun','mal_croppe')) 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`=22080485 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','environnement','papier','Carton_gris','autre_refus','flou','plastique','cartonnette','metal','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22080485, 'sub_port_id': 22080514, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566817, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}, 'cartonnette': {'main_port_id': 22080485, 'sub_port_id': 22080515, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566818, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}, 'kraft': {'main_port_id': 22080485, 'sub_port_id': 22080516, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566819, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}, 'metal': {'main_port_id': 22080485, 'sub_port_id': 22080517, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566820, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}, 'environnement': {'main_port_id': 22080485, 'sub_port_id': 22080518, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566821, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}, 'plastique': {'main_port_id': 22080485, 'sub_port_id': 22080519, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566822, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22080485, 'sub_port_id': 22080520, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566823, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}, 'papier': {'main_port_id': 22080485, 'sub_port_id': 22080521, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566824, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}, 'Carton_gris': {'main_port_id': 22080485, 'sub_port_id': 22080522, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566825, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}, 'mal_croppe': {'main_port_id': 22080485, 'sub_port_id': 22080523, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566826, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}, 'Carton_brun': {'main_port_id': 22080485, 'sub_port_id': 22080524, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566827, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}, 'autre_refus': {'main_port_id': 22080485, 'sub_port_id': 22080525, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566828, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22080514 , 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=22080485 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 (22080514) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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 22080515 , 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=22080485 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 (22080515) result : ((1350117655,), (1350117735,), (1350118030,), (1350118262,), (1350118263,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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 22080516 , 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=22080485 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 (22080516) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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 22080517 , 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=22080485 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 (22080517) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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 22080518 , 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=22080485 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 (22080518) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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 22080519 , 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=22080485 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 (22080519) result : ((1350117661,), (1350117740,), (1350117741,), (1350117835,), (1350117836,), (1350118266,), (1350118267,), (1350118269,), (1350118270,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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 22080520 , 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=22080485 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 (22080520) result : ((1350117731,), (1350117732,), (1350117733,), (1350118026,), (1350118027,), (1350118247,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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 22080521 , 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=22080485 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 (22080521) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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 22080522 , 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=22080485 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 (22080522) result : ((1350117734,), (1350117828,), (1350117829,), (1350117830,), (1350118029,), (1350118257,), (1350118258,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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 22080523 , 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=22080485 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 (22080523) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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 22080524 , 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=22080485 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 (22080524) result : ((1350117658,), (1350117659,), (1350117738,), (1350117833,), (1350117834,), (1350118031,), (1350118032,), (1350118033,), (1350118034,), (1350118035,), (1350118264,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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 22080525 , 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=22080485 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 (22080525) result : ((1350117654,), (1350118250,), (1350118251,), (1350118252,), (1350118253,), (1350118254,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22080485) result : ((1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) 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`=22080485 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','environnement','papier','Carton_gris','autre_refus','flou','plastique','cartonnette','metal','Carton_brun','mal_croppe')) 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`=22080485 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Teint_Dans_La_Masse','environnement','papier','Carton_gris','autre_refus','flou','plastique','cartonnette','metal','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22080485, 'sub_port_id': 22080526, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566829, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}, 'cartonnette': {'main_port_id': 22080485, 'sub_port_id': 22080527, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566830, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}, 'kraft': {'main_port_id': 22080485, 'sub_port_id': 22080528, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566831, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}, 'metal': {'main_port_id': 22080485, 'sub_port_id': 22080529, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566832, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}, 'environnement': {'main_port_id': 22080485, 'sub_port_id': 22080530, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566833, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}, 'plastique': {'main_port_id': 22080485, 'sub_port_id': 22080531, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566834, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22080485, 'sub_port_id': 22080532, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566835, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}, 'papier': {'main_port_id': 22080485, 'sub_port_id': 22080533, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566836, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}, 'Carton_gris': {'main_port_id': 22080485, 'sub_port_id': 22080534, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566837, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}, 'mal_croppe': {'main_port_id': 22080485, 'sub_port_id': 22080535, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566838, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}, 'Carton_brun': {'main_port_id': 22080485, 'sub_port_id': 22080536, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566839, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}, 'autre_refus': {'main_port_id': 22080485, 'sub_port_id': 22080537, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566840, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080526,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080514 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080527,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080515 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080528,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080516 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080529,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080517 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080530,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080518 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080531,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080519 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080532,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080520 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080533,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080521 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080534,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080522 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080535,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080523 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080536,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080524 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22080537,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22080525 lien utilise dans velours : https://www.fotonower.com/velours/22080526,22080527,22080528,22080529,22080530,22080531,22080532,22080533,22080534,22080535,22080536,22080537?tags=flou,cartonnette,kraft,metal,environnement,plastique,Teint_Dans_La_Masse,papier,Carton_gris,mal_croppe,Carton_brun,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22080485]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847] map_info['map_portfolio_photo'] : {22080485: [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847, 1350117769, 1350117760, 1350117753, 1350117692, 1350117688, 1350117683, 1350117679, 1350117675, 1350117671, 1350117503, 1350117498, 1350117486, 1350117477, 1350117462, 1350117389, 1350117385, 1350117354, 1350117248, 1350117233, 1350117176, 1350117156, 1350117106, 1350117060, 1350116906, 1350116884, 1350116864]} final : False mtd_id 4302 list_pids : [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847] Looping around the photos to save general results len do output : 1 /22080485. 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, '2727012') ('4302', '22080485', '1350118274', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118272', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118268', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118259', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118126', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118123', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118119', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118117', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118112', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118106', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117898', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117884', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117858', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117851', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117847', None, None, None, None, None, '2727012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '22080485', "{'flou': 22080514, 'cartonnette': 22080515, 'kraft': 22080516, 'metal': 22080517, 'environnement': 22080518, 'plastique': 22080519, 'Teint_Dans_La_Masse': 22080520, 'papier': 22080521, 'Carton_gris': 22080522, 'mal_croppe': 22080523, 'Carton_brun': 22080524, 'autre_refus': 22080525}", None, None, None, None, '2727012'), ('4302', '22080485', '1350118274', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118272', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118268', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118259', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118126', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118123', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118119', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118117', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118112', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118106', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117898', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117884', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117858', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117851', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117847', None, None, None, None, None, '2727012')] time used for this insertion : 0.01564764976501465 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5052435398101807 time spend to save output : 0.0158994197845459 total time spend for step 1 : 1.5211429595947266 step2:final Fri Apr 4 15:54: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 (22080485) 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 22080485 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350116906,1350116884,1350116864,1350117248,1350117233,1350117176,1350117156,1350117106,1350117060,1350117389,1350117385,1350117503,1350117354,1350117498,1350117486,1350117477,1350117462,1350117692,1350117688,1350117683,1350117679,1350117675,1350117671,1350117769,1350117760,1350117753,1350117898,1350117884,1350117858,1350117851,1350117847,1350118126,1350118123,1350118119,1350118117,1350118112,1350118106,1350118274,1350118272,1350118268,1350118259); 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([22080485]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} new output for save of step final : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847] map_info['map_portfolio_photo'] : {22080485: [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847, 1350117769, 1350117760, 1350117753, 1350117692, 1350117688, 1350117683, 1350117679, 1350117675, 1350117671, 1350117503, 1350117498, 1350117486, 1350117477, 1350117462, 1350117389, 1350117385, 1350117354, 1350117248, 1350117233, 1350117176, 1350117156, 1350117106, 1350117060, 1350116906, 1350116884, 1350116864]} final : False mtd_id 4302 list_pids : [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847] Looping around the photos to save general results len do output : 15 /1350118274.Didn't retrieve data . /1350118272.Didn't retrieve data . /1350118268.Didn't retrieve data . /1350118259.Didn't retrieve data . /1350118126.Didn't retrieve data . /1350118123.Didn't retrieve data . /1350118119.Didn't retrieve data . /1350118117.Didn't retrieve data . /1350118112.Didn't retrieve data . /1350118106.Didn't retrieve data . /1350117898.Didn't retrieve data . /1350117884.Didn't retrieve data . /1350117858.Didn't retrieve data . /1350117851.Didn't retrieve data . /1350117847.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, '2727012') ('4302', '22080485', '1350118274', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118272', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118268', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118259', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118126', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118123', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118119', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118117', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118112', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118106', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117898', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117884', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117858', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117851', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117847', None, None, None, None, None, '2727012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '22080485', '1350118274', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350118272', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350118268', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350118259', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350118126', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350118123', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350118119', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350118117', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350118112', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350118106', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350117898', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350117884', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350117858', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350117851', '0.04102651291618528', None, None, None, None, '2727012'), ('4302', '22080485', '1350117847', '0.04102651291618528', None, None, None, None, '2727012')] time used for this insertion : 0.013695001602172852 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0686945915222168 time spend to save output : 0.01405954360961914 total time spend for step 2 : 0.08275413513183594 step3:velours_tree Fri Apr 4 15:54: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 : {22080485: [{'flou': 22080514, 'cartonnette': 22080515, 'kraft': 22080516, 'metal': 22080517, 'environnement': 22080518, 'plastique': 22080519, 'Teint_Dans_La_Masse': 22080520, 'papier': 22080521, 'Carton_gris': 22080522, 'mal_croppe': 22080523, 'Carton_brun': 22080524, 'autre_refus': 22080525}]} input_args_next_step : {22080485: ()} output_args : {22080485: [{'flou': 22080514, 'cartonnette': 22080515, 'kraft': 22080516, 'metal': 22080517, 'environnement': 22080518, 'plastique': 22080519, 'Teint_Dans_La_Masse': 22080520, 'papier': 22080521, 'Carton_gris': 22080522, 'mal_croppe': 22080523, 'Carton_brun': 22080524, 'autre_refus': 22080525}]} args : 22080485 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 : ({'flou': 22080514, 'cartonnette': 22080515, 'kraft': 22080516, 'metal': 22080517, 'environnement': 22080518, 'plastique': 22080519, 'Teint_Dans_La_Masse': 22080520, 'papier': 22080521, 'Carton_gris': 22080522, 'mal_croppe': 22080523, 'Carton_brun': 22080524, 'autre_refus': 22080525},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22080485) 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([22080485]) 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.31994128227233887 time spend to save output : 7.414817810058594e-05 total time spend for step 3 : 0.32001543045043945 step4:send_mail_cod Fri Apr 4 15:54: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 : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} input_args_next_step : {1350118274: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350118274 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350118272 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350118268 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350118259 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350118126 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350118123 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350118119 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350118117 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350118112 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350118106 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350117898 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350117884 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350117858 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350117851 depend.output_id : 0 input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ()} output_args : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',)} args : 1350117847 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 : {22080485: [{'flou': 22080514, 'cartonnette': 22080515, 'kraft': 22080516, 'metal': 22080517, 'environnement': 22080518, 'plastique': 22080519, 'Teint_Dans_La_Masse': 22080520, 'papier': 22080521, 'Carton_gris': 22080522, 'mal_croppe': 22080523, 'Carton_brun': 22080524, 'autre_refus': 22080525}]} input_args_next_step : {1350118274: ('0.04102651291618528',), 1350118272: ('0.04102651291618528',), 1350118268: ('0.04102651291618528',), 1350118259: ('0.04102651291618528',), 1350118126: ('0.04102651291618528',), 1350118123: ('0.04102651291618528',), 1350118119: ('0.04102651291618528',), 1350118117: ('0.04102651291618528',), 1350118112: ('0.04102651291618528',), 1350118106: ('0.04102651291618528',), 1350117898: ('0.04102651291618528',), 1350117884: ('0.04102651291618528',), 1350117858: ('0.04102651291618528',), 1350117851: ('0.04102651291618528',), 1350117847: ('0.04102651291618528',), 22080485: ()} output_args : {22080485: [{'flou': 22080514, 'cartonnette': 22080515, 'kraft': 22080516, 'metal': 22080517, 'environnement': 22080518, 'plastique': 22080519, 'Teint_Dans_La_Masse': 22080520, 'papier': 22080521, 'Carton_gris': 22080522, 'mal_croppe': 22080523, 'Carton_brun': 22080524, 'autre_refus': 22080525}]} args : 22080485 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 :16, first value : ('0.04102651291618528',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22080485) 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 (1350118274,1350118272,1350118268,1350118259,1350118126,1350118123,1350118119,1350118117,1350118112,1350118106,1350117898,1350117884,1350117858,1350117851,1350117847) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350117847 begin to download photo : 1350117898 begin to download photo : 1350118119 begin to download photo : 1350118268 download finish for photo 1350118268 begin to download photo : 1350118272 download finish for photo 1350118119 begin to download photo : 1350118123 download finish for photo 1350117898 begin to download photo : 1350118106 download finish for photo 1350117847 begin to download photo : 1350117851 download finish for photo 1350118272 begin to download photo : 1350118274 download finish for photo 1350117851 begin to download photo : 1350117858 download finish for photo 1350118106 begin to download photo : 1350118112 download finish for photo 1350118123 begin to download photo : 1350118126 download finish for photo 1350118274 download finish for photo 1350118112 begin to download photo : 1350118117 download finish for photo 1350118126 begin to download photo : 1350118259 download finish for photo 1350117858 begin to download photo : 1350117884 download finish for photo 1350118259 download finish for photo 1350117884 download finish for photo 1350118117 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220805141743774871/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22080485_04-04-2025_15_54_31.pdf 22080514 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=22080514 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220805141743774871 22080515 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=22080515 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350117655: '1743774565_2365637_1350117385_530e4cde0cde7a5c3817900e5cb4eb4f_rle_crop_3748178208_0.png', 1350117735: '1743774575_3646820_1350117060_103a6a3be3747d0ff2ad6633a20bd12b_rle_crop_3748179519_0.png', 1350118030: '1743774712_3648778_1350117248_58b7da2b773926c66cae52d298476af5_rle_crop_3748179597_0.png', 1350118262: '1743774807_2373226_1350117769_04497c031bff6174413f081808a8900f_rle_crop_3748181218_0.png', 1350118263: '1743774807_2373226_1350117683_abac5062f8d695ce2d236caf60808391_rle_crop_3748181248_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ed0f2487d4c28d6608cfdef29ae50bcc_95500855.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/44e3f4f23a11e4efa0451e5876a175d4_16216201.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3478d33c74784d73ad76d8d0e4c2d290_24065851.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/12463057513435cb7624d73018184f3c_35213210.png change filename to text .imagette220805151743774871/ imagette220805151743774871/1743774807_2373226_1350117683_abac5062f8d695ce2d236caf60808391_rle_crop_3748181248_0.png.png imagette220805151743774871/1743774565_2365637_1350117385_530e4cde0cde7a5c3817900e5cb4eb4f_rle_crop_3748178208_0.png.png imagette220805151743774871/1743774712_3648778_1350117248_58b7da2b773926c66cae52d298476af5_rle_crop_3748179597_0.png.png imagette220805151743774871/1743774575_3646820_1350117060_103a6a3be3747d0ff2ad6633a20bd12b_rle_crop_3748179519_0.png.png imagette220805151743774871/1743774807_2373226_1350117769_04497c031bff6174413f081808a8900f_rle_crop_3748181218_0.png.png imagette220805161743774872/ imagette220805171743774872/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9b09a5ea57c3d3eb4d87aa0145794f1b_31434924.png imagette220805151743774871 22080516 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=22080516 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220805161743774872 22080517 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=22080517 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220805171743774872 22080519 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=22080519 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350117661: '1743774565_2365637_1350117385_530e4cde0cde7a5c3817900e5cb4eb4f_rle_crop_3748178202_0.png', 1350117740: '1743774575_3646820_1350117389_bbc50a29fc18ca8d2bdcefb6ba3457e4_rle_crop_3748178671_0.png', 1350117741: '1743774575_3646820_1350117060_103a6a3be3747d0ff2ad6633a20bd12b_rle_crop_3748179517_0.png', 1350117835: '1743774685_2370028_1350117486_f5aab266166f56598991dfeea4614c3b_rle_crop_3748179718_0.png', 1350117836: '1743774685_2370028_1350117477_fd2ffe318f2b9900cbcd05b47036c20a_rle_crop_3748180245_0.png', 1350118266: '1743774807_2373226_1350117769_04497c031bff6174413f081808a8900f_rle_crop_3748181221_0.png', 1350118267: '1743774807_2373226_1350117675_6415f2db8868ca2d5106a07a85cca589_rle_crop_3748181308_0.png', 1350118269: '1743774814_3649689_1350117760_b5c21d354044304a3e97ffb1017cab9f_rle_crop_3748181336_0.png', 1350118270: '1743774814_3649689_1350117760_b5c21d354044304a3e97ffb1017cab9f_rle_crop_3748181340_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/87dd53330883891b42da10e6cf8af548_24463108.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/12808ea48fa3e3c97c7cb06bf3e08bac_92725219.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/7bb8896c1772070100fba744eb9b66f5_15870226.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/74f970e2ca65a804671202e7e079e858_90449227.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/26e0ba30f3eb1c44a3e6d0e454fc7ae3_54168592.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/937b8eeab5307798c903182817db3908_39866210.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d7d19866b8c97103d1f6b7833b0f8499_12962541.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/e4b3dc55f841b4386998be5a6d10e824_46512559.png change filename to text .imagette220805191743774872/ imagette220805191743774872/1743774814_3649689_1350117760_b5c21d354044304a3e97ffb1017cab9f_rle_crop_3748181340_0.png.png imagette220805191743774872/1743774807_2373226_1350117769_04497c031bff6174413f081808a8900f_rle_crop_3748181221_0.png.png imagette220805191743774872/1743774685_2370028_1350117477_fd2ffe318f2b9900cbcd05b47036c20a_rle_crop_3748180245_0.png.png imagette220805191743774872/1743774575_3646820_1350117389_bbc50a29fc18ca8d2bdcefb6ba3457e4_rle_crop_3748178671_0.png.png imagette220805191743774872/1743774565_2365637_1350117385_530e4cde0cde7a5c3817900e5cb4eb4f_rle_crop_3748178202_0.png.png imagette220805191743774872/1743774814_3649689_1350117760_b5c21d354044304a3e97ffb1017cab9f_rle_crop_3748181336_0.png.png imagette220805191743774872/1743774575_3646820_1350117060_103a6a3be3747d0ff2ad6633a20bd12b_rle_crop_3748179517_0.png.png imagette220805191743774872/1743774685_2370028_1350117486_f5aab266166f56598991dfeea4614c3b_rle_crop_3748179718_0.png.png imagette220805191743774872/1743774807_2373226_1350117675_6415f2db8868ca2d5106a07a85cca589_rle_crop_3748181308_0.png.png imagette220805231743774872/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3d1e22b104f3e1b07ff429c65f57b9fc_3430847.png imagette220805191743774872 22080523 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=22080523 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220805231743774872 22080525 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=22080525 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350117654: '1743774565_2365637_1350117385_530e4cde0cde7a5c3817900e5cb4eb4f_rle_crop_3748178201_0.png', 1350118250: '1743774807_2373226_1350117683_abac5062f8d695ce2d236caf60808391_rle_crop_3748181254_0.png', 1350118251: '1743774807_2373226_1350117675_6415f2db8868ca2d5106a07a85cca589_rle_crop_3748181316_0.png', 1350118252: '1743774807_2373226_1350117675_6415f2db8868ca2d5106a07a85cca589_rle_crop_3748181310_0.png', 1350118253: '1743774807_2373226_1350117671_405cabb638b9bfd3e2520d77fac27e8e_rle_crop_3748181321_0.png', 1350118254: '1743774807_2373226_1350117671_405cabb638b9bfd3e2520d77fac27e8e_rle_crop_3748181325_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0579fab85f8f678dfe75eae2a5a2c9bf_71807177.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/7947846ca3012990bf1e2f3c2f84ebf0_86789324.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f93b835bc303fbcbdb82c1b4f51f881a_42950144.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3a14d9adcbde5f1682d3501a04f81815_80123878.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3d90985587091e928997f44d6e1d4073_98528700.png change filename to text .imagette220805251743774872/ imagette220805251743774872/1743774565_2365637_1350117385_530e4cde0cde7a5c3817900e5cb4eb4f_rle_crop_3748178201_0.png.png imagette220805251743774872/1743774807_2373226_1350117675_6415f2db8868ca2d5106a07a85cca589_rle_crop_3748181316_0.png.png imagette220805251743774872/1743774807_2373226_1350117671_405cabb638b9bfd3e2520d77fac27e8e_rle_crop_3748181321_0.png.png imagette220805251743774872/1743774807_2373226_1350117675_6415f2db8868ca2d5106a07a85cca589_rle_crop_3748181310_0.png.png imagette220805251743774872/1743774807_2373226_1350117683_abac5062f8d695ce2d236caf60808391_rle_crop_3748181254_0.png.png imagette220805251743774872/1743774807_2373226_1350117671_405cabb638b9bfd3e2520d77fac27e8e_rle_crop_3748181325_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c2a23356125e60afe7e1d809e3873d5a_99542943.png imagette220805251743774872 22080520 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=22080520 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350117731: '1743774575_3646820_1350117389_bbc50a29fc18ca8d2bdcefb6ba3457e4_rle_crop_3748178675_0.png', 1350117732: '1743774575_3646820_1350117156_b9750c7b72e63fcf11b18fa437993e2e_rle_crop_3748179410_0.png', 1350117733: '1743774575_3646820_1350117156_b9750c7b72e63fcf11b18fa437993e2e_rle_crop_3748179412_0.png', 1350118026: '1743774712_3648778_1350116884_bf78db63c8aee7b7171ae0253c7f9092_rle_crop_3748179611_0.png', 1350118027: '1743774712_3648778_1350116864_584d1592d32594b2dd98a6c5d87072d3_rle_crop_3748179622_0.png', 1350118247: '1743774807_2373226_1350117679_248b91518beb96edc4e26e71cdfdc46e_rle_crop_3748181269_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/918f4ba1aa1d763e4422c216489a1155_34839362.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/4cd15f9f774957b1d273df9fc327eb4f_92684059.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/331f7e174fc5522386e166e77f205b9f_25077073.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/14ea3f39f1805460e8fcb5a0d1c4419f_81355698.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3200c61acf1e4676de5b1d78edd0be59_11049450.png change filename to text .imagette220805201743774873/ imagette220805201743774873/1743774712_3648778_1350116864_584d1592d32594b2dd98a6c5d87072d3_rle_crop_3748179622_0.png.png imagette220805201743774873/1743774575_3646820_1350117389_bbc50a29fc18ca8d2bdcefb6ba3457e4_rle_crop_3748178675_0.png.png imagette220805201743774873/1743774575_3646820_1350117156_b9750c7b72e63fcf11b18fa437993e2e_rle_crop_3748179410_0.png.png imagette220805201743774873/1743774807_2373226_1350117679_248b91518beb96edc4e26e71cdfdc46e_rle_crop_3748181269_0.png.png imagette220805201743774873/1743774712_3648778_1350116884_bf78db63c8aee7b7171ae0253c7f9092_rle_crop_3748179611_0.png.png imagette220805201743774873/1743774575_3646820_1350117156_b9750c7b72e63fcf11b18fa437993e2e_rle_crop_3748179412_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/360f913809495f77e5a4a04aafdd3a27_66009023.png imagette220805201743774873 22080522 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=22080522 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350117734: '1743774575_3646820_1350117389_bbc50a29fc18ca8d2bdcefb6ba3457e4_rle_crop_3748178674_0.png', 1350117828: '1743774685_2370028_1350117498_2f5e51d042f0bba93d2a56166a0243eb_rle_crop_3748179709_0.png', 1350117829: '1743774685_2370028_1350117486_f5aab266166f56598991dfeea4614c3b_rle_crop_3748179721_0.png', 1350117830: '1743774685_2370028_1350117477_fd2ffe318f2b9900cbcd05b47036c20a_rle_crop_3748180246_0.png', 1350118029: '1743774712_3648778_1350117248_58b7da2b773926c66cae52d298476af5_rle_crop_3748179593_0.png', 1350118257: '1743774807_2373226_1350117683_abac5062f8d695ce2d236caf60808391_rle_crop_3748181257_0.png', 1350118258: '1743774807_2373226_1350117675_6415f2db8868ca2d5106a07a85cca589_rle_crop_3748181309_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/cd14508f44b605e9478f1868b13aa3a4_24214681.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/080c9e08b477aef759a04037ab5071ea_5845331.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d2d161e38bba2ce1437ed6a570210d6b_3220746.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/02840e03fcf6f0935864ebf68197158b_68562485.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/96884ab525371c8c934ef7de737302ca_83584348.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/05b36944f4290431572123d2084abbac_18849951.png change filename to text .imagette220805221743774873/ imagette220805221743774873/1743774685_2370028_1350117486_f5aab266166f56598991dfeea4614c3b_rle_crop_3748179721_0.png.png imagette220805221743774873/1743774712_3648778_1350117248_58b7da2b773926c66cae52d298476af5_rle_crop_3748179593_0.png.png imagette220805221743774873/1743774685_2370028_1350117477_fd2ffe318f2b9900cbcd05b47036c20a_rle_crop_3748180246_0.png.png imagette220805221743774873/1743774575_3646820_1350117389_bbc50a29fc18ca8d2bdcefb6ba3457e4_rle_crop_3748178674_0.png.png imagette220805221743774873/1743774685_2370028_1350117498_2f5e51d042f0bba93d2a56166a0243eb_rle_crop_3748179709_0.png.png imagette220805221743774873/1743774807_2373226_1350117675_6415f2db8868ca2d5106a07a85cca589_rle_crop_3748181309_0.png.png imagette220805221743774873/1743774807_2373226_1350117683_abac5062f8d695ce2d236caf60808391_rle_crop_3748181257_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/96573b46672de09baf73f52d30c4d0cd_20924316.png imagette220805221743774873 22080524 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=22080524 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350117658: '1743774565_2365637_1350117385_530e4cde0cde7a5c3817900e5cb4eb4f_rle_crop_3748178204_0.png', 1350117659: '1743774565_2365637_1350117385_530e4cde0cde7a5c3817900e5cb4eb4f_rle_crop_3748178206_0.png', 1350117738: '1743774575_3646820_1350117233_951405dd22f2cf76d22f22acc90e4281_rle_crop_3748178688_0.png', 1350117833: '1743774685_2370028_1350117486_f5aab266166f56598991dfeea4614c3b_rle_crop_3748179720_0.png', 1350117834: '1743774685_2370028_1350117477_fd2ffe318f2b9900cbcd05b47036c20a_rle_crop_3748180244_0.png', 1350118031: '1743774712_3648778_1350117248_58b7da2b773926c66cae52d298476af5_rle_crop_3748180809_0.png', 1350118032: '1743774712_3648778_1350117248_58b7da2b773926c66cae52d298476af5_bib_crop_3748179591_0.jpg', 1350118033: '1743774712_3648778_1350116884_bf78db63c8aee7b7171ae0253c7f9092_rle_crop_3748179616_0.png', 1350118034: '1743774712_3648778_1350116884_bf78db63c8aee7b7171ae0253c7f9092_rle_crop_3748179612_0.png', 1350118035: '1743774712_3648778_1350116864_584d1592d32594b2dd98a6c5d87072d3_rle_crop_3748179625_0.png', 1350118264: '1743774807_2373226_1350117688_897ef6a7977bd6af42c59318afd74abb_rle_crop_3748181233_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/268efa6dde8946d4909d0868dde14cf4_77421409.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a02d2e74fd62f9cb09c275d21938b88d_38397176.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/591d789cf1d2b50b741727642cb2790b_40934899.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/4f5458037aecaac5eb9ee1e67442f2aa_93337838.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/1a72be44b66d3bd090ad0d8be19e0268_30427684.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/b8163c0b2d08408eac2d7c18e91ea2e3_77687145.png change filename to text .wget -O 7.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/e65fdcc26e452eb223ca63edbde19297_12021635.jpg change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/29acbdc94d48a942d32886db86611d9c_71453993.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ca832fe1bbec591ae84dcd63899cb617_99167473.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/6f8bb94d07b50d39ddc2ecae998b7624_278685.png change filename to text .imagette220805241743774873/ imagette220805241743774873/1743774712_3648778_1350117248_58b7da2b773926c66cae52d298476af5_bib_crop_3748179591_0.jpg.jpg imagette220805241743774873/1743774565_2365637_1350117385_530e4cde0cde7a5c3817900e5cb4eb4f_rle_crop_3748178206_0.png.png imagette220805241743774873/1743774565_2365637_1350117385_530e4cde0cde7a5c3817900e5cb4eb4f_rle_crop_3748178204_0.png.png imagette220805241743774873/1743774575_3646820_1350117233_951405dd22f2cf76d22f22acc90e4281_rle_crop_3748178688_0.png.png imagette220805241743774873/1743774712_3648778_1350117248_58b7da2b773926c66cae52d298476af5_rle_crop_3748180809_0.png.png imagette220805241743774873/1743774712_3648778_1350116864_584d1592d32594b2dd98a6c5d87072d3_rle_crop_3748179625_0.png.png imagette220805241743774873/1743774712_3648778_1350116884_bf78db63c8aee7b7171ae0253c7f9092_rle_crop_3748179616_0.png.png imagette220805241743774873/1743774712_3648778_1350116884_bf78db63c8aee7b7171ae0253c7f9092_rle_crop_3748179612_0.png.png imagette220805241743774873/1743774685_2370028_1350117486_f5aab266166f56598991dfeea4614c3b_rle_crop_3748179720_0.png.png imagette220805241743774873/1743774807_2373226_1350117688_897ef6a7977bd6af42c59318afd74abb_rle_crop_3748181233_0.png.png imagette220805241743774873/1743774685_2370028_1350117477_fd2ffe318f2b9900cbcd05b47036c20a_rle_crop_3748180244_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/646b30bbb4343d48453e7211f7796cc7_87682689.png imagette220805241743774873 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22080485 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22080526,22080527,22080528,22080529,22080530,22080531,22080532,22080533,22080534,22080535,22080536,22080537?tags=flou,cartonnette,kraft,metal,environnement,plastique,Teint_Dans_La_Masse,papier,Carton_gris,mal_croppe,Carton_brun,autre_refus your option no_mail is active, we will not send the real mail to your client args[1350118274] : ('0.04102651291618528',) no score found for photo 1350118274 We are sending mail with results at report@fotonower.com args[1350118272] : ('0.04102651291618528',) no score found for photo 1350118272 We are sending mail with results at report@fotonower.com args[1350118268] : ('0.04102651291618528',) no score found for photo 1350118268 We are sending mail with results at report@fotonower.com args[1350118259] : ('0.04102651291618528',) no score found for photo 1350118259 We are sending mail with results at report@fotonower.com args[1350118126] : ('0.04102651291618528',) no score found for photo 1350118126 We are sending mail with results at report@fotonower.com args[1350118123] : ('0.04102651291618528',) no score found for photo 1350118123 We are sending mail with results at report@fotonower.com args[1350118119] : ('0.04102651291618528',) no score found for photo 1350118119 We are sending mail with results at report@fotonower.com args[1350118117] : ('0.04102651291618528',) no score found for photo 1350118117 We are sending mail with results at report@fotonower.com args[1350118112] : ('0.04102651291618528',) no score found for photo 1350118112 We are sending mail with results at report@fotonower.com args[1350118106] : ('0.04102651291618528',) no score found for photo 1350118106 We are sending mail with results at report@fotonower.com args[1350117898] : ('0.04102651291618528',) no score found for photo 1350117898 We are sending mail with results at report@fotonower.com args[1350117884] : ('0.04102651291618528',) no score found for photo 1350117884 We are sending mail with results at report@fotonower.com args[1350117858] : ('0.04102651291618528',) no score found for photo 1350117858 We are sending mail with results at report@fotonower.com args[1350117851] : ('0.04102651291618528',) no score found for photo 1350117851 We are sending mail with results at report@fotonower.com args[1350117847] : ('0.04102651291618528',) no score found for photo 1350117847 We are sending mail with results at report@fotonower.com refus_total : 0.04102651291618528 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=22080485 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_P22080485_04-04-2025_15_54_31.pdf results_Auto_P22080485_04-04-2025_15_54_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22080485_04-04-2025_15_54_31.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','22080485','results_Auto_P22080485_04-04-2025_15_54_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22080485_04-04-2025_15_54_31.pdf','pdf','','0.25','0.04102651291618528') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22080485]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847] map_info['map_portfolio_photo'] : {22080485: [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847, 1350117769, 1350117760, 1350117753, 1350117692, 1350117688, 1350117683, 1350117679, 1350117675, 1350117671, 1350117503, 1350117498, 1350117486, 1350117477, 1350117462, 1350117389, 1350117385, 1350117354, 1350117248, 1350117233, 1350117176, 1350117156, 1350117106, 1350117060, 1350116906, 1350116884, 1350116864]} final : False mtd_id 4302 list_pids : [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847] 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, '2727012') ('4302', '22080485', '1350118274', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118272', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118268', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118259', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118126', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118123', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118119', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118117', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118112', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118106', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117898', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117884', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117858', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117851', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117847', None, None, None, None, None, '2727012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22080485', '1350118274', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118272', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118268', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118259', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118126', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118123', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118119', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118117', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118112', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118106', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117898', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117884', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117858', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117851', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117847', None, None, None, None, None, '2727012')] time used for this insertion : 0.014922857284545898 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.445369243621826 time spend to save output : 0.015212535858154297 total time spend for step 4 : 4.4605817794799805 step5:split_time_score Fri Apr 4 15:54:35 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 : ['22080485'] 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 : [('22080485',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22080485) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350118268: {'path': 'temp/1743774871_1117765_1350118268_4bf1ff0ab82edefe826deaea28c7688e.jpg', 'extension': 'jpg'}, 1350118272: {'path': 'temp/1743774871_1117765_1350118272_244c973d6828178c34548fa47e2429e9.jpg', 'extension': 'jpg'}, 1350118274: {'path': 'temp/1743774871_1117765_1350118274_96a5161a39899a90ac38623e17129f3d.jpg', 'extension': 'jpg'}, 1350118119: {'path': 'temp/1743774871_1117765_1350118119_a3ceefca8df0c5b5a495e9611e1c6037.jpg', 'extension': 'jpg'}, 1350118123: {'path': 'temp/1743774871_1117765_1350118123_37f55afbc90b630c694803dbccc62aec.jpg', 'extension': 'jpg'}, 1350118126: {'path': 'temp/1743774871_1117765_1350118126_a6331fad756dec8c9c69d0abbb29de3d.jpg', 'extension': 'jpg'}, 1350118259: {'path': 'temp/1743774871_1117765_1350118259_0b7409d983e88549d73dd2d5d92266c8.jpg', 'extension': 'jpg'}, 1350117847: {'path': 'temp/1743774871_1117765_1350117847_0098997e985d45691afab2303a7bb52a.jpg', 'extension': 'jpg'}, 1350117851: {'path': 'temp/1743774871_1117765_1350117851_0eec3dc29a44a814a505c21201601e24.jpg', 'extension': 'jpg'}, 1350117858: {'path': 'temp/1743774871_1117765_1350117858_439b4c9bc169d236c0807faa558031aa.jpg', 'extension': 'jpg'}, 1350117884: {'path': 'temp/1743774871_1117765_1350117884_a6d11945e78cc3fff0341c3696468ead.jpg', 'extension': 'jpg'}, 1350117898: {'path': 'temp/1743774871_1117765_1350117898_361c14f25bfd5ffaf19f2834094ce8fb.jpg', 'extension': 'jpg'}, 1350118106: {'path': 'temp/1743774871_1117765_1350118106_d184e523a3c9958af436ad9c376ea10c.jpg', 'extension': 'jpg'}, 1350118112: {'path': 'temp/1743774871_1117765_1350118112_19d25fe2f3df7410011d4a9270584680.jpg', 'extension': 'jpg'}, 1350118117: {'path': 'temp/1743774871_1117765_1350118117_ce60a78d586be909a49786209faa5a0e.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 = 22080485; (('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 = 22080485 group by h (('15', 41),) 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=22080485 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 (22080485) 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 (22080485) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04042025 22080485 Nombre de photos uploadées : 41 / 23040 (0%) 04042025 22080485 Nombre de photos taguées (types de déchets): 0 / 41 (0%) 04042025 22080485 Nombre de photos taguées (volume) : 0 / 41 (0%) [{'photo_id': 1350116906, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0b9cbd9ae6744c7ab713c5b3cc6a0c21.jpg', 'username': None, 'uploaded_at': 1743774367, 'text': 'image_04042025_15_45_24_10130.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350116884, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/bf78db63c8aee7b7171ae0253c7f9092.jpg', 'username': None, 'uploaded_at': 1743774367, 'text': 'image_04042025_15_45_34_10132.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350116864, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/584d1592d32594b2dd98a6c5d87072d3.jpg', 'username': None, 'uploaded_at': 1743774367, 'text': 'image_04042025_15_45_44_10134.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1350117248, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/58b7da2b773926c66cae52d298476af5.jpg', 'username': None, 'uploaded_at': 1743774427, 'text': 'image_04042025_15_45_54_9135.jpg 4e-05 for time 1, id_amount 3 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 4.5299530029296875e-06 ????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015344619750976562 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22080485, '2025-04-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1715710,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02629828453063965 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= 1715710 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725949, 'mtr_portfolio_id': 22078313, 'dashboard_result_id': 9892783, '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_P22078313_04-04-2025_15_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078363, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725949, 'mtr_portfolio_id': 22079087, 'dashboard_result_id': 9892784, '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_P22079087_04-04-2025_15_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22079090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079101, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725949, 'mtr_portfolio_id': 22079538, 'dashboard_result_id': 9892785, '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_P22079538_04-04-2025_15_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079579, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725949, 'mtr_portfolio_id': 22080485, 'dashboard_result_id': 9892786, '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_P22080485_04-04-2025_15_52_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22080514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22080515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22080516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22080517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22080518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22080519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22080520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22080521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22080522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22080523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22080524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22080525, '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 = 22078313 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': 2726846, 'mtr_portfolio_id': 22078313, 'created_at': datetime.datetime(2025, 4, 4, 15, 18, 59), 'result': '0.05257600847855405', 'result_long': None, 'result_double': None}] Qualite : 0.05257600847855405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22078313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078313_04-04-2025_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22078313 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_P22078313_04-04-2025_15_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078363, 'pht': 3726}}" where mtr_portfolio_id = 22078313 and dashboard_run_id = 1725949 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`=22078313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9892783, 0.05257600847855405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078313_04-04-2025_15_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078363, '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 = 22079087 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': 2726892, 'mtr_portfolio_id': 22079087, 'created_at': datetime.datetime(2025, 4, 4, 15, 33, 29), 'result': '0.06713754908659744', 'result_long': None, 'result_double': None}] Qualite : 0.06713754908659744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22079087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079087_04-04-2025_15_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22079087 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_P22079087_04-04-2025_15_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22079090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079101, 'pht': 3726}}" where mtr_portfolio_id = 22079087 and dashboard_run_id = 1725949 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`=22079087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9892784, 0.06713754908659744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079087_04-04-2025_15_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22079090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079101, '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 = 22079538 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': 2726932, 'mtr_portfolio_id': 22079538, 'created_at': datetime.datetime(2025, 4, 4, 15, 46, 59), 'result': '0.03782991215638221', 'result_long': None, 'result_double': None}] Qualite : 0.03782991215638221 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22079538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079538_04-04-2025_15_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22079538 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_P22079538_04-04-2025_15_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079579, 'pht': 3726}}" where mtr_portfolio_id = 22079538 and dashboard_run_id = 1725949 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`=22079538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9892785, 0.03782991215638221, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079538_04-04-2025_15_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079579, '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 = 22080485 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': 2727012, 'mtr_portfolio_id': 22080485, 'created_at': datetime.datetime(2025, 4, 4, 15, 54, 31), 'result': '0.04102651291618528', 'result_long': None, 'result_double': None}] Qualite : 0.04102651291618528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22080485 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22080485_04-04-2025_15_54_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22080485 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_P22080485_04-04-2025_15_54_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22080514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22080515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22080516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22080517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22080518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22080519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22080520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22080521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22080522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22080523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22080524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22080525, 'pht': 3726}}" where mtr_portfolio_id = 22080485 and dashboard_run_id = 1725949 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`=22080485 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9892786, 0.04102651291618528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22080485_04-04-2025_15_54_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22080514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22080515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22080516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22080517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22080518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22080519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22080520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22080521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22080522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22080523, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22080524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22080525, '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 (22078313,22079087,22079538,22080485) result : ((1350107077,), (1350107153,), (1350107829,), (1350107910,), (1350107958,), (1350108007,), (1350108047,), (1350108314,), (1350108325,), (1350108335,), (1350108345,), (1350108816,), (1350108981,), (1350109061,), (1350109099,), (1350109146,), (1350109173,), (1350109478,), (1350109506,), (1350109514,), (1350109518,), (1350109537,), (1350109630,), (1350109638,), (1350109646,), (1350109651,), (1350109659,), (1350109712,), (1350109745,), (1350109768,), (1350109785,), (1350109823,), (1350109930,), (1350109937,), (1350109950,), (1350109969,), (1350110004,), (1350110016,), (1350110158,), (1350110192,), (1350110207,), (1350110211,), (1350110214,), (1350110219,), (1350110285,), (1350110290,), (1350110292,), (1350110302,), (1350110310,), (1350110484,), (1350110490,), (1350110579,), (1350110607,), (1350110626,), (1350110642,), (1350110741,), (1350110745,), (1350110752,), (1350110762,), (1350110766,), (1350110903,), (1350110931,), (1350110943,), (1350110957,), (1350111012,), (1350111020,), (1350111050,), (1350111054,), (1350111324,), (1350111257,), (1350111293,), (1350111317,), (1350111322,), (1350111391,), (1350111398,), (1350111404,), (1350111573,), (1350111580,), (1350111586,), (1350111608,), (1350111632,), (1350111705,), (1350111714,), (1350111791,), (1350111804,), (1350112040,), (1350112052,), (1350112055,), (1350112062,), (1350112069,), (1350112095,), (1350112100,), (1350112105,), (1350112111,), (1350112121,), (1350112187,), (1350112221,), (1350112250,), (1350112278,), (1350112308,), (1350112331,), (1350112722,), (1350112736,), (1350112746,), (1350112749,), (1350112771,), (1350112947,), (1350112975,), (1350112981,), (1350112995,), (1350113000,), (1350113032,), (1350113091,), (1350113096,), (1350113101,), (1350113115,), (1350113288,), (1350113294,), (1350113299,), (1350113303,), (1350113311,), (1350113316,), (1350113450,), (1350113457,), (1350113464,), (1350113469,), (1350113476,), (1350113572,), (1350113581,), (1350113599,), (1350113619,), (1350113623,), (1350113759,), (1350113793,), (1350113819,), (1350113924,), (1350113931,), (1350113966,), (1350113970,), (1350113984,), (1350113987,), (1350114189,), (1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,), (1350115665,), (1350115671,), (1350115677,), (1350115691,), (1350115697,), (1350115702,), (1350115770,), (1350115777,), (1350115787,), (1350115810,), (1350115840,), (1350115872,), (1350116193,), (1350116248,), (1350116289,), (1350116558,), (1350116562,), (1350116566,), (1350116571,), (1350116595,), (1350116676,), (1350116681,), (1350116685,), (1350116689,), (1350116708,), (1350116740,), (1350116929,), (1350116864,), (1350116884,), (1350116906,), (1350117060,), (1350117106,), (1350117156,), (1350117176,), (1350117233,), (1350117248,), (1350117354,), (1350117385,), (1350117389,), (1350117462,), (1350117477,), (1350117486,), (1350117498,), (1350117503,), (1350117671,), (1350117675,), (1350117679,), (1350117683,), (1350117688,), (1350117692,), (1350117753,), (1350117760,), (1350117769,), (1350117847,), (1350117851,), (1350117858,), (1350117884,), (1350117898,), (1350118106,), (1350118112,), (1350118117,), (1350118119,), (1350118123,), (1350118126,), (1350118259,), (1350118268,), (1350118272,), (1350118274,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04042025': {'nb_upload': 41, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22080485]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847] map_info['map_portfolio_photo'] : {22080485: [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847, 1350117769, 1350117760, 1350117753, 1350117692, 1350117688, 1350117683, 1350117679, 1350117675, 1350117671, 1350117503, 1350117498, 1350117486, 1350117477, 1350117462, 1350117389, 1350117385, 1350117354, 1350117248, 1350117233, 1350117176, 1350117156, 1350117106, 1350117060, 1350116906, 1350116884, 1350116864]} final : True mtd_id 4302 list_pids : [1350118274, 1350118272, 1350118268, 1350118259, 1350118126, 1350118123, 1350118119, 1350118117, 1350118112, 1350118106, 1350117898, 1350117884, 1350117858, 1350117851, 1350117847] Looping around the photos to save general results len do output : 1 /22080485Didn'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, '2727012') ('4302', '22080485', '1350118274', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118272', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118268', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118259', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118126', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118123', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118119', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118117', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118112', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350118106', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117898', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117884', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117858', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117851', None, None, None, None, None, '2727012') ('4302', None, None, None, None, None, None, None, '2727012') ('4302', '22080485', '1350117847', None, None, None, None, None, '2727012') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '22080485', 'None', None, None, None, None, '2727012'), ('4302', '22080485', '1350118274', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118272', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118268', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118259', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118126', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118123', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118119', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118117', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118112', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350118106', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117898', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117884', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117858', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117851', None, None, None, None, None, '2727012'), ('4302', '22080485', '1350117847', None, None, None, None, None, '2727012')] time used for this insertion : 0.017599105834960938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36341094970703125 time spend to save output : 0.017844200134277344 total time spend for step 5 : 0.3812551498413086 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 (2727012) 2.45user 2.36system 0:10.20elapsed 47%CPU (0avgtext+0avgdata 160864maxresident)k 216inputs+14888outputs (11major+75523minor)pagefaults 0swaps