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 : 4176979 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 (2700328) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2700328) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826531 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2700328'] with mtr_portfolio_ids : ['21826531'] and first list_photo_ids : [] new path : /proc/4176979/ Name: python3 Umask: 0002 State: R (running) Tgid: 4176979 Ngid: 0 Pid: 4176979 PPid: 4176978 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4176979 NSpid: 4176979 NSpgid: 4172317 NSsid: 4172317 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98712 kB VmRSS: 98712 kB RssAnon: 59752 kB RssFile: 38960 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 104 nonvoluntary_ctxt_switches: 174 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4176979', 'Ngid': '0', 'Pid': '4176979', 'PPid': '4176978', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4176979', 'NSpid': '4176979', 'NSpgid': '4172317', 'NSsid': '4172317', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98712 kB', 'VmRSS': '98712 kB', 'RssAnon': '59752 kB', 'RssFile': '38960 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '104', 'nonvoluntary_ctxt_switches': '174'} ('datou_batch_current', '4176979', '1106928', '0', '1106928', '865676', '98712', b'', 'marlene', '2700328') 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 (21826531) 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 (2700328 ) ) 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 (21826531) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1348175095, 'portfolio_id': 21826531}, {'photo_id': 1348175091, 'portfolio_id': 21826531}, {'photo_id': 1348175088, 'portfolio_id': 21826531}, {'photo_id': 1348175078, 'portfolio_id': 21826531}, {'photo_id': 1348175072, 'portfolio_id': 21826531}, {'photo_id': 1348174872, 'portfolio_id': 21826531}, {'photo_id': 1348174849, 'portfolio_id': 21826531}, {'photo_id': 1348174825, 'portfolio_id': 21826531}, {'photo_id': 1348174798, 'portfolio_id': 21826531}, {'photo_id': 1348174775, 'portfolio_id': 21826531}, {'photo_id': 1348174755, 'portfolio_id': 21826531}, {'photo_id': 1348174528, 'portfolio_id': 21826531}, {'photo_id': 1348174503, 'portfolio_id': 21826531}, {'photo_id': 1348174480, 'portfolio_id': 21826531}, {'photo_id': 1348174220, 'portfolio_id': 21826531}, {'photo_id': 1348174195, 'portfolio_id': 21826531}, {'photo_id': 1348174160, 'portfolio_id': 21826531}, {'photo_id': 1348174134, 'portfolio_id': 21826531}, {'photo_id': 1348174117, 'portfolio_id': 21826531}, {'photo_id': 1348174092, 'portfolio_id': 21826531}, {'photo_id': 1348173829, 'portfolio_id': 21826531}, {'photo_id': 1348173804, 'portfolio_id': 21826531}, {'photo_id': 1348173787, 'portfolio_id': 21826531}, {'photo_id': 1348173785, 'portfolio_id': 21826531}, {'photo_id': 1348173445, 'portfolio_id': 21826531}, {'photo_id': 1348173415, 'portfolio_id': 21826531}, {'photo_id': 1348173398, 'portfolio_id': 21826531}] map_portfolio_id_photo_id: {21826531: [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480, 1348174220, 1348174195, 1348174160, 1348174134, 1348174117, 1348174092, 1348173829, 1348173804, 1348173787, 1348173785, 1348173445, 1348173415, 1348173398]} ##### 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.016632795333862305 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 28 06:08:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21826531) 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 : 21826531 get user id for portfolio 21826531 get sub ptf for main ptf 21826531, type 3726 and hashtags ['Carton_gris', 'autre_refus', 'cartonnette', 'environnement', 'flou', 'Carton_brun', 'mal_croppe', 'papier', 'plastique', 'Teint_Dans_La_Masse', 'metal', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21826531 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','cartonnette','environnement','flou','Carton_brun','mal_croppe','papier','plastique','Teint_Dans_La_Masse','metal','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21826531 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','cartonnette','environnement','flou','Carton_brun','mal_croppe','papier','plastique','Teint_Dans_La_Masse','metal','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21826531, 'sub_port_id': 21826535, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343507, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21826531, 'sub_port_id': 21826536, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343508, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}, 'environnement': {'main_port_id': 21826531, 'sub_port_id': 21826537, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343509, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}, 'plastique': {'main_port_id': 21826531, 'sub_port_id': 21826538, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343510, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}, 'autre_refus': {'main_port_id': 21826531, 'sub_port_id': 21826539, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343511, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}, 'cartonnette': {'main_port_id': 21826531, 'sub_port_id': 21826540, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343512, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}, 'flou': {'main_port_id': 21826531, 'sub_port_id': 21826541, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343513, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}, 'metal': {'main_port_id': 21826531, 'sub_port_id': 21826542, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343514, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}, 'kraft': {'main_port_id': 21826531, 'sub_port_id': 21826543, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343515, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}, 'mal_croppe': {'main_port_id': 21826531, 'sub_port_id': 21826544, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343516, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}, 'Carton_brun': {'main_port_id': 21826531, 'sub_port_id': 21826545, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343517, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}, 'Carton_gris': {'main_port_id': 21826531, 'sub_port_id': 21826546, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343518, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21826535 , 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=21826531 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 (21826535) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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 21826536 , 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=21826531 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 (21826536) result : ((1348174308,), (1348175080,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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 21826537 , 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=21826531 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 (21826537) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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 21826538 , 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=21826531 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 (21826538) result : ((1348174928,), (1348175081,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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 21826539 , 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=21826531 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 (21826539) result : ((1348175073,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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 21826540 , 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=21826531 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 (21826540) result : ((1348175077,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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 21826541 , 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=21826531 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 (21826541) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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 21826542 , 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=21826531 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 (21826542) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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 21826543 , 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=21826531 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 (21826543) result : ((1348175084,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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 21826544 , 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=21826531 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 (21826544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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 21826545 , 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=21826531 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 (21826545) result : ((1348174315,), (1348174921,), (1348175079,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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 21826546 , 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=21826531 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 (21826546) result : ((1348175074,), (1348175075,), (1348175083,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21826531) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) 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`=21826531 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','cartonnette','environnement','flou','Carton_brun','mal_croppe','papier','plastique','Teint_Dans_La_Masse','metal','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21826531 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','autre_refus','cartonnette','environnement','flou','Carton_brun','mal_croppe','papier','plastique','Teint_Dans_La_Masse','metal','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21826531, 'sub_port_id': 21826547, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343519, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21826531, 'sub_port_id': 21826548, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343520, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}, 'environnement': {'main_port_id': 21826531, 'sub_port_id': 21826549, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343521, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}, 'plastique': {'main_port_id': 21826531, 'sub_port_id': 21826550, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343522, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}, 'autre_refus': {'main_port_id': 21826531, 'sub_port_id': 21826551, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343523, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}, 'cartonnette': {'main_port_id': 21826531, 'sub_port_id': 21826552, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343524, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}, 'flou': {'main_port_id': 21826531, 'sub_port_id': 21826553, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343525, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}, 'metal': {'main_port_id': 21826531, 'sub_port_id': 21826554, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343526, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}, 'kraft': {'main_port_id': 21826531, 'sub_port_id': 21826555, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343527, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}, 'mal_croppe': {'main_port_id': 21826531, 'sub_port_id': 21826556, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343528, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}, 'Carton_brun': {'main_port_id': 21826531, 'sub_port_id': 21826557, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343529, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}, 'Carton_gris': {'main_port_id': 21826531, 'sub_port_id': 21826558, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14343530, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 5, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21826558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21826546 lien utilise dans velours : https://www.fotonower.com/velours/21826547,21826548,21826549,21826550,21826551,21826552,21826553,21826554,21826555,21826556,21826557,21826558?tags=papier,Teint_Dans_La_Masse,environnement,plastique,autre_refus,cartonnette,flou,metal,kraft,mal_croppe,Carton_brun,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21826531]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480] map_info['map_portfolio_photo'] : {21826531: [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480, 1348174220, 1348174195, 1348174160, 1348174134, 1348174117, 1348174092, 1348173829, 1348173804, 1348173787, 1348173785, 1348173445, 1348173415, 1348173398]} final : False mtd_id 4302 list_pids : [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480] Looping around the photos to save general results len do output : 1 /21826531. 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, '2700328') ('4302', '21826531', '1348175095', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175091', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175088', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175078', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175072', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174872', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174849', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174825', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174798', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174775', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174755', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174528', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174503', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174480', None, None, None, None, None, '2700328') 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, '21826531', "{'papier': 21826535, 'Teint_Dans_La_Masse': 21826536, 'environnement': 21826537, 'plastique': 21826538, 'autre_refus': 21826539, 'cartonnette': 21826540, 'flou': 21826541, 'metal': 21826542, 'kraft': 21826543, 'mal_croppe': 21826544, 'Carton_brun': 21826545, 'Carton_gris': 21826546}", None, None, None, None, '2700328'), ('4302', '21826531', '1348175095', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175091', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175088', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175078', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175072', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174872', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174849', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174825', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174798', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174775', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174755', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174528', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174503', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174480', None, None, None, None, None, '2700328')] time used for this insertion : 0.014598608016967773 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9831962585449219 time spend to save output : 0.01495361328125 total time spend for step 1 : 1.9981498718261719 step2:final Fri Mar 28 06:09:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21826531) 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 21826531 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348173445,1348173415,1348173398,1348173829,1348173804,1348173787,1348173785,1348174220,1348174195,1348174160,1348174134,1348174117,1348174092,1348174528,1348174503,1348174480,1348174872,1348174849,1348174825,1348174798,1348174775,1348174755,1348175095,1348175091,1348175088,1348175078,1348175072); 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([21826531]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} new output for save of step final : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480] map_info['map_portfolio_photo'] : {21826531: [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480, 1348174220, 1348174195, 1348174160, 1348174134, 1348174117, 1348174092, 1348173829, 1348173804, 1348173787, 1348173785, 1348173445, 1348173415, 1348173398]} final : False mtd_id 4302 list_pids : [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480] Looping around the photos to save general results len do output : 14 /1348175095.Didn't retrieve data . /1348175091.Didn't retrieve data . /1348175088.Didn't retrieve data . /1348175078.Didn't retrieve data . /1348175072.Didn't retrieve data . /1348174872.Didn't retrieve data . /1348174849.Didn't retrieve data . /1348174825.Didn't retrieve data . /1348174798.Didn't retrieve data . /1348174775.Didn't retrieve data . /1348174755.Didn't retrieve data . /1348174528.Didn't retrieve data . /1348174503.Didn't retrieve data . /1348174480.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, '2700328') ('4302', '21826531', '1348175095', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175091', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175088', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175078', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175072', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174872', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174849', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174825', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174798', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174775', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174755', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174528', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174503', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174480', None, None, None, None, None, '2700328') 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', '21826531', '1348175095', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348175091', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348175088', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348175078', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348175072', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348174872', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348174849', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348174825', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348174798', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348174775', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348174755', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348174528', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348174503', '0.020138503084064403', None, None, None, None, '2700328'), ('4302', '21826531', '1348174480', '0.020138503084064403', None, None, None, None, '2700328')] time used for this insertion : 0.012603282928466797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06605958938598633 time spend to save output : 0.013486623764038086 total time spend for step 2 : 0.07954621315002441 step3:velours_tree Fri Mar 28 06:09:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21826531: [{'papier': 21826535, 'Teint_Dans_La_Masse': 21826536, 'environnement': 21826537, 'plastique': 21826538, 'autre_refus': 21826539, 'cartonnette': 21826540, 'flou': 21826541, 'metal': 21826542, 'kraft': 21826543, 'mal_croppe': 21826544, 'Carton_brun': 21826545, 'Carton_gris': 21826546}]} input_args_next_step : {21826531: ()} output_args : {21826531: [{'papier': 21826535, 'Teint_Dans_La_Masse': 21826536, 'environnement': 21826537, 'plastique': 21826538, 'autre_refus': 21826539, 'cartonnette': 21826540, 'flou': 21826541, 'metal': 21826542, 'kraft': 21826543, 'mal_croppe': 21826544, 'Carton_brun': 21826545, 'Carton_gris': 21826546}]} args : 21826531 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 : ({'papier': 21826535, 'Teint_Dans_La_Masse': 21826536, 'environnement': 21826537, 'plastique': 21826538, 'autre_refus': 21826539, 'cartonnette': 21826540, 'flou': 21826541, 'metal': 21826542, 'kraft': 21826543, 'mal_croppe': 21826544, 'Carton_brun': 21826545, 'Carton_gris': 21826546},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21826531) 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([21826531]) 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.31522059440612793 time spend to save output : 6.508827209472656e-05 total time spend for step 3 : 0.31528568267822266 step4:send_mail_cod Fri Mar 28 06:09:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} input_args_next_step : {1348175095: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348175095 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348175091 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348175088 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348175078 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348175072 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348174872 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348174849 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348174825 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348174798 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348174775 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348174755 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348174528 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348174503 depend.output_id : 0 input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ()} output_args : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',)} args : 1348174480 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 : {21826531: [{'papier': 21826535, 'Teint_Dans_La_Masse': 21826536, 'environnement': 21826537, 'plastique': 21826538, 'autre_refus': 21826539, 'cartonnette': 21826540, 'flou': 21826541, 'metal': 21826542, 'kraft': 21826543, 'mal_croppe': 21826544, 'Carton_brun': 21826545, 'Carton_gris': 21826546}]} input_args_next_step : {1348175095: ('0.020138503084064403',), 1348175091: ('0.020138503084064403',), 1348175088: ('0.020138503084064403',), 1348175078: ('0.020138503084064403',), 1348175072: ('0.020138503084064403',), 1348174872: ('0.020138503084064403',), 1348174849: ('0.020138503084064403',), 1348174825: ('0.020138503084064403',), 1348174798: ('0.020138503084064403',), 1348174775: ('0.020138503084064403',), 1348174755: ('0.020138503084064403',), 1348174528: ('0.020138503084064403',), 1348174503: ('0.020138503084064403',), 1348174480: ('0.020138503084064403',), 21826531: ()} output_args : {21826531: [{'papier': 21826535, 'Teint_Dans_La_Masse': 21826536, 'environnement': 21826537, 'plastique': 21826538, 'autre_refus': 21826539, 'cartonnette': 21826540, 'flou': 21826541, 'metal': 21826542, 'kraft': 21826543, 'mal_croppe': 21826544, 'Carton_brun': 21826545, 'Carton_gris': 21826546}]} args : 21826531 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.020138503084064403',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21826531) 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 (1348175095,1348175091,1348175088,1348175078,1348175072,1348174872,1348174849,1348174825,1348174798,1348174775,1348174755,1348174528,1348174503,1348174480) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348174480 begin to download photo : 1348174755 begin to download photo : 1348174825 begin to download photo : 1348175072 begin to download photo : 1348175091 download finish for photo 1348174755 begin to download photo : 1348174775 download finish for photo 1348174825 begin to download photo : 1348174849 download finish for photo 1348174480 begin to download photo : 1348174503 download finish for photo 1348175072 begin to download photo : 1348175078 download finish for photo 1348175091 begin to download photo : 1348175095 download finish for photo 1348174849 begin to download photo : 1348174872 download finish for photo 1348174503 begin to download photo : 1348174528 download finish for photo 1348175095 download finish for photo 1348175078 begin to download photo : 1348175088 download finish for photo 1348174775 begin to download photo : 1348174798 download finish for photo 1348174528 download finish for photo 1348174798 download finish for photo 1348174872 download finish for photo 1348175088 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P21826531_28-03-2025_06_09_00.pdf 21826538 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=21826538 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348174928: '1743138388_947831_1348173829_bcaadffd2725132f7bcd8664871e23f3_rle_crop_3735645737_0.png', 1348175081: '1743138374_587248_1348174195_983c51e95dd45b36b3f5d2fd8b109952_rle_crop_3735645802_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b3f6f2399e77d865d92bd1e1996cc7ab_75896279.png change filename to text .imagette218265381743138540/ imagette218265381743138540/1743138374_587248_1348174195_983c51e95dd45b36b3f5d2fd8b109952_rle_crop_3735645802_0.png.png imagette218265381743138540/1743138388_947831_1348173829_bcaadffd2725132f7bcd8664871e23f3_rle_crop_3735645737_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ac67634519b45bdc5b15187604d2ca08_7982929.png imagette218265381743138540 21826539 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=21826539 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348175073: '1743138374_587248_1348174160_caa76396091606d4f15e9042af9d0100_rle_crop_3735645810_0.png'} change filename to text .imagette218265391743138541/ imagette218265391743138541/1743138374_587248_1348174160_caa76396091606d4f15e9042af9d0100_rle_crop_3735645810_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/25371e7923a1405f93ffd13fb0c87904_14820484.png imagette218265391743138541 21826540 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=21826540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348175077: '1743138374_587248_1348174195_983c51e95dd45b36b3f5d2fd8b109952_rle_crop_3735645794_0.png'} change filename to text .imagette218265401743138541/ imagette218265401743138541/1743138374_587248_1348174195_983c51e95dd45b36b3f5d2fd8b109952_rle_crop_3735645794_0.png.png imagette218265411743138541/ imagette218265421743138541/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/78a7e183ddcd4c44a1203326a45e2d22_63510758.png imagette218265401743138541 21826541 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=21826541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218265411743138541 21826542 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=21826542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218265421743138541 21826543 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=21826543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348175084: '1743138374_587248_1348174117_59df84bcc4907b5ec4bea502429d2181_rle_crop_3735645858_0.png'} change filename to text .imagette218265431743138541/ imagette218265431743138541/1743138374_587248_1348174117_59df84bcc4907b5ec4bea502429d2181_rle_crop_3735645858_0.png.png imagette218265441743138541/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/bc721f2253d013cdbea3659c2e6daa69_57765551.png imagette218265431743138541 21826544 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=21826544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218265441743138541 21826536 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=21826536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348174308: '1743138267_944830_1348173415_854d818e6d9f7eee1aecfc260658a0ab_rle_crop_3735645358_0.png', 1348175080: '1743138394_587591_1348174220_bde9c4244b68a691815185ba727a668e_rle_crop_3735645877_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7bec800d3db78135ff35c939f9b4091f_57536556.png change filename to text .imagette218265361743138541/ imagette218265361743138541/1743138267_944830_1348173415_854d818e6d9f7eee1aecfc260658a0ab_rle_crop_3735645358_0.png.png imagette218265361743138541/1743138394_587591_1348174220_bde9c4244b68a691815185ba727a668e_rle_crop_3735645877_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/987327d2ca7c99553d3265d123772f78_28540722.png imagette218265361743138541 21826545 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=21826545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348174315: '1743138267_944830_1348173415_854d818e6d9f7eee1aecfc260658a0ab_rle_crop_3735645354_0.png', 1348174921: '1743138388_947831_1348173829_bcaadffd2725132f7bcd8664871e23f3_rle_crop_3735645736_0.png', 1348175079: '1743138374_587248_1348174160_caa76396091606d4f15e9042af9d0100_rle_crop_3735645813_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/e273d223b1a93162a8709149fe99581c_46311280.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/bfa1181e7ebf46684acabcd4693c7157_57370641.png change filename to text .imagette218265451743138541/ imagette218265451743138541/1743138374_587248_1348174160_caa76396091606d4f15e9042af9d0100_rle_crop_3735645813_0.png.png imagette218265451743138541/1743138267_944830_1348173415_854d818e6d9f7eee1aecfc260658a0ab_rle_crop_3735645354_0.png.png imagette218265451743138541/1743138388_947831_1348173829_bcaadffd2725132f7bcd8664871e23f3_rle_crop_3735645736_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ab27e4443aea5bdb562eb19e7d3fb8d3_48689901.png imagette218265451743138541 21826546 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=21826546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348175074: '1743138374_587248_1348174160_caa76396091606d4f15e9042af9d0100_rle_crop_3735645809_0.png', 1348175075: '1743138374_587248_1348174117_59df84bcc4907b5ec4bea502429d2181_rle_crop_3735645859_0.png', 1348175083: '1743138394_587591_1348174220_bde9c4244b68a691815185ba727a668e_rle_crop_3735645871_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/e8e304af912159dbef5832422ef45bbd_89101887.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/c95ab546959a0e2dbc95fe544b125538_9070723.png change filename to text .imagette218265461743138541/ imagette218265461743138541/1743138374_587248_1348174160_caa76396091606d4f15e9042af9d0100_rle_crop_3735645809_0.png.png imagette218265461743138541/1743138394_587591_1348174220_bde9c4244b68a691815185ba727a668e_rle_crop_3735645871_0.png.png imagette218265461743138541/1743138374_587248_1348174117_59df84bcc4907b5ec4bea502429d2181_rle_crop_3735645859_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/67ff730b9960358137c3df19f6d28b4f_70450081.png imagette218265461743138541 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21826531 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21826547,21826548,21826549,21826550,21826551,21826552,21826553,21826554,21826555,21826556,21826557,21826558?tags=papier,Teint_Dans_La_Masse,environnement,plastique,autre_refus,cartonnette,flou,metal,kraft,mal_croppe,Carton_brun,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1348175095] : ('0.020138503084064403',) no score found for photo 1348175095 We are sending mail with results at report@fotonower.com args[1348175091] : ('0.020138503084064403',) no score found for photo 1348175091 We are sending mail with results at report@fotonower.com args[1348175088] : ('0.020138503084064403',) no score found for photo 1348175088 We are sending mail with results at report@fotonower.com args[1348175078] : ('0.020138503084064403',) no score found for photo 1348175078 We are sending mail with results at report@fotonower.com args[1348175072] : ('0.020138503084064403',) no score found for photo 1348175072 We are sending mail with results at report@fotonower.com args[1348174872] : ('0.020138503084064403',) no score found for photo 1348174872 We are sending mail with results at report@fotonower.com args[1348174849] : ('0.020138503084064403',) no score found for photo 1348174849 We are sending mail with results at report@fotonower.com args[1348174825] : ('0.020138503084064403',) no score found for photo 1348174825 We are sending mail with results at report@fotonower.com args[1348174798] : ('0.020138503084064403',) no score found for photo 1348174798 We are sending mail with results at report@fotonower.com args[1348174775] : ('0.020138503084064403',) no score found for photo 1348174775 We are sending mail with results at report@fotonower.com args[1348174755] : ('0.020138503084064403',) no score found for photo 1348174755 We are sending mail with results at report@fotonower.com args[1348174528] : ('0.020138503084064403',) no score found for photo 1348174528 We are sending mail with results at report@fotonower.com args[1348174503] : ('0.020138503084064403',) no score found for photo 1348174503 We are sending mail with results at report@fotonower.com args[1348174480] : ('0.020138503084064403',) no score found for photo 1348174480 We are sending mail with results at report@fotonower.com refus_total : 0.020138503084064403 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=21826531 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_P21826531_28-03-2025_06_09_00.pdf results_Auto_P21826531_28-03-2025_06_09_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21826531_28-03-2025_06_09_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21826531','results_Auto_P21826531_28-03-2025_06_09_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21826531_28-03-2025_06_09_00.pdf','pdf','','0.15','0.020138503084064403') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21826531]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480] map_info['map_portfolio_photo'] : {21826531: [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480, 1348174220, 1348174195, 1348174160, 1348174134, 1348174117, 1348174092, 1348173829, 1348173804, 1348173787, 1348173785, 1348173445, 1348173415, 1348173398]} final : False mtd_id 4302 list_pids : [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480] 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, '2700328') ('4302', '21826531', '1348175095', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175091', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175088', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175078', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175072', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174872', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174849', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174825', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174798', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174775', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174755', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174528', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174503', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174480', None, None, None, None, None, '2700328') 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', '21826531', '1348175095', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175091', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175088', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175078', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175072', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174872', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174849', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174825', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174798', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174775', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174755', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174528', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174503', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174480', None, None, None, None, None, '2700328')] time used for this insertion : 0.013827085494995117 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8017520904541016 time spend to save output : 0.01411581039428711 total time spend for step 4 : 2.8158679008483887 step5:split_time_score Fri Mar 28 06:09:03 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 : ['21826531'] 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 : [('21826531',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21826531) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348175091: {'path': 'temp/1743138540_4176979_1348175091_73b81fce9a51ff4d68a444cf1751a96c.jpg', 'extension': 'jpg'}, 1348175095: {'path': 'temp/1743138540_4176979_1348175095_3254278b0a658fc0e863b12fb53e4625.jpg', 'extension': 'jpg'}, 1348174480: {'path': 'temp/1743138540_4176979_1348174480_f42873c84d0edccc21bfe25eab064137.jpg', 'extension': 'jpg'}, 1348174503: {'path': 'temp/1743138540_4176979_1348174503_59ea199d5bdb795134caadc2f7ec9dd3.jpg', 'extension': 'jpg'}, 1348174528: {'path': 'temp/1743138540_4176979_1348174528_a06343a67885a2329bed4c6fd4c86374.jpg', 'extension': 'jpg'}, 1348174755: {'path': 'temp/1743138540_4176979_1348174755_e55b10772c4ab9e7265c1c198ecac08d.jpg', 'extension': 'jpg'}, 1348174775: {'path': 'temp/1743138540_4176979_1348174775_8d5c73e1f364a4e927426de67fd91669.jpg', 'extension': 'jpg'}, 1348174798: {'path': 'temp/1743138540_4176979_1348174798_a83e16af0e5f670f5af14f01b63dda4a.jpg', 'extension': 'jpg'}, 1348174825: {'path': 'temp/1743138540_4176979_1348174825_921ff0561edd3609aad22659dd495ac1.jpg', 'extension': 'jpg'}, 1348174849: {'path': 'temp/1743138540_4176979_1348174849_db6d3d6be2ca340e0e11758d9ec711cd.jpg', 'extension': 'jpg'}, 1348174872: {'path': 'temp/1743138540_4176979_1348174872_fb3d7ada0ead7e99cec0352ece2a3547.jpg', 'extension': 'jpg'}, 1348175072: {'path': 'temp/1743138540_4176979_1348175072_0cfe3ec738a5d256071fce108d899a43.jpg', 'extension': 'jpg'}, 1348175078: {'path': 'temp/1743138540_4176979_1348175078_137dc58f5c247a6a4632d4eacabca111.jpg', 'extension': 'jpg'}, 1348175088: {'path': 'temp/1743138540_4176979_1348175088_d6e1e5fd903b59fbfc58c3147d7bb2c4.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 = 21826531; (('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 = 21826531 group by h (('06', 27),) 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=21826531 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 (21826531) 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 (21826531) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28032025 21826531 Nombre de photos uploadées : 27 / 23040 (0%) 28032025 21826531 Nombre de photos taguées (types de déchets): 0 / 27 (0%) 28032025 21826531 Nombre de photos taguées (volume) : 0 / 27 (0%) [{'photo_id': 1348173445, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3c379ce5daf54acecce3ac4463cf6ca9.jpg', 'username': None, 'uploaded_at': 1743138139, 'text': 'image_28032025_06_00_13_009127m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348173415, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/854d818e6d9f7eee1aecfc260658a0ab.jpg', 'username': None, 'uploaded_at': 1743138139, 'text': 'image_28032025_06_00_34_010135m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1348173398, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3c9be4e36e104b86c1bf39d6b86dd5bb.jpg', 'username': None, 'uploaded_at': 1743138139, 'text': 'image_28032025_06_00_44_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1348173829, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/bcaadffd2725132f7bcd8664871e23f3.jpg', 'username': None, 'uploaded_at': 1743138198, 'text': 'image_28032025_06_00_54_010134m0.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 7.867813110351562e-06 ??????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011980533599853516 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21826531, '2025-03-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1696037,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02316761016845703 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= 1696037 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704322, 'mtr_portfolio_id': 21825194, 'dashboard_result_id': 9705768, '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_P21825194_28-03-2025_05_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21825231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21825232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21825233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21825236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21825241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21825247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21825249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21825250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21825251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21825252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21825253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21825254, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704322, 'mtr_portfolio_id': 21825619, 'dashboard_result_id': 9705769, '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_P21825619_28-03-2025_05_51_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21825668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21825669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21825670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21825671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21825672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21825673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21825674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21825675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21825676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21825677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21825678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21825679, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704322, 'mtr_portfolio_id': 21826095, 'dashboard_result_id': 9705770, '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_P21826095_28-03-2025_06_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826123, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21826130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826131, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704322, 'mtr_portfolio_id': 21826531, 'dashboard_result_id': 9705771, '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_P21826531_28-03-2025_06_06_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21826535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826546, '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 = 21825194 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': 2700091, 'mtr_portfolio_id': 21825194, 'created_at': datetime.datetime(2025, 3, 28, 5, 34, 59), 'result': '0.040043441546509455', 'result_long': None, 'result_double': None}] Qualite : 0.040043441546509455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21825194 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21825194_28-03-2025_05_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21825194 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_P21825194_28-03-2025_05_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21825231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21825232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21825233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21825236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21825241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21825247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21825249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21825250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21825251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21825252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21825253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21825254, 'pht': 3726}}" where mtr_portfolio_id = 21825194 and dashboard_run_id = 1704322 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`=21825194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705768, 0.040043441546509455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21825194_28-03-2025_05_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21825231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21825232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21825233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21825236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21825241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21825247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21825249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21825250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21825251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21825252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21825253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21825254, '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 = 21825619 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': 2700252, 'mtr_portfolio_id': 21825619, 'created_at': datetime.datetime(2025, 3, 28, 5, 51, 27), 'result': '0.03285444833054389', 'result_long': None, 'result_double': None}] Qualite : 0.03285444833054389 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21825619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21825619_28-03-2025_05_51_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21825619 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_P21825619_28-03-2025_05_51_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21825668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21825669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21825670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21825671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21825672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21825673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21825674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21825675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21825676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21825677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21825678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21825679, 'pht': 3726}}" where mtr_portfolio_id = 21825619 and dashboard_run_id = 1704322 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`=21825619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705769, 0.03285444833054389, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21825619_28-03-2025_05_51_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21825668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21825669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21825670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21825671, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21825672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21825673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21825674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21825675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21825676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21825677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21825678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21825679, '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 = 21826095 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': 2700285, 'mtr_portfolio_id': 21826095, 'created_at': datetime.datetime(2025, 3, 28, 6, 4, 58), 'result': '0.04340896088423031', 'result_long': None, 'result_double': None}] Qualite : 0.04340896088423031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21826095 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21826095_28-03-2025_06_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21826095 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_P21826095_28-03-2025_06_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826123, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21826130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826131, 'pht': 3726}}" where mtr_portfolio_id = 21826095 and dashboard_run_id = 1704322 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`=21826095 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705770, 0.04340896088423031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21826095_28-03-2025_06_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826123, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826126, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21826130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826131, '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 = 21826531 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': 2700328, 'mtr_portfolio_id': 21826531, 'created_at': datetime.datetime(2025, 3, 28, 6, 9), 'result': '0.020138503084064403', 'result_long': None, 'result_double': None}] Qualite : 0.020138503084064403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21826531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21826531_28-03-2025_06_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21826531 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_P21826531_28-03-2025_06_09_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21826535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826546, 'pht': 3726}}" where mtr_portfolio_id = 21826531 and dashboard_run_id = 1704322 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`=21826531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9705771, 0.020138503084064403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21826531_28-03-2025_06_09_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21826535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826546, '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 (21825194,21825619,21826095,21826531) result : ((1348168784,), (1348168786,), (1348168791,), (1348168822,), (1348168824,), (1348168829,), (1348168835,), (1348168839,), (1348168843,), (1348168882,), (1348168886,), (1348168891,), (1348168896,), (1348168900,), (1348168913,), (1348168915,), (1348168920,), (1348168925,), (1348168933,), (1348168936,), (1348168960,), (1348168963,), (1348168966,), (1348169017,), (1348169138,), (1348169353,), (1348169828,), (1348169831,), (1348169835,), (1348169993,), (1348169995,), (1348170004,), (1348170008,), (1348170021,), (1348170033,), (1348170051,), (1348170061,), (1348170066,), (1348170071,), (1348170148,), (1348170154,), (1348170159,), (1348170164,), (1348170167,), (1348170171,), (1348170182,), (1348170185,), (1348170189,), (1348170196,), (1348170226,), (1348170237,), (1348170243,), (1348170259,), (1348170268,), (1348170273,), (1348170307,), (1348170309,), (1348170312,), (1348170319,), (1348170340,), (1348170392,), (1348170473,), (1348170474,), (1348170479,), (1348170532,), (1348170540,), (1348170544,), (1348170547,), (1348170550,), (1348170553,), (1348170586,), (1348170588,), (1348170593,), (1348170647,), (1348170630,), (1348170632,), (1348170638,), (1348170641,), (1348170644,), (1348170710,), (1348170713,), (1348170718,), (1348170721,), (1348170725,), (1348170743,), (1348170744,), (1348170754,), (1348170759,), (1348170764,), (1348170778,), (1348170783,), (1348170787,), (1348170792,), (1348170797,), (1348170802,), (1348170812,), (1348170815,), (1348170819,), (1348170824,), (1348170911,), (1348170962,), (1348170980,), (1348170984,), (1348170989,), (1348170993,), (1348171005,), (1348171009,), (1348171014,), (1348171017,), (1348171075,), (1348171082,), (1348171085,), (1348171100,), (1348171139,), (1348171141,), (1348171145,), (1348171149,), (1348171153,), (1348171195,), (1348171202,), (1348171206,), (1348171208,), (1348171237,), (1348171238,), (1348171243,), (1348171246,), (1348171252,), (1348171257,), (1348171283,), (1348171286,), (1348171289,), (1348171293,), (1348171356,), (1348171357,), (1348171370,), (1348171374,), (1348171405,), (1348171499,), (1348171531,), (1348171534,), (1348171692,), (1348171694,), (1348171697,), (1348171739,), (1348171803,), (1348172055,), (1348171886,), (1348171889,), (1348171906,), (1348171958,), (1348172045,), (1348172065,), (1348172066,), (1348172071,), (1348172106,), (1348172114,), (1348172121,), (1348172131,), (1348172140,), (1348172191,), (1348172193,), (1348172197,), (1348172201,), (1348172265,), (1348172270,), (1348172275,), (1348172278,), (1348172290,), (1348172291,), (1348172295,), (1348172299,), (1348172302,), (1348172306,), (1348172338,), (1348172341,), (1348172345,), (1348172351,), (1348172372,), (1348172374,), (1348172378,), (1348172382,), (1348172385,), (1348172416,), (1348172419,), (1348172423,), (1348172428,), (1348172633,), (1348172636,), (1348172683,), (1348172688,), (1348172694,), (1348172699,), (1348172705,), (1348173156,), (1348173458,), (1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28032025': {'nb_upload': 27, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21826531]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480] map_info['map_portfolio_photo'] : {21826531: [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480, 1348174220, 1348174195, 1348174160, 1348174134, 1348174117, 1348174092, 1348173829, 1348173804, 1348173787, 1348173785, 1348173445, 1348173415, 1348173398]} final : True mtd_id 4302 list_pids : [1348175095, 1348175091, 1348175088, 1348175078, 1348175072, 1348174872, 1348174849, 1348174825, 1348174798, 1348174775, 1348174755, 1348174528, 1348174503, 1348174480] Looping around the photos to save general results len do output : 1 /21826531Didn'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, '2700328') ('4302', '21826531', '1348175095', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175091', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175088', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175078', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348175072', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174872', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174849', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174825', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174798', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174775', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174755', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174528', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174503', None, None, None, None, None, '2700328') ('4302', None, None, None, None, None, None, None, '2700328') ('4302', '21826531', '1348174480', None, None, None, None, None, '2700328') 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, '21826531', 'None', None, None, None, None, '2700328'), ('4302', '21826531', '1348175095', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175091', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175088', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175078', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348175072', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174872', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174849', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174825', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174798', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174775', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174755', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174528', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174503', None, None, None, None, None, '2700328'), ('4302', '21826531', '1348174480', None, None, None, None, None, '2700328')] time used for this insertion : 0.016749858856201172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.45682621002197266 time spend to save output : 0.0170137882232666 total time spend for step 5 : 0.47383999824523926 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 (2700328) 2.49user 2.11system 0:08.85elapsed 52%CPU (0avgtext+0avgdata 160516maxresident)k 848inputs+9664outputs (45major+77648minor)pagefaults 0swaps