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 : 3638274 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 (2657149) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2657149) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265070 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2657149'] with mtr_portfolio_ids : ['21265070'] and first list_photo_ids : [] new path : /proc/3638274/ Name: python3 Umask: 0002 State: R (running) Tgid: 3638274 Ngid: 0 Pid: 3638274 PPid: 3638272 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3638274 NSpid: 3638274 NSpgid: 3637305 NSsid: 3637305 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99232 kB VmRSS: 99232 kB RssAnon: 59756 kB RssFile: 39476 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 580 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: 46 nonvoluntary_ctxt_switches: 242 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3638274', 'Ngid': '0', 'Pid': '3638274', 'PPid': '3638272', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3638274', 'NSpid': '3638274', 'NSpgid': '3637305', 'NSsid': '3637305', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99232 kB', 'VmRSS': '99232 kB', 'RssAnon': '59756 kB', 'RssFile': '39476 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '580 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': '46', 'nonvoluntary_ctxt_switches': '242'} ('datou_batch_current', '3638274', '1106844', '0', '1106844', '865592', '99232', b'', 'marlene', '2657149') 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 (21265070) 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 (2657149 ) ) 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 (21265070) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342864849, 'portfolio_id': 21265070}, {'photo_id': 1342864846, 'portfolio_id': 21265070}, {'photo_id': 1342864835, 'portfolio_id': 21265070}, {'photo_id': 1342864829, 'portfolio_id': 21265070}, {'photo_id': 1342864822, 'portfolio_id': 21265070}, {'photo_id': 1342864817, 'portfolio_id': 21265070}, {'photo_id': 1342864769, 'portfolio_id': 21265070}, {'photo_id': 1342864765, 'portfolio_id': 21265070}, {'photo_id': 1342864736, 'portfolio_id': 21265070}, {'photo_id': 1342864705, 'portfolio_id': 21265070}, {'photo_id': 1342864584, 'portfolio_id': 21265070}, {'photo_id': 1342864577, 'portfolio_id': 21265070}, {'photo_id': 1342864563, 'portfolio_id': 21265070}, {'photo_id': 1342864521, 'portfolio_id': 21265070}, {'photo_id': 1342864256, 'portfolio_id': 21265070}, {'photo_id': 1342864231, 'portfolio_id': 21265070}, {'photo_id': 1342864209, 'portfolio_id': 21265070}, {'photo_id': 1342864183, 'portfolio_id': 21265070}, {'photo_id': 1342864160, 'portfolio_id': 21265070}, {'photo_id': 1342864131, 'portfolio_id': 21265070}, {'photo_id': 1342863910, 'portfolio_id': 21265070}, {'photo_id': 1342863906, 'portfolio_id': 21265070}, {'photo_id': 1342863903, 'portfolio_id': 21265070}, {'photo_id': 1342863895, 'portfolio_id': 21265070}, {'photo_id': 1342863889, 'portfolio_id': 21265070}, {'photo_id': 1342863590, 'portfolio_id': 21265070}, {'photo_id': 1342863568, 'portfolio_id': 21265070}, {'photo_id': 1342863564, 'portfolio_id': 21265070}, {'photo_id': 1342863545, 'portfolio_id': 21265070}, {'photo_id': 1342863518, 'portfolio_id': 21265070}, {'photo_id': 1342863158, 'portfolio_id': 21265070}, {'photo_id': 1342863128, 'portfolio_id': 21265070}, {'photo_id': 1342863123, 'portfolio_id': 21265070}, {'photo_id': 1342862816, 'portfolio_id': 21265070}, {'photo_id': 1342862808, 'portfolio_id': 21265070}, {'photo_id': 1342862797, 'portfolio_id': 21265070}, {'photo_id': 1342862780, 'portfolio_id': 21265070}, {'photo_id': 1342862776, 'portfolio_id': 21265070}, {'photo_id': 1342862655, 'portfolio_id': 21265070}, {'photo_id': 1342862636, 'portfolio_id': 21265070}, {'photo_id': 1342862631, 'portfolio_id': 21265070}, {'photo_id': 1342862582, 'portfolio_id': 21265070}, {'photo_id': 1342862548, 'portfolio_id': 21265070}, {'photo_id': 1342862529, 'portfolio_id': 21265070}, {'photo_id': 1342862459, 'portfolio_id': 21265070}, {'photo_id': 1342862450, 'portfolio_id': 21265070}, {'photo_id': 1342862445, 'portfolio_id': 21265070}] map_portfolio_id_photo_id: {21265070: [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521, 1342864256, 1342864231, 1342864209, 1342864183, 1342864160, 1342864131, 1342863910, 1342863906, 1342863903, 1342863895, 1342863889, 1342863590, 1342863568, 1342863564, 1342863545, 1342863518, 1342863158, 1342863128, 1342863123, 1342862816, 1342862808, 1342862797, 1342862780, 1342862776, 1342862655, 1342862636, 1342862631, 1342862582, 1342862548, 1342862529, 1342862459, 1342862450, 1342862445]} ##### 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.015738487243652344 #### 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 Tue Mar 11 07:56:30 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 (21265070) 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 : 21265070 get user id for portfolio 21265070 get sub ptf for main ptf 21265070, type 3726 and hashtags ['autre_refus', 'Teint_Dans_La_Masse', 'environnement', 'metal', 'Carton_gris', 'papier', 'flou', 'kraft', 'plastique', 'Carton_brun', 'mal_croppe', 'cartonnette'] 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`=21265070 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','environnement','metal','Carton_gris','papier','flou','kraft','plastique','Carton_brun','mal_croppe','cartonnette')) 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`=21265070 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','environnement','metal','Carton_gris','papier','flou','kraft','plastique','Carton_brun','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21265070, 'sub_port_id': 21265131, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852477, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}, 'flou': {'main_port_id': 21265070, 'sub_port_id': 21265132, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852478, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}, 'Carton_gris': {'main_port_id': 21265070, 'sub_port_id': 21265133, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852479, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}, 'environnement': {'main_port_id': 21265070, 'sub_port_id': 21265134, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852480, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}, 'papier': {'main_port_id': 21265070, 'sub_port_id': 21265135, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852481, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}, 'metal': {'main_port_id': 21265070, 'sub_port_id': 21265136, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852482, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}, 'Carton_brun': {'main_port_id': 21265070, 'sub_port_id': 21265137, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852483, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 21265070, 'sub_port_id': 21265138, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852484, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}, 'mal_croppe': {'main_port_id': 21265070, 'sub_port_id': 21265139, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852485, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}, 'autre_refus': {'main_port_id': 21265070, 'sub_port_id': 21265140, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852486, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}, 'plastique': {'main_port_id': 21265070, 'sub_port_id': 21265141, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852487, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}, 'cartonnette': {'main_port_id': 21265070, 'sub_port_id': 21265142, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852488, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 53, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21265131 , 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=21265070 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 (21265131) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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 21265132 , 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=21265070 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 (21265132) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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 21265133 , 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=21265070 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 (21265133) result : ((1342862809,), (1342863666,), (1342863801,), (1342864293,), (1342864296,), (1342864791,), (1342864792,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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 21265134 , 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=21265070 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 (21265134) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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 21265135 , 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=21265070 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 (21265135) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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 21265136 , 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=21265070 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 (21265136) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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 21265137 , 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=21265070 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 (21265137) result : ((1342863703,), (1342863704,), (1342863705,), (1342863818,), (1342864306,), (1342864787,), (1342864788,), (1342864789,), (1342864790,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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 21265138 , 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=21265070 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 (21265138) result : ((1342862803,), (1342864270,), (1342864774,), (1342864781,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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 21265139 , 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=21265070 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 (21265139) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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 21265140 , 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=21265070 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 (21265140) result : ((1342862804,), (1342862805,), (1342863657,), (1342863658,), (1342863784,), (1342863787,), (1342863789,), (1342863791,), (1342863793,), (1342864277,), (1342864278,), (1342864281,), (1342864283,), (1342864286,), (1342864289,), (1342864776,), (1342864778,), (1342864779,), (1342864784,), (1342864785,), (1342864786,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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 21265141 , 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=21265070 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 (21265141) result : ((1342864795,), (1342864796,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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 21265142 , 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=21265070 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 (21265142) result : ((1342862810,), (1342863688,), (1342863812,), (1342864300,), (1342864782,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21265070) result : ((1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) 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`=21265070 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','environnement','metal','Carton_gris','papier','flou','kraft','plastique','Carton_brun','mal_croppe','cartonnette')) 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`=21265070 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','environnement','metal','Carton_gris','papier','flou','kraft','plastique','Carton_brun','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21265070, 'sub_port_id': 21265143, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852489, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}, 'flou': {'main_port_id': 21265070, 'sub_port_id': 21265144, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852490, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}, 'Carton_gris': {'main_port_id': 21265070, 'sub_port_id': 21265145, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852491, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}, 'environnement': {'main_port_id': 21265070, 'sub_port_id': 21265146, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852492, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}, 'papier': {'main_port_id': 21265070, 'sub_port_id': 21265147, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852493, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}, 'metal': {'main_port_id': 21265070, 'sub_port_id': 21265148, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852494, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}, 'Carton_brun': {'main_port_id': 21265070, 'sub_port_id': 21265149, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852495, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 21265070, 'sub_port_id': 21265150, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852496, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}, 'mal_croppe': {'main_port_id': 21265070, 'sub_port_id': 21265151, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852497, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}, 'autre_refus': {'main_port_id': 21265070, 'sub_port_id': 21265152, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852498, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}, 'plastique': {'main_port_id': 21265070, 'sub_port_id': 21265153, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852499, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}, 'cartonnette': {'main_port_id': 21265070, 'sub_port_id': 21265154, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13852500, 'last_updated_at': datetime.datetime(2025, 3, 11, 7, 54), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 7, 54), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 7, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265143,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265131 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265144,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265132 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265145,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265133 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265146,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265134 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265147,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265135 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265148,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265136 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265149,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265137 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265150,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265138 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265151,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265139 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21265154,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21265142 lien utilise dans velours : https://www.fotonower.com/velours/21265143,21265144,21265145,21265146,21265147,21265148,21265149,21265150,21265151,21265152,21265153,21265154?tags=kraft,flou,Carton_gris,environnement,papier,metal,Carton_brun,Teint_Dans_La_Masse,mal_croppe,autre_refus,plastique,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21265070]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521] map_info['map_portfolio_photo'] : {21265070: [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521, 1342864256, 1342864231, 1342864209, 1342864183, 1342864160, 1342864131, 1342863910, 1342863906, 1342863903, 1342863895, 1342863889, 1342863590, 1342863568, 1342863564, 1342863545, 1342863518, 1342863158, 1342863128, 1342863123, 1342862816, 1342862808, 1342862797, 1342862780, 1342862776, 1342862655, 1342862636, 1342862631, 1342862582, 1342862548, 1342862529, 1342862459, 1342862450, 1342862445]} final : False mtd_id 4302 list_pids : [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521] Looping around the photos to save general results len do output : 1 /21265070. 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, '2657149') ('4302', '21265070', '1342864849', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864846', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864835', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864829', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864822', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864817', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864769', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864765', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864736', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864705', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864584', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864577', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864563', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864521', None, None, None, None, None, '2657149') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21265070', "{'kraft': 21265131, 'flou': 21265132, 'Carton_gris': 21265133, 'environnement': 21265134, 'papier': 21265135, 'metal': 21265136, 'Carton_brun': 21265137, 'Teint_Dans_La_Masse': 21265138, 'mal_croppe': 21265139, 'autre_refus': 21265140, 'plastique': 21265141, 'cartonnette': 21265142}", None, None, None, None, '2657149'), ('4302', '21265070', '1342864849', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864846', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864835', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864829', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864822', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864817', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864769', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864765', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864736', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864705', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864584', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864577', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864563', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864521', None, None, None, None, None, '2657149')] time used for this insertion : 0.041632652282714844 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5688049793243408 time spend to save output : 0.042002201080322266 total time spend for step 1 : 1.610807180404663 step2:final Tue Mar 11 07:56: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 (21265070) 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 21265070 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342862459,1342862450,1342862445,1342862655,1342862636,1342862631,1342862582,1342862548,1342862529,1342862816,1342862808,1342862797,1342862780,1342862776,1342863158,1342863128,1342863123,1342863590,1342863568,1342863564,1342863545,1342863518,1342863910,1342863906,1342863903,1342863895,1342863889,1342864256,1342864231,1342864209,1342864183,1342864160,1342864131,1342864584,1342864577,1342864563,1342864521,1342864769,1342864765,1342864736,1342864705,1342864849,1342864846,1342864835,1342864829,1342864822,1342864817); 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([21265070]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} new output for save of step final : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521] map_info['map_portfolio_photo'] : {21265070: [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521, 1342864256, 1342864231, 1342864209, 1342864183, 1342864160, 1342864131, 1342863910, 1342863906, 1342863903, 1342863895, 1342863889, 1342863590, 1342863568, 1342863564, 1342863545, 1342863518, 1342863158, 1342863128, 1342863123, 1342862816, 1342862808, 1342862797, 1342862780, 1342862776, 1342862655, 1342862636, 1342862631, 1342862582, 1342862548, 1342862529, 1342862459, 1342862450, 1342862445]} final : False mtd_id 4302 list_pids : [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521] Looping around the photos to save general results len do output : 14 /1342864849.Didn't retrieve data . /1342864846.Didn't retrieve data . /1342864835.Didn't retrieve data . /1342864829.Didn't retrieve data . /1342864822.Didn't retrieve data . /1342864817.Didn't retrieve data . /1342864769.Didn't retrieve data . /1342864765.Didn't retrieve data . /1342864736.Didn't retrieve data . /1342864705.Didn't retrieve data . /1342864584.Didn't retrieve data . /1342864577.Didn't retrieve data . /1342864563.Didn't retrieve data . /1342864521.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, '2657149') ('4302', '21265070', '1342864849', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864846', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864835', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864829', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864822', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864817', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864769', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864765', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864736', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864705', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864584', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864577', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864563', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864521', None, None, None, None, None, '2657149') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21265070', '1342864849', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864846', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864835', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864829', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864822', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864817', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864769', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864765', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864736', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864705', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864584', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864577', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864563', '0.0564698437666826', None, None, None, None, '2657149'), ('4302', '21265070', '1342864521', '0.0564698437666826', None, None, None, None, '2657149')] time used for this insertion : 0.013530731201171875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06693553924560547 time spend to save output : 0.014069795608520508 total time spend for step 2 : 0.08100533485412598 step3:velours_tree Tue Mar 11 07:56: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 : {21265070: [{'kraft': 21265131, 'flou': 21265132, 'Carton_gris': 21265133, 'environnement': 21265134, 'papier': 21265135, 'metal': 21265136, 'Carton_brun': 21265137, 'Teint_Dans_La_Masse': 21265138, 'mal_croppe': 21265139, 'autre_refus': 21265140, 'plastique': 21265141, 'cartonnette': 21265142}]} input_args_next_step : {21265070: ()} output_args : {21265070: [{'kraft': 21265131, 'flou': 21265132, 'Carton_gris': 21265133, 'environnement': 21265134, 'papier': 21265135, 'metal': 21265136, 'Carton_brun': 21265137, 'Teint_Dans_La_Masse': 21265138, 'mal_croppe': 21265139, 'autre_refus': 21265140, 'plastique': 21265141, 'cartonnette': 21265142}]} args : 21265070 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 : ({'kraft': 21265131, 'flou': 21265132, 'Carton_gris': 21265133, 'environnement': 21265134, 'papier': 21265135, 'metal': 21265136, 'Carton_brun': 21265137, 'Teint_Dans_La_Masse': 21265138, 'mal_croppe': 21265139, 'autre_refus': 21265140, 'plastique': 21265141, 'cartonnette': 21265142},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21265070) 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([21265070]) 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.3970677852630615 time spend to save output : 5.5789947509765625e-05 total time spend for step 3 : 0.3971235752105713 step4:send_mail_cod Tue Mar 11 07:56:32 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 : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} input_args_next_step : {1342864849: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864849 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864846 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864835 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864829 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864822 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864817 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864769 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864765 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864736 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864705 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864584 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864577 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864563 depend.output_id : 0 input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ()} output_args : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',)} args : 1342864521 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 : {21265070: [{'kraft': 21265131, 'flou': 21265132, 'Carton_gris': 21265133, 'environnement': 21265134, 'papier': 21265135, 'metal': 21265136, 'Carton_brun': 21265137, 'Teint_Dans_La_Masse': 21265138, 'mal_croppe': 21265139, 'autre_refus': 21265140, 'plastique': 21265141, 'cartonnette': 21265142}]} input_args_next_step : {1342864849: ('0.0564698437666826',), 1342864846: ('0.0564698437666826',), 1342864835: ('0.0564698437666826',), 1342864829: ('0.0564698437666826',), 1342864822: ('0.0564698437666826',), 1342864817: ('0.0564698437666826',), 1342864769: ('0.0564698437666826',), 1342864765: ('0.0564698437666826',), 1342864736: ('0.0564698437666826',), 1342864705: ('0.0564698437666826',), 1342864584: ('0.0564698437666826',), 1342864577: ('0.0564698437666826',), 1342864563: ('0.0564698437666826',), 1342864521: ('0.0564698437666826',), 21265070: ()} output_args : {21265070: [{'kraft': 21265131, 'flou': 21265132, 'Carton_gris': 21265133, 'environnement': 21265134, 'papier': 21265135, 'metal': 21265136, 'Carton_brun': 21265137, 'Teint_Dans_La_Masse': 21265138, 'mal_croppe': 21265139, 'autre_refus': 21265140, 'plastique': 21265141, 'cartonnette': 21265142}]} args : 21265070 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.0564698437666826',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21265070) 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 (1342864849,1342864846,1342864835,1342864829,1342864822,1342864817,1342864769,1342864765,1342864736,1342864705,1342864584,1342864577,1342864563,1342864521) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342864521 begin to download photo : 1342864584 begin to download photo : 1342864765 begin to download photo : 1342864822 begin to download photo : 1342864846 download finish for photo 1342864765 begin to download photo : 1342864769 download finish for photo 1342864521 begin to download photo : 1342864563 download finish for photo 1342864584 begin to download photo : 1342864705 download finish for photo 1342864846 begin to download photo : 1342864849 download finish for photo 1342864822 begin to download photo : 1342864829 download finish for photo 1342864563 begin to download photo : 1342864577 download finish for photo 1342864769 begin to download photo : 1342864817 download finish for photo 1342864705 begin to download photo : 1342864736 download finish for photo 1342864849 download finish for photo 1342864829 begin to download photo : 1342864835 download finish for photo 1342864577 download finish for photo 1342864817 download finish for photo 1342864835 download finish for photo 1342864736 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette212651311741676192/ imagette212651321741676192/ imagette212651361741676192/ imagette212651391741676192/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P21265070_11-03-2025_07_56_32.pdf 21265131 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=21265131 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212651311741676192 21265132 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=21265132 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212651321741676192 21265136 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=21265136 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212651361741676192 21265139 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=21265139 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212651391741676192 21265140 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=21265140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342864278: '1741675947_1200328_1342863564_1ddc2f1cec0ae3c66c1bd67d13644a8a_rle_crop_3704497820_0.png', 1342864786: '1741676054_694050_1342863889_ee76aaa6808c5955c552c860798174ee_rle_crop_3704498984_0.png', 1342864785: '1741676054_694050_1342864256_0a3bc7462d9e274b2bf45e871a4dbaa6_rle_crop_3704498859_0.png', 1342864784: '1741676054_694050_1342864256_0a3bc7462d9e274b2bf45e871a4dbaa6_rle_crop_3704498865_0.png', 1342864779: '1741676066_1202964_1342864131_a3ac0eab76fd217cc7aa5c257d8dcc84_rle_crop_3704498962_0.png', 1342864778: '1741676066_1202964_1342864231_3cf49c503d339589e0cc96b4cd467e64_rle_crop_3704498840_0.png', 1342864776: '1741676066_1202964_1342864231_3cf49c503d339589e0cc96b4cd467e64_rle_crop_3704498832_0.png', 1342864289: '1741675952_693480_1342863590_c82a1fc2d20f5a56078ea3c5219807e5_rle_crop_3704498108_0.png', 1342864286: '1741675947_1200328_1342863545_05bf90ac44c4f5c487e18111c8fe7b6b_rle_crop_3704497855_0.png', 1342864283: '1741675947_1200328_1342863545_05bf90ac44c4f5c487e18111c8fe7b6b_rle_crop_3704497848_0.png', 1342864281: '1741675947_1200328_1342863545_05bf90ac44c4f5c487e18111c8fe7b6b_rle_crop_3704497850_0.png', 1342862804: '1741675693_691015_1342862459_7717fe61c8e96950b882a0c864815d9f_rle_crop_3704494067_0.png', 1342864277: '1741675947_1200328_1342863568_2abe6007827dd6d61053fd180565b340_rle_crop_3704497688_0.png', 1342863793: '1741675828_1197362_1342862529_0243ff2d15905d11ac8ee54acc7d15fd_rle_crop_3704495595_0.png', 1342863791: '1741675828_1197362_1342862582_846b9517e1567776ec87ab1f514eeb56_rle_crop_3704495573_0.png', 1342863789: '1741675828_1197362_1342862631_7c68c729fbf62c48d608b40b34e20fd9_rle_crop_3704495562_0.png', 1342863787: '1741675828_1197362_1342862631_7c68c729fbf62c48d608b40b34e20fd9_rle_crop_3704495560_0.png', 1342863784: '1741675828_1197362_1342862636_26ef21a911b4b198114ddd7e88828e51_rle_crop_3704495555_0.png', 1342863658: '1741675811_692171_1342862776_06810fcf6fdc05b0b53fc72d52ace2cc_rle_crop_3704494897_0.png', 1342863657: '1741675811_692171_1342862780_67c5f27e5087898beebd7317ae684e57_rle_crop_3704494880_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2eee5e2ec7fb38c354d6ef3c0ebbd5c2_48570605.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5ba59924470ed0b31d5815716beacffc_35807113.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/30aca35c73263f42ba957270c476d3f8_24225096.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d1777b06ebdeaadcee332864f6b4e6d4_157230.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7a6777b1e2e81822282c70b519033b88_84649502.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b67c1db40f3b0672051c389e22024584_90379189.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7a4453c3d3ec91c94effd6b231da3167_24400482.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1e654a1147d697c0db8d3526aa00b9f3_42738430.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/56a8813ddab0fa4fdbbc9e67a935df8d_69689850.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c655fb7ff3f3f3abe0861e163199b28a_26914442.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0551b0e7b80db3e7d1f81cee4cf1e6e6_11345422.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/cb254fcff7f214e9a67f1f72a166b55e_2950234.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/37edd2183441928d319f53ccf9e65ffb_90961840.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3826a394159ce32631d9e6b8c9bd8a6c_80680722.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0bc0b464a1320ee823e8fe63a613cff3_8319293.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/00c240f0882c1c0e1ee0a789ba1a39ea_19741277.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bf04f073eeb4561d255645f7b465f4b1_45747319.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/10f33c05c3df9faf1b63646309b82a39_93989784.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6a583c73bfa2e13fdc2526ad32bdbfc2_72408321.png change filename to text .imagette212651401741676192/ imagette212651401741676192/1741675828_1197362_1342862631_7c68c729fbf62c48d608b40b34e20fd9_rle_crop_3704495560_0.png.png imagette212651401741676192/1741675947_1200328_1342863545_05bf90ac44c4f5c487e18111c8fe7b6b_rle_crop_3704497850_0.png.png imagette212651401741676192/1741675947_1200328_1342863564_1ddc2f1cec0ae3c66c1bd67d13644a8a_rle_crop_3704497820_0.png.png imagette212651401741676192/1741676054_694050_1342864256_0a3bc7462d9e274b2bf45e871a4dbaa6_rle_crop_3704498865_0.png.png imagette212651401741676192/1741676054_694050_1342864256_0a3bc7462d9e274b2bf45e871a4dbaa6_rle_crop_3704498859_0.png.png imagette212651401741676192/1741676066_1202964_1342864131_a3ac0eab76fd217cc7aa5c257d8dcc84_rle_crop_3704498962_0.png.png imagette212651401741676192/1741675947_1200328_1342863545_05bf90ac44c4f5c487e18111c8fe7b6b_rle_crop_3704497848_0.png.png imagette212651401741676192/1741676066_1202964_1342864231_3cf49c503d339589e0cc96b4cd467e64_rle_crop_3704498840_0.png.png imagette212651401741676192/1741675811_692171_1342862780_67c5f27e5087898beebd7317ae684e57_rle_crop_3704494880_0.png.png imagette212651401741676192/1741675828_1197362_1342862636_26ef21a911b4b198114ddd7e88828e51_rle_crop_3704495555_0.png.png imagette212651401741676192/1741676066_1202964_1342864231_3cf49c503d339589e0cc96b4cd467e64_rle_crop_3704498832_0.png.png imagette212651401741676192/1741675811_692171_1342862776_06810fcf6fdc05b0b53fc72d52ace2cc_rle_crop_3704494897_0.png.png imagette212651401741676192/1741675828_1197362_1342862631_7c68c729fbf62c48d608b40b34e20fd9_rle_crop_3704495562_0.png.png imagette212651401741676192/1741675828_1197362_1342862529_0243ff2d15905d11ac8ee54acc7d15fd_rle_crop_3704495595_0.png.png imagette212651401741676192/1741675693_691015_1342862459_7717fe61c8e96950b882a0c864815d9f_rle_crop_3704494067_0.png.png imagette212651401741676192/1741675952_693480_1342863590_c82a1fc2d20f5a56078ea3c5219807e5_rle_crop_3704498108_0.png.png imagette212651401741676192/1741675947_1200328_1342863545_05bf90ac44c4f5c487e18111c8fe7b6b_rle_crop_3704497855_0.png.png imagette212651401741676192/1741675947_1200328_1342863568_2abe6007827dd6d61053fd180565b340_rle_crop_3704497688_0.png.png imagette212651401741676192/1741676054_694050_1342863889_ee76aaa6808c5955c552c860798174ee_rle_crop_3704498984_0.png.png imagette212651401741676192/1741675828_1197362_1342862582_846b9517e1567776ec87ab1f514eeb56_rle_crop_3704495573_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/be63d48a61fe3f8d2cbc288102932f69_40872378.png imagette212651401741676192 21265141 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=21265141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342864795: '1741676054_694050_1342863903_3579a7ba554306629fce18a2ba0c3593_rle_crop_3704498947_0.png', 1342864796: '1741676054_694050_1342863895_8aa7c92753f6f87c0a69c3660e561e7f_rle_crop_3704498971_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/dcca289e5d88c6d53ec051d0231895bc_59225488.png change filename to text .imagette212651411741676193/ imagette212651411741676193/1741676054_694050_1342863895_8aa7c92753f6f87c0a69c3660e561e7f_rle_crop_3704498971_0.png.png imagette212651411741676193/1741676054_694050_1342863903_3579a7ba554306629fce18a2ba0c3593_rle_crop_3704498947_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1fd2a3663e581faa1116d87c8bb0c406_63397122.png imagette212651411741676193 21265142 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=21265142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342862810: '1741675693_691015_1342862459_7717fe61c8e96950b882a0c864815d9f_rle_crop_3704494065_0.png', 1342863688: '1741675811_692171_1342862797_a51291b265db78d80c9e7180cd79aac8_rle_crop_3704494840_0.png', 1342863812: '1741675828_1197362_1342862582_846b9517e1567776ec87ab1f514eeb56_rle_crop_3704495570_0.png', 1342864300: '1741675947_1200328_1342863564_1ddc2f1cec0ae3c66c1bd67d13644a8a_rle_crop_3704497817_0.png', 1342864782: '1741676066_1202964_1342864231_3cf49c503d339589e0cc96b4cd467e64_rle_crop_3704498831_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e1463fddfd3c20bae3a9ff987ea2145e_45913029.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4d5b9f1f925dff6d2a1c0fd8d3d0c8b4_68687639.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/394cbd830170fb80a66bf964c001a214_36839988.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bfae9bffb45e29d7201f296f53ce06e8_28391101.png change filename to text .imagette212651421741676193/ imagette212651421741676193/1741675693_691015_1342862459_7717fe61c8e96950b882a0c864815d9f_rle_crop_3704494065_0.png.png imagette212651421741676193/1741675947_1200328_1342863564_1ddc2f1cec0ae3c66c1bd67d13644a8a_rle_crop_3704497817_0.png.png imagette212651421741676193/1741676066_1202964_1342864231_3cf49c503d339589e0cc96b4cd467e64_rle_crop_3704498831_0.png.png imagette212651421741676193/1741675828_1197362_1342862582_846b9517e1567776ec87ab1f514eeb56_rle_crop_3704495570_0.png.png imagette212651421741676193/1741675811_692171_1342862797_a51291b265db78d80c9e7180cd79aac8_rle_crop_3704494840_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9e23b1b0f21285cfc3da729c9f70f32b_48295174.png imagette212651421741676193 21265133 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=21265133 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342862809: '1741675693_691015_1342862459_7717fe61c8e96950b882a0c864815d9f_rle_crop_3704494056_0.png', 1342863666: '1741675811_692171_1342862776_06810fcf6fdc05b0b53fc72d52ace2cc_rle_crop_3704494891_0.png', 1342863801: '1741675828_1197362_1342862548_6bc1dc2cee6fba727958fd6e83b776c6_rle_crop_3704495578_0.png', 1342864293: '1741675947_1200328_1342863564_1ddc2f1cec0ae3c66c1bd67d13644a8a_rle_crop_3704497811_0.png', 1342864296: '1741675952_693480_1342863128_379e7fe6de211d49c9c83b3327f3bbe6_rle_crop_3704498116_0.png', 1342864791: '1741676054_694050_1342864256_0a3bc7462d9e274b2bf45e871a4dbaa6_rle_crop_3704498861_0.png', 1342864792: '1741676054_694050_1342863906_171a94a5be261f7c028fd01ffabc86b1_rle_crop_3704498894_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1891d153ecf5399a6320dd036af622df_84652489.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ce392fd944382b97caabc26140b2cfa6_64417694.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/35a9f0f165bec3b6a213e0210ad44732_19331987.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e03a70e7038a7295fceda471d533d419_26919026.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c39a4371e6a10e4d51d18f9867383097_28726899.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e1f505586b59bf9b85b33344d451c0cd_5037861.png change filename to text .imagette212651331741676194/ imagette212651331741676194/1741675693_691015_1342862459_7717fe61c8e96950b882a0c864815d9f_rle_crop_3704494056_0.png.png imagette212651331741676194/1741676054_694050_1342864256_0a3bc7462d9e274b2bf45e871a4dbaa6_rle_crop_3704498861_0.png.png imagette212651331741676194/1741675828_1197362_1342862548_6bc1dc2cee6fba727958fd6e83b776c6_rle_crop_3704495578_0.png.png imagette212651331741676194/1741675947_1200328_1342863564_1ddc2f1cec0ae3c66c1bd67d13644a8a_rle_crop_3704497811_0.png.png imagette212651331741676194/1741675952_693480_1342863128_379e7fe6de211d49c9c83b3327f3bbe6_rle_crop_3704498116_0.png.png imagette212651331741676194/1741675811_692171_1342862776_06810fcf6fdc05b0b53fc72d52ace2cc_rle_crop_3704494891_0.png.png imagette212651331741676194/1741676054_694050_1342863906_171a94a5be261f7c028fd01ffabc86b1_rle_crop_3704498894_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c82bbc4bdaa27ad5221bc01fc3337097_74369871.png imagette212651331741676194 21265137 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=21265137 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342863703: '1741675811_692171_1342862808_e21913eef7738dd8ef6a6d9f910ed4fb_rle_crop_3704494813_0.png', 1342863704: '1741675811_692171_1342862797_a51291b265db78d80c9e7180cd79aac8_rle_crop_3704494845_0.png', 1342863705: '1741675811_692171_1342862776_06810fcf6fdc05b0b53fc72d52ace2cc_rle_crop_3704494895_0.png', 1342863818: '1741675828_1197362_1342862529_0243ff2d15905d11ac8ee54acc7d15fd_rle_crop_3704495592_0.png', 1342864306: '1741675947_1200328_1342863518_b5403ece124a64b9a89888a944cd70e7_rle_crop_3704498094_0.png', 1342864787: '1741676066_1202964_1342864209_52a3e4d07b3a5176290a862149c79886_rle_crop_3704498852_0.png', 1342864788: '1741676066_1202964_1342864209_52a3e4d07b3a5176290a862149c79886_rle_crop_3704498854_0.png', 1342864789: '1741676066_1202964_1342864183_c06a9d85c041133914ef0a5e19532c7a_rle_crop_3704498881_0.png', 1342864790: '1741676066_1202964_1342864160_5f2244fb42e2a95324674754248618a8_rle_crop_3704498940_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/92978782dad22ee8882e2d7893eac129_93070393.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ea4896265d8dc089b9912cc07ea517ff_21619349.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a6bf1e0f2c07c0a414fbb542f2ffcc68_26746657.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/272dd7586c1c3ac614a0054e241af986_14177889.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9903163a240ce76111803196884bcb02_92542723.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/80ffeceb2165ecf5af839bc1b55f7498_50840729.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4d02dcfce8d61fa4caa4d21b2fa29b42_26322431.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d30e432d40d3ebc239f18f0f4a6a8566_88043556.png change filename to text .imagette212651371741676194/ imagette212651371741676194/1741676066_1202964_1342864183_c06a9d85c041133914ef0a5e19532c7a_rle_crop_3704498881_0.png.png imagette212651371741676194/1741676066_1202964_1342864160_5f2244fb42e2a95324674754248618a8_rle_crop_3704498940_0.png.png imagette212651371741676194/1741676066_1202964_1342864209_52a3e4d07b3a5176290a862149c79886_rle_crop_3704498852_0.png.png imagette212651371741676194/1741675811_692171_1342862808_e21913eef7738dd8ef6a6d9f910ed4fb_rle_crop_3704494813_0.png.png imagette212651371741676194/1741675828_1197362_1342862529_0243ff2d15905d11ac8ee54acc7d15fd_rle_crop_3704495592_0.png.png imagette212651371741676194/1741675947_1200328_1342863518_b5403ece124a64b9a89888a944cd70e7_rle_crop_3704498094_0.png.png imagette212651371741676194/1741676066_1202964_1342864209_52a3e4d07b3a5176290a862149c79886_rle_crop_3704498854_0.png.png imagette212651371741676194/1741675811_692171_1342862797_a51291b265db78d80c9e7180cd79aac8_rle_crop_3704494845_0.png.png imagette212651371741676194/1741675811_692171_1342862776_06810fcf6fdc05b0b53fc72d52ace2cc_rle_crop_3704494895_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/663b60ce2b4af9e149fc63a73431dbd3_72781597.png imagette212651371741676194 21265138 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=21265138 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342862803: '1741675693_691015_1342862450_6201d32d90daffe842af452c31727324_rle_crop_3704494072_0.png', 1342864270: '1741675947_1200328_1342863545_05bf90ac44c4f5c487e18111c8fe7b6b_rle_crop_3704497853_0.png', 1342864774: '1741676066_1202964_1342864231_3cf49c503d339589e0cc96b4cd467e64_rle_crop_3704498837_0.png', 1342864781: '1741676054_694050_1342863889_ee76aaa6808c5955c552c860798174ee_rle_crop_3704498987_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f668dacbc75df8dd18c7c5002f7b37df_4639401.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7c88e55c6651347ee4f93d57c7fc657b_13794866.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/005da871b97616b6598b537461898607_64294959.png change filename to text .imagette212651381741676194/ imagette212651381741676194/1741676066_1202964_1342864231_3cf49c503d339589e0cc96b4cd467e64_rle_crop_3704498837_0.png.png imagette212651381741676194/1741676054_694050_1342863889_ee76aaa6808c5955c552c860798174ee_rle_crop_3704498987_0.png.png imagette212651381741676194/1741675947_1200328_1342863545_05bf90ac44c4f5c487e18111c8fe7b6b_rle_crop_3704497853_0.png.png imagette212651381741676194/1741675693_691015_1342862450_6201d32d90daffe842af452c31727324_rle_crop_3704494072_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/51dfce6a6f201f8216e6341fc74eb4a9_83170055.png imagette212651381741676194 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21265070 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21265143,21265144,21265145,21265146,21265147,21265148,21265149,21265150,21265151,21265152,21265153,21265154?tags=kraft,flou,Carton_gris,environnement,papier,metal,Carton_brun,Teint_Dans_La_Masse,mal_croppe,autre_refus,plastique,cartonnette your option no_mail is active, we will not send the real mail to your client args[1342864849] : ('0.0564698437666826',) no score found for photo 1342864849 We are sending mail with results at report@fotonower.com args[1342864846] : ('0.0564698437666826',) no score found for photo 1342864846 We are sending mail with results at report@fotonower.com args[1342864835] : ('0.0564698437666826',) no score found for photo 1342864835 We are sending mail with results at report@fotonower.com args[1342864829] : ('0.0564698437666826',) no score found for photo 1342864829 We are sending mail with results at report@fotonower.com args[1342864822] : ('0.0564698437666826',) no score found for photo 1342864822 We are sending mail with results at report@fotonower.com args[1342864817] : ('0.0564698437666826',) no score found for photo 1342864817 We are sending mail with results at report@fotonower.com args[1342864769] : ('0.0564698437666826',) no score found for photo 1342864769 We are sending mail with results at report@fotonower.com args[1342864765] : ('0.0564698437666826',) no score found for photo 1342864765 We are sending mail with results at report@fotonower.com args[1342864736] : ('0.0564698437666826',) no score found for photo 1342864736 We are sending mail with results at report@fotonower.com args[1342864705] : ('0.0564698437666826',) no score found for photo 1342864705 We are sending mail with results at report@fotonower.com args[1342864584] : ('0.0564698437666826',) no score found for photo 1342864584 We are sending mail with results at report@fotonower.com args[1342864577] : ('0.0564698437666826',) no score found for photo 1342864577 We are sending mail with results at report@fotonower.com args[1342864563] : ('0.0564698437666826',) no score found for photo 1342864563 We are sending mail with results at report@fotonower.com args[1342864521] : ('0.0564698437666826',) no score found for photo 1342864521 We are sending mail with results at report@fotonower.com refus_total : 0.0564698437666826 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=21265070 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_P21265070_11-03-2025_07_56_32.pdf results_Auto_P21265070_11-03-2025_07_56_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21265070_11-03-2025_07_56_32.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21265070','results_Auto_P21265070_11-03-2025_07_56_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21265070_11-03-2025_07_56_32.pdf','pdf','','0.27','0.0564698437666826') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21265070]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521] map_info['map_portfolio_photo'] : {21265070: [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521, 1342864256, 1342864231, 1342864209, 1342864183, 1342864160, 1342864131, 1342863910, 1342863906, 1342863903, 1342863895, 1342863889, 1342863590, 1342863568, 1342863564, 1342863545, 1342863518, 1342863158, 1342863128, 1342863123, 1342862816, 1342862808, 1342862797, 1342862780, 1342862776, 1342862655, 1342862636, 1342862631, 1342862582, 1342862548, 1342862529, 1342862459, 1342862450, 1342862445]} final : False mtd_id 4302 list_pids : [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521] 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, '2657149') ('4302', '21265070', '1342864849', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864846', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864835', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864829', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864822', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864817', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864769', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864765', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864736', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864705', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864584', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864577', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864563', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864521', None, None, None, None, None, '2657149') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21265070', '1342864849', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864846', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864835', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864829', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864822', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864817', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864769', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864765', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864736', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864705', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864584', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864577', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864563', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864521', None, None, None, None, None, '2657149')] time used for this insertion : 0.013952255249023438 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.063000679016113 time spend to save output : 0.014336109161376953 total time spend for step 4 : 4.07733678817749 step5:split_time_score Tue Mar 11 07:56:36 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 : ['21265070'] 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 : [('21265070',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21265070) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342864846: {'path': 'temp/1741676192_3638274_1342864846_c589335dd3e5fa7f1441c13376a3e0a7.jpg', 'extension': 'jpg'}, 1342864849: {'path': 'temp/1741676192_3638274_1342864849_a1af8ec93357132f668c54b1bea42d6b.jpg', 'extension': 'jpg'}, 1342864521: {'path': 'temp/1741676192_3638274_1342864521_439a4fc0076cc0601b97c64ffe04f79d.jpg', 'extension': 'jpg'}, 1342864563: {'path': 'temp/1741676192_3638274_1342864563_ba6220096351758808644eb7ae379dd6.jpg', 'extension': 'jpg'}, 1342864577: {'path': 'temp/1741676192_3638274_1342864577_d7c1e9da50a163c0ced91f31479672fb.jpg', 'extension': 'jpg'}, 1342864765: {'path': 'temp/1741676192_3638274_1342864765_03824c0821a2e3ccd8a742d5b7fdf1bb.jpg', 'extension': 'jpg'}, 1342864769: {'path': 'temp/1741676192_3638274_1342864769_55a9626fa4f40067e9c15db55342e3ab.jpg', 'extension': 'jpg'}, 1342864817: {'path': 'temp/1741676192_3638274_1342864817_c7d7aa656919e39436f8cb1c4175e243.jpg', 'extension': 'jpg'}, 1342864822: {'path': 'temp/1741676192_3638274_1342864822_f18fd8da92affc5c357873395c3e736e.jpg', 'extension': 'jpg'}, 1342864829: {'path': 'temp/1741676192_3638274_1342864829_3dd0e3baf4f225ea7b190bc8eabb9473.jpg', 'extension': 'jpg'}, 1342864835: {'path': 'temp/1741676192_3638274_1342864835_44f12e634c4ae1b7be173afbb81dde88.jpg', 'extension': 'jpg'}, 1342864584: {'path': 'temp/1741676192_3638274_1342864584_254b17db753be364e84ed265ca4b2507.jpg', 'extension': 'jpg'}, 1342864705: {'path': 'temp/1741676192_3638274_1342864705_052fc11c5b76ca17b6623f795f90dad1.jpg', 'extension': 'jpg'}, 1342864736: {'path': 'temp/1741676192_3638274_1342864736_3617d7f9a14a2079160a85e139f65ac1.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 = 21265070; (('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 = 21265070 group by h (('07', 47),) 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=21265070 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 (21265070) 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 (21265070) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21265070 Nombre de photos uploadées : 47 / 23040 (0%) 11032025 21265070 Nombre de photos taguées (types de déchets): 0 / 47 (0%) 11032025 21265070 Nombre de photos taguées (volume) : 0 / 47 (0%) [{'photo_id': 1342862459, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7717fe61c8e96950b882a0c864815d9f.jpg', 'username': None, 'uploaded_at': 1741675598, 'text': 'image_11032025_07_45_03_009147m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342862450, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6201d32d90daffe842af452c31727324.jpg', 'username': None, 'uploaded_at': 1741675598, 'text': 'image_11032025_07_45_14_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342862445, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/33c0184e19c45f32b1b600b498bbe0ca.jpg', 'username': None, 'uploaded_at': 1741675598, 'text': 'image_11032025_07_45_24_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342862655, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/83bd8fbc3ff9f1b5d705d1b98a0e4ac2.jpg', 'username': None, 'uploaded_at': 1741675658, 'text': 'image_11032025_07_45_54_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 9.5367431640625e-06 ??????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002226591110229492 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21265070, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02518463134765625 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665312, 'mtr_portfolio_id': 21263155, 'dashboard_result_id': 9337258, '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_P21263155_11-03-2025_07_21_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21263186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21263187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21263188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21263189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21263190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21263191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21263192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21263193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21263194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21263195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21263196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21263197, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665312, 'mtr_portfolio_id': 21263614, 'dashboard_result_id': 9337259, '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_P21263614_11-03-2025_07_36_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21263687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21263688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21263689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21263690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21263691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21263692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21263693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21263694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21263695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21263696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21263697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21263698, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665312, 'mtr_portfolio_id': 21264563, 'dashboard_result_id': 9337260, '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_P21264563_11-03-2025_07_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21264567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21264568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21264569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21264570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21264572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21264573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21264574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21264576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21264577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21264578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21264580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21264581, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665312, 'mtr_portfolio_id': 21265070, 'dashboard_result_id': 9337261, '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_P21265070_11-03-2025_07_54_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21265131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21265132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21265133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21265134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21265135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21265136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21265137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21265138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21265139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21265140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21265141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21265142, '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 = 21263155 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': 2657043, 'mtr_portfolio_id': 21263155, 'created_at': datetime.datetime(2025, 3, 11, 7, 21, 2), 'result': '0.06302682993954607', 'result_long': None, 'result_double': None}] Qualite : 0.06302682993954607 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21263155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21263155_11-03-2025_07_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21263155 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_P21263155_11-03-2025_07_21_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21263186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21263187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21263188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21263189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21263190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21263191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21263192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21263193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21263194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21263195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21263196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21263197, 'pht': 3726}}" where mtr_portfolio_id = 21263155 and dashboard_run_id = 1665312 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`=21263155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9337258, 0.06302682993954607, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21263155_11-03-2025_07_21_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21263186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21263187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21263188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21263189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21263190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21263191, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21263192, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21263193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21263194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21263195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21263196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21263197, '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 = 21263614 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': 2657070, 'mtr_portfolio_id': 21263614, 'created_at': datetime.datetime(2025, 3, 11, 7, 36, 4), 'result': '0.06348575130866749', 'result_long': None, 'result_double': None}] Qualite : 0.06348575130866749 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21263614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21263614_11-03-2025_07_36_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21263614 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_P21263614_11-03-2025_07_36_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21263687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21263688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21263689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21263690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21263691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21263692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21263693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21263694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21263695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21263696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21263697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21263698, 'pht': 3726}}" where mtr_portfolio_id = 21263614 and dashboard_run_id = 1665312 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`=21263614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9337259, 0.06348575130866749, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21263614_11-03-2025_07_36_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21263687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21263688, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21263689, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21263690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21263691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21263692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21263693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21263694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21263695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21263696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21263697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21263698, '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 = 21264563 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': 2657118, 'mtr_portfolio_id': 21264563, 'created_at': datetime.datetime(2025, 3, 11, 7, 48, 57), 'result': '0.06681431948921272', 'result_long': None, 'result_double': None}] Qualite : 0.06681431948921272 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21264563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21264563_11-03-2025_07_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21264563 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_P21264563_11-03-2025_07_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21264567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21264568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21264569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21264570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21264572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21264573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21264574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21264576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21264577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21264578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21264580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21264581, 'pht': 3726}}" where mtr_portfolio_id = 21264563 and dashboard_run_id = 1665312 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`=21264563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9337260, 0.06681431948921272, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21264563_11-03-2025_07_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21264567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21264568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21264569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21264570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21264572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21264573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21264574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21264576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21264577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21264578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21264580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21264581, '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 = 21265070 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': 2657149, 'mtr_portfolio_id': 21265070, 'created_at': datetime.datetime(2025, 3, 11, 7, 56, 31), 'result': '0.0564698437666826', 'result_long': None, 'result_double': None}] Qualite : 0.0564698437666826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21265070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21265070_11-03-2025_07_56_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21265070 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_P21265070_11-03-2025_07_56_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21265131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21265132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21265133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21265134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21265135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21265136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21265137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21265138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21265139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21265140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21265141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21265142, 'pht': 3726}}" where mtr_portfolio_id = 21265070 and dashboard_run_id = 1665312 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`=21265070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9337261, 0.0564698437666826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21265070_11-03-2025_07_56_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21265131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21265132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21265133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21265134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21265135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21265136, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21265137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21265138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21265139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21265140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21265141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21265142, '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 (21263155,21263614,21264563,21265070) result : ((1342853707,), (1342853754,), (1342853799,), (1342853869,), (1342854552,), (1342854583,), (1342854663,), (1342854682,), (1342854949,), (1342854985,), (1342855052,), (1342855103,), (1342855397,), (1342855422,), (1342855448,), (1342855481,), (1342855496,), (1342855628,), (1342855632,), (1342855636,), (1342855642,), (1342855649,), (1342855783,), (1342855806,), (1342855827,), (1342855843,), (1342855869,), (1342856008,), (1342856012,), (1342856017,), (1342856072,), (1342856101,), (1342856135,), (1342856177,), (1342856211,), (1342856281,), (1342856382,), (1342856387,), (1342856392,), (1342856395,), (1342856406,), (1342856410,), (1342856427,), (1342856434,), (1342856445,), (1342856453,), (1342856465,), (1342856466,), (1342856471,), (1342856473,), (1342856483,), (1342856484,), (1342856498,), (1342856502,), (1342856512,), (1342856513,), (1342856518,), (1342856520,), (1342856532,), (1342856534,), (1342856541,), (1342856557,), (1342856565,), (1342856583,), (1342856588,), (1342856594,), (1342856597,), (1342856600,), (1342856604,), (1342856632,), (1342856639,), (1342856644,), (1342856664,), (1342856668,), (1342856673,), (1342856529,), (1342856614,), (1342856616,), (1342856622,), (1342856682,), (1342856687,), (1342856690,), (1342856698,), (1342856746,), (1342856757,), (1342856763,), (1342856826,), (1342856831,), (1342856848,), (1342856868,), (1342856874,), (1342856882,), (1342856913,), (1342856920,), (1342856925,), (1342856929,), (1342856930,), (1342856934,), (1342856968,), (1342856971,), (1342856975,), (1342856979,), (1342856985,), (1342857292,), (1342857312,), (1342857363,), (1342857424,), (1342857582,), (1342857633,), (1342857743,), (1342857748,), (1342857757,), (1342857760,), (1342857797,), (1342857802,), (1342857808,), (1342857813,), (1342857833,), (1342858125,), (1342858139,), (1342858162,), (1342858257,), (1342858260,), (1342858265,), (1342858271,), (1342858282,), (1342858284,), (1342858309,), (1342858314,), (1342858321,), (1342858346,), (1342858368,), (1342858378,), (1342858396,), (1342858406,), (1342858421,), (1342858443,), (1342858671,), (1342859603,), (1342859492,), (1342859531,), (1342859810,), (1342859837,), (1342859884,), (1342860234,), (1342860268,), (1342860312,), (1342860338,), (1342860371,), (1342860375,), (1342860393,), (1342860401,), (1342860484,), (1342860488,), (1342860503,), (1342860518,), (1342860561,), (1342860736,), (1342860753,), (1342860822,), (1342860845,), (1342861020,), (1342861024,), (1342861028,), (1342861032,), (1342861332,), (1342861337,), (1342861380,), (1342861385,), (1342861391,), (1342861399,), (1342861406,), (1342861464,), (1342861470,), (1342861475,), (1342861483,), (1342861494,), (1342861506,), (1342861763,), (1342861832,), (1342861941,), (1342861946,), (1342862076,), (1342862105,), (1342862132,), (1342862139,), (1342862188,), (1342862293,), (1342862302,), (1342862346,), (1342862358,), (1342862379,), (1342862403,), (1342862472,), (1342862445,), (1342862450,), (1342862459,), (1342862529,), (1342862548,), (1342862582,), (1342862631,), (1342862636,), (1342862655,), (1342862776,), (1342862780,), (1342862797,), (1342862808,), (1342862816,), (1342863123,), (1342863128,), (1342863158,), (1342863518,), (1342863545,), (1342863564,), (1342863568,), (1342863590,), (1342863889,), (1342863895,), (1342863903,), (1342863906,), (1342863910,), (1342864131,), (1342864160,), (1342864183,), (1342864209,), (1342864231,), (1342864256,), (1342864521,), (1342864563,), (1342864577,), (1342864584,), (1342864705,), (1342864736,), (1342864765,), (1342864769,), (1342864817,), (1342864822,), (1342864829,), (1342864835,), (1342864846,), (1342864849,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 47, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21265070]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521] map_info['map_portfolio_photo'] : {21265070: [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521, 1342864256, 1342864231, 1342864209, 1342864183, 1342864160, 1342864131, 1342863910, 1342863906, 1342863903, 1342863895, 1342863889, 1342863590, 1342863568, 1342863564, 1342863545, 1342863518, 1342863158, 1342863128, 1342863123, 1342862816, 1342862808, 1342862797, 1342862780, 1342862776, 1342862655, 1342862636, 1342862631, 1342862582, 1342862548, 1342862529, 1342862459, 1342862450, 1342862445]} final : True mtd_id 4302 list_pids : [1342864849, 1342864846, 1342864835, 1342864829, 1342864822, 1342864817, 1342864769, 1342864765, 1342864736, 1342864705, 1342864584, 1342864577, 1342864563, 1342864521] Looping around the photos to save general results len do output : 1 /21265070Didn'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, '2657149') ('4302', '21265070', '1342864849', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864846', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864835', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864829', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864822', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864817', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864769', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864765', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864736', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864705', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864584', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864577', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864563', None, None, None, None, None, '2657149') ('4302', None, None, None, None, None, None, None, '2657149') ('4302', '21265070', '1342864521', None, None, None, None, None, '2657149') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21265070', 'None', None, None, None, None, '2657149'), ('4302', '21265070', '1342864849', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864846', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864835', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864829', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864822', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864817', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864769', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864765', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864736', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864705', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864584', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864577', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864563', None, None, None, None, None, '2657149'), ('4302', '21265070', '1342864521', None, None, None, None, None, '2657149')] time used for this insertion : 0.014801263809204102 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9486119747161865 time spend to save output : 0.015124082565307617 total time spend for step 5 : 0.9637360572814941 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 (2657149) 2.72user 2.02system 0:11.71elapsed 40%CPU (0avgtext+0avgdata 162532maxresident)k 232inputs+15928outputs (0major+78726minor)pagefaults 0swaps