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 : 3276477 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 (2729958) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2729958) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125958 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2729958'] with mtr_portfolio_ids : ['22125958'] and first list_photo_ids : [] new path : /proc/3276477/ Name: python3 Umask: 0002 State: R (running) Tgid: 3276477 Ngid: 0 Pid: 3276477 PPid: 3276476 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3276477 NSpid: 3276477 NSpgid: 3271317 NSsid: 3271317 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97672 kB VmRSS: 97672 kB RssAnon: 59776 kB RssFile: 37896 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3276477', 'Ngid': '0', 'Pid': '3276477', 'PPid': '3276476', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3276477', 'NSpid': '3276477', 'NSpgid': '3271317', 'NSsid': '3271317', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97672 kB', 'VmRSS': '97672 kB', 'RssAnon': '59776 kB', 'RssFile': '37896 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '3276477', '1106844', '0', '1106844', '865592', '97672', b'', 'marlene', '2729958') 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 (22125958) 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 (2729958 ) ) 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 (22125958) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350658865, 'portfolio_id': 22125958}, {'photo_id': 1350658862, 'portfolio_id': 22125958}, {'photo_id': 1350658858, 'portfolio_id': 22125958}, {'photo_id': 1350658852, 'portfolio_id': 22125958}, {'photo_id': 1350658844, 'portfolio_id': 22125958}, {'photo_id': 1350658783, 'portfolio_id': 22125958}, {'photo_id': 1350658776, 'portfolio_id': 22125958}, {'photo_id': 1350658770, 'portfolio_id': 22125958}, {'photo_id': 1350658764, 'portfolio_id': 22125958}, {'photo_id': 1350658715, 'portfolio_id': 22125958}, {'photo_id': 1350658687, 'portfolio_id': 22125958}, {'photo_id': 1350658655, 'portfolio_id': 22125958}, {'photo_id': 1350658636, 'portfolio_id': 22125958}, {'photo_id': 1350658632, 'portfolio_id': 22125958}, {'photo_id': 1350658627, 'portfolio_id': 22125958}, {'photo_id': 1350658559, 'portfolio_id': 22125958}, {'photo_id': 1350658554, 'portfolio_id': 22125958}, {'photo_id': 1350658547, 'portfolio_id': 22125958}, {'photo_id': 1350658540, 'portfolio_id': 22125958}, {'photo_id': 1350658533, 'portfolio_id': 22125958}, {'photo_id': 1350658527, 'portfolio_id': 22125958}, {'photo_id': 1350658493, 'portfolio_id': 22125958}, {'photo_id': 1350658489, 'portfolio_id': 22125958}, {'photo_id': 1350658484, 'portfolio_id': 22125958}, {'photo_id': 1350658478, 'portfolio_id': 22125958}, {'photo_id': 1350658324, 'portfolio_id': 22125958}, {'photo_id': 1350658321, 'portfolio_id': 22125958}, {'photo_id': 1350658315, 'portfolio_id': 22125958}, {'photo_id': 1350658254, 'portfolio_id': 22125958}, {'photo_id': 1350658250, 'portfolio_id': 22125958}, {'photo_id': 1350658246, 'portfolio_id': 22125958}, {'photo_id': 1350658242, 'portfolio_id': 22125958}, {'photo_id': 1350658238, 'portfolio_id': 22125958}, {'photo_id': 1350658099, 'portfolio_id': 22125958}, {'photo_id': 1350658093, 'portfolio_id': 22125958}] map_portfolio_id_photo_id: {22125958: [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627, 1350658559, 1350658554, 1350658547, 1350658540, 1350658533, 1350658527, 1350658493, 1350658489, 1350658484, 1350658478, 1350658324, 1350658321, 1350658315, 1350658254, 1350658250, 1350658246, 1350658242, 1350658238, 1350658099, 1350658093]} ##### 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.01660013198852539 #### 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 Thu Apr 17 09:38:57 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 (22125958) 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 : 22125958 get user id for portfolio 22125958 get sub ptf for main ptf 22125958, type 3726 and hashtags ['flou', 'cartonnette', 'Teint_Dans_La_Masse', 'autre_refus', 'kraft', 'metal', 'papier', 'Carton_brun', 'mal_croppe', 'plastique', 'environnement', 'Carton_gris'] 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`=22125958 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Teint_Dans_La_Masse','autre_refus','kraft','metal','papier','Carton_brun','mal_croppe','plastique','environnement','Carton_gris')) 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`=22125958 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Teint_Dans_La_Masse','autre_refus','kraft','metal','papier','Carton_brun','mal_croppe','plastique','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22125958, 'sub_port_id': 22125962, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607970, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}, 'kraft': {'main_port_id': 22125958, 'sub_port_id': 22125963, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607971, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}, 'papier': {'main_port_id': 22125958, 'sub_port_id': 22125964, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607972, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}, 'Carton_brun': {'main_port_id': 22125958, 'sub_port_id': 22125965, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607973, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22125958, 'sub_port_id': 22125966, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607974, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}, 'environnement': {'main_port_id': 22125958, 'sub_port_id': 22125967, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607975, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}, 'cartonnette': {'main_port_id': 22125958, 'sub_port_id': 22125968, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607976, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}, 'autre_refus': {'main_port_id': 22125958, 'sub_port_id': 22125969, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607977, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}, 'plastique': {'main_port_id': 22125958, 'sub_port_id': 22125970, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607978, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}, 'Carton_gris': {'main_port_id': 22125958, 'sub_port_id': 22125971, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607979, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}, 'flou': {'main_port_id': 22125958, 'sub_port_id': 22125972, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607980, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}, 'metal': {'main_port_id': 22125958, 'sub_port_id': 22125973, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607981, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22125962 , 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=22125958 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 (22125962) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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 22125963 , 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=22125958 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 (22125963) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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 22125964 , 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=22125958 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 (22125964) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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 22125965 , 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=22125958 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 (22125965) result : ((1350658798,), (1350658837,), (1350658838,), (1350658853,), (1350658854,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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 22125966 , 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=22125958 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 (22125966) result : ((1350658567,), (1350658568,), (1350658739,), (1350658824,), (1350658825,), (1350658826,), (1350658906,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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 22125967 , 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=22125958 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 (22125967) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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 22125968 , 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=22125958 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 (22125968) result : ((1350658834,), (1350658835,), (1350658917,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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 22125969 , 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=22125958 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 (22125969) result : ((1350658334,), (1350658827,), (1350658828,), (1350658829,), (1350658846,), (1350658847,), (1350658908,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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 22125970 , 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=22125958 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 (22125970) result : ((1350658740,), (1350658741,), (1350658839,), (1350658840,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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 22125971 , 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=22125958 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 (22125971) result : ((1350658797,), (1350658830,), (1350658849,), (1350658850,), (1350658910,), (1350658911,), (1350658912,), (1350658913,), (1350658914,), (1350658915,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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 22125972 , 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=22125958 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 (22125972) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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 22125973 , 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=22125958 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 (22125973) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22125958) result : ((1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) 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`=22125958 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Teint_Dans_La_Masse','autre_refus','kraft','metal','papier','Carton_brun','mal_croppe','plastique','environnement','Carton_gris')) 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`=22125958 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Teint_Dans_La_Masse','autre_refus','kraft','metal','papier','Carton_brun','mal_croppe','plastique','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22125958, 'sub_port_id': 22125974, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607982, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}, 'kraft': {'main_port_id': 22125958, 'sub_port_id': 22125975, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607983, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}, 'papier': {'main_port_id': 22125958, 'sub_port_id': 22125976, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607984, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}, 'Carton_brun': {'main_port_id': 22125958, 'sub_port_id': 22125977, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607985, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22125958, 'sub_port_id': 22125978, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607986, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}, 'environnement': {'main_port_id': 22125958, 'sub_port_id': 22125979, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607987, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}, 'cartonnette': {'main_port_id': 22125958, 'sub_port_id': 22125980, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607988, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}, 'autre_refus': {'main_port_id': 22125958, 'sub_port_id': 22125981, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607989, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}, 'plastique': {'main_port_id': 22125958, 'sub_port_id': 22125982, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607990, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}, 'Carton_gris': {'main_port_id': 22125958, 'sub_port_id': 22125983, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607991, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}, 'flou': {'main_port_id': 22125958, 'sub_port_id': 22125984, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607992, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}, 'metal': {'main_port_id': 22125958, 'sub_port_id': 22125985, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14607993, 'last_updated_at': datetime.datetime(2025, 4, 17, 9, 36, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 9, 36, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 9, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125974,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125962 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125975,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125963 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125976,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125964 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125977,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125965 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125978,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125966 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125979,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125967 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125980,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125968 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125981,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125969 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125982,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125970 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125983,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125971 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125984,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125972 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22125985,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22125973 lien utilise dans velours : https://www.fotonower.com/velours/22125974,22125975,22125976,22125977,22125978,22125979,22125980,22125981,22125982,22125983,22125984,22125985?tags=mal_croppe,kraft,papier,Carton_brun,Teint_Dans_La_Masse,environnement,cartonnette,autre_refus,plastique,Carton_gris,flou,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22125958]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627] map_info['map_portfolio_photo'] : {22125958: [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627, 1350658559, 1350658554, 1350658547, 1350658540, 1350658533, 1350658527, 1350658493, 1350658489, 1350658484, 1350658478, 1350658324, 1350658321, 1350658315, 1350658254, 1350658250, 1350658246, 1350658242, 1350658238, 1350658099, 1350658093]} final : False mtd_id 4302 list_pids : [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627] Looping around the photos to save general results len do output : 1 /22125958. 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, '2729958') ('4302', '22125958', '1350658865', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658862', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658858', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658852', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658844', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658783', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658776', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658770', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658764', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658715', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658687', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658655', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658636', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658632', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658627', None, None, None, None, None, '2729958') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22125958', "{'mal_croppe': 22125962, 'kraft': 22125963, 'papier': 22125964, 'Carton_brun': 22125965, 'Teint_Dans_La_Masse': 22125966, 'environnement': 22125967, 'cartonnette': 22125968, 'autre_refus': 22125969, 'plastique': 22125970, 'Carton_gris': 22125971, 'flou': 22125972, 'metal': 22125973}", None, None, None, None, '2729958'), ('4302', '22125958', '1350658865', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658862', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658858', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658852', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658844', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658783', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658776', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658770', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658764', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658715', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658687', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658655', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658636', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658632', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658627', None, None, None, None, None, '2729958')] time used for this insertion : 0.016316890716552734 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5358457565307617 time spend to save output : 0.016638755798339844 total time spend for step 1 : 1.5524845123291016 step2:final Thu Apr 17 09:38:59 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 (22125958) 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 22125958 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350658099,1350658093,1350658254,1350658250,1350658246,1350658242,1350658238,1350658324,1350658321,1350658315,1350658493,1350658489,1350658484,1350658478,1350658559,1350658554,1350658547,1350658540,1350658533,1350658527,1350658715,1350658687,1350658655,1350658636,1350658632,1350658627,1350658783,1350658776,1350658770,1350658764,1350658865,1350658862,1350658858,1350658852,1350658844); 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([22125958]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} new output for save of step final : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627] map_info['map_portfolio_photo'] : {22125958: [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627, 1350658559, 1350658554, 1350658547, 1350658540, 1350658533, 1350658527, 1350658493, 1350658489, 1350658484, 1350658478, 1350658324, 1350658321, 1350658315, 1350658254, 1350658250, 1350658246, 1350658242, 1350658238, 1350658099, 1350658093]} final : False mtd_id 4302 list_pids : [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627] Looping around the photos to save general results len do output : 15 /1350658865.Didn't retrieve data . /1350658862.Didn't retrieve data . /1350658858.Didn't retrieve data . /1350658852.Didn't retrieve data . /1350658844.Didn't retrieve data . /1350658783.Didn't retrieve data . /1350658776.Didn't retrieve data . /1350658770.Didn't retrieve data . /1350658764.Didn't retrieve data . /1350658715.Didn't retrieve data . /1350658687.Didn't retrieve data . /1350658655.Didn't retrieve data . /1350658636.Didn't retrieve data . /1350658632.Didn't retrieve data . /1350658627.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, '2729958') ('4302', '22125958', '1350658865', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658862', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658858', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658852', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658844', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658783', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658776', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658770', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658764', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658715', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658687', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658655', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658636', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658632', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658627', None, None, None, None, None, '2729958') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22125958', '1350658865', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658862', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658858', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658852', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658844', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658783', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658776', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658770', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658764', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658715', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658687', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658655', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658636', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658632', '0.04937651369863855', None, None, None, None, '2729958'), ('4302', '22125958', '1350658627', '0.04937651369863855', None, None, None, None, '2729958')] time used for this insertion : 0.01686716079711914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06921935081481934 time spend to save output : 0.017606019973754883 total time spend for step 2 : 0.08682537078857422 step3:velours_tree Thu Apr 17 09:38:59 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 : {22125958: [{'mal_croppe': 22125962, 'kraft': 22125963, 'papier': 22125964, 'Carton_brun': 22125965, 'Teint_Dans_La_Masse': 22125966, 'environnement': 22125967, 'cartonnette': 22125968, 'autre_refus': 22125969, 'plastique': 22125970, 'Carton_gris': 22125971, 'flou': 22125972, 'metal': 22125973}]} input_args_next_step : {22125958: ()} output_args : {22125958: [{'mal_croppe': 22125962, 'kraft': 22125963, 'papier': 22125964, 'Carton_brun': 22125965, 'Teint_Dans_La_Masse': 22125966, 'environnement': 22125967, 'cartonnette': 22125968, 'autre_refus': 22125969, 'plastique': 22125970, 'Carton_gris': 22125971, 'flou': 22125972, 'metal': 22125973}]} args : 22125958 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 : ({'mal_croppe': 22125962, 'kraft': 22125963, 'papier': 22125964, 'Carton_brun': 22125965, 'Teint_Dans_La_Masse': 22125966, 'environnement': 22125967, 'cartonnette': 22125968, 'autre_refus': 22125969, 'plastique': 22125970, 'Carton_gris': 22125971, 'flou': 22125972, 'metal': 22125973},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22125958) 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([22125958]) 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.297743558883667 time spend to save output : 5.4836273193359375e-05 total time spend for step 3 : 0.29779839515686035 step4:send_mail_cod Thu Apr 17 09:38:59 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 : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} input_args_next_step : {1350658865: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658865 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658862 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658858 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658852 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658844 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658783 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658776 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658770 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658764 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658715 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658687 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658655 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658636 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658632 depend.output_id : 0 input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ()} output_args : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',)} args : 1350658627 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 : {22125958: [{'mal_croppe': 22125962, 'kraft': 22125963, 'papier': 22125964, 'Carton_brun': 22125965, 'Teint_Dans_La_Masse': 22125966, 'environnement': 22125967, 'cartonnette': 22125968, 'autre_refus': 22125969, 'plastique': 22125970, 'Carton_gris': 22125971, 'flou': 22125972, 'metal': 22125973}]} input_args_next_step : {1350658865: ('0.04937651369863855',), 1350658862: ('0.04937651369863855',), 1350658858: ('0.04937651369863855',), 1350658852: ('0.04937651369863855',), 1350658844: ('0.04937651369863855',), 1350658783: ('0.04937651369863855',), 1350658776: ('0.04937651369863855',), 1350658770: ('0.04937651369863855',), 1350658764: ('0.04937651369863855',), 1350658715: ('0.04937651369863855',), 1350658687: ('0.04937651369863855',), 1350658655: ('0.04937651369863855',), 1350658636: ('0.04937651369863855',), 1350658632: ('0.04937651369863855',), 1350658627: ('0.04937651369863855',), 22125958: ()} output_args : {22125958: [{'mal_croppe': 22125962, 'kraft': 22125963, 'papier': 22125964, 'Carton_brun': 22125965, 'Teint_Dans_La_Masse': 22125966, 'environnement': 22125967, 'cartonnette': 22125968, 'autre_refus': 22125969, 'plastique': 22125970, 'Carton_gris': 22125971, 'flou': 22125972, 'metal': 22125973}]} args : 22125958 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :16, first value : ('0.04937651369863855',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22125958) 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 (1350658865,1350658862,1350658858,1350658852,1350658844,1350658783,1350658776,1350658770,1350658764,1350658715,1350658687,1350658655,1350658636,1350658632,1350658627) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350658627 begin to download photo : 1350658687 begin to download photo : 1350658776 begin to download photo : 1350658858 download finish for photo 1350658776 begin to download photo : 1350658783 download finish for photo 1350658858 begin to download photo : 1350658862 download finish for photo 1350658627 begin to download photo : 1350658632 download finish for photo 1350658687 begin to download photo : 1350658715 download finish for photo 1350658783 begin to download photo : 1350658844 download finish for photo 1350658632 begin to download photo : 1350658636 download finish for photo 1350658862 begin to download photo : 1350658865 download finish for photo 1350658715 begin to download photo : 1350658764 download finish for photo 1350658844 begin to download photo : 1350658852 download finish for photo 1350658865 download finish for photo 1350658636 begin to download photo : 1350658655 download finish for photo 1350658764 begin to download photo : 1350658770 download finish for photo 1350658852 download finish for photo 1350658770 download finish for photo 1350658655 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221259621744875540/ imagette221259631744875540/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22125958_17-04-2025_09_39_00.pdf 22125962 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=22125962 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221259621744875540 22125963 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=22125963 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221259631744875540 22125968 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=22125968 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350658834: '1744875447_901358_1350658715_2671ad1bb31024f25e6408cf39cc9f76_rle_crop_3751404109_0.png', 1350658835: '1744875447_901358_1350658527_7910e86b8571bf76fe9a2afd7dea6386_rle_crop_3751404180_0.png', 1350658917: '1744875493_2753971_1350658238_f7d81d5d4a05c73be92cab6da861b23a_rle_crop_3751404511_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/3253104c000432b9d8cd49dba5f011a5_37192678.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/deb6dd14285d26fd5c6931c0f5492588_13758902.png change filename to text .imagette221259681744875540/ imagette221259681744875540/1744875447_901358_1350658715_2671ad1bb31024f25e6408cf39cc9f76_rle_crop_3751404109_0.png.png imagette221259681744875540/1744875447_901358_1350658527_7910e86b8571bf76fe9a2afd7dea6386_rle_crop_3751404180_0.png.png imagette221259681744875540/1744875493_2753971_1350658238_f7d81d5d4a05c73be92cab6da861b23a_rle_crop_3751404511_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/9fb668ad3dde487bf2d761685e5f7c5f_91982926.png imagette221259681744875540 22125969 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=22125969 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350658334: '1744875182_2750407_1350658099_2ed694cf1db11d49d5c3aab231e44511_rle_crop_3751398162_0.png', 1350658827: '1744875447_901358_1350658715_2671ad1bb31024f25e6408cf39cc9f76_rle_crop_3751404108_0.png', 1350658828: '1744875447_901358_1350658540_f50cf5ce948bf8ba223cd2b0e12f9fd0_rle_crop_3751404151_0.png', 1350658829: '1744875447_901358_1350658527_7910e86b8571bf76fe9a2afd7dea6386_rle_crop_3751404176_0.png', 1350658846: '1744875461_397330_1350658687_d7cc7baa1b2a0a3c8ed2fbedce829367_rle_crop_3751404243_0.png', 1350658847: '1744875461_397330_1350658655_96d8ff1f408dac0e4523951814bd83d0_rle_crop_3751404258_0.png', 1350658908: '1744875493_2753971_1350658238_f7d81d5d4a05c73be92cab6da861b23a_rle_crop_3751404504_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/de1843219b75cb3c70c6d32b7a95b655_73232850.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/df33067819aba0fda72f9aa3a7b663bb_80900144.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/5515cbf9f29b57afd27eeb28f1b23cce_53958113.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/06aa2278ce63abac759c27d263f9fc25_77132382.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ae37853f4917915029fd97659547cdb6_94199825.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/6b528ccb3c5351d09af2dc6075d17937_3088335.png change filename to text .imagette221259691744875540/ imagette221259691744875540/1744875461_397330_1350658655_96d8ff1f408dac0e4523951814bd83d0_rle_crop_3751404258_0.png.png imagette221259691744875540/1744875447_901358_1350658540_f50cf5ce948bf8ba223cd2b0e12f9fd0_rle_crop_3751404151_0.png.png imagette221259691744875540/1744875493_2753971_1350658238_f7d81d5d4a05c73be92cab6da861b23a_rle_crop_3751404504_0.png.png imagette221259691744875540/1744875461_397330_1350658687_d7cc7baa1b2a0a3c8ed2fbedce829367_rle_crop_3751404243_0.png.png imagette221259691744875540/1744875447_901358_1350658715_2671ad1bb31024f25e6408cf39cc9f76_rle_crop_3751404108_0.png.png imagette221259691744875540/1744875182_2750407_1350658099_2ed694cf1db11d49d5c3aab231e44511_rle_crop_3751398162_0.png.png imagette221259691744875540/1744875447_901358_1350658527_7910e86b8571bf76fe9a2afd7dea6386_rle_crop_3751404176_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/cb883dd3cc5360f0b34ce7e287a3c14b_65955318.png imagette221259691744875540 22125970 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=22125970 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350658740: '1744875371_2752707_1350658489_8af2d45fb420014a5efaa3ce115b2f32_rle_crop_3751400088_0.png', 1350658741: '1744875371_2752707_1350658484_40f16c4358d46158bce28f192efbcb0e_rle_crop_3751400101_0.png', 1350658839: '1744875447_901358_1350658540_f50cf5ce948bf8ba223cd2b0e12f9fd0_rle_crop_3751404152_0.png', 1350658840: '1744875447_901358_1350658533_149d1dae93d13d2e5916a2f7a3f685ed_rle_crop_3751404170_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1b7ae5e27385d2642a4025f892dc9f08_6259195.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/89940d9fc184a9fcb3f395e5ee8178a2_86350786.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/5a8718b421826ee3ed87a41c9239a2e6_82517135.png change filename to text .imagette221259701744875540/ imagette221259701744875540/1744875447_901358_1350658540_f50cf5ce948bf8ba223cd2b0e12f9fd0_rle_crop_3751404152_0.png.png imagette221259701744875540/1744875371_2752707_1350658489_8af2d45fb420014a5efaa3ce115b2f32_rle_crop_3751400088_0.png.png imagette221259701744875540/1744875371_2752707_1350658484_40f16c4358d46158bce28f192efbcb0e_rle_crop_3751400101_0.png.png imagette221259701744875540/1744875447_901358_1350658533_149d1dae93d13d2e5916a2f7a3f685ed_rle_crop_3751404170_0.png.png imagette221259721744875541/ imagette221259731744875541/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/472747f3b6a7bfbbec5e09b3a2f5a4e9_15452514.png imagette221259701744875540 22125972 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=22125972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221259721744875541 22125973 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=22125973 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221259731744875541 22125965 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=22125965 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350658798: '1744875432_2753377_1350658254_cbb5cb1b260cb058a51e82e4cface319_rle_crop_3751403642_0.png', 1350658837: '1744875447_901358_1350658554_4cb30c98c6ad3aaf699d3049f85860b3_rle_crop_3751404122_0.png', 1350658838: '1744875447_901358_1350658540_f50cf5ce948bf8ba223cd2b0e12f9fd0_rle_crop_3751404155_0.png', 1350658853: '1744875461_397330_1350658687_d7cc7baa1b2a0a3c8ed2fbedce829367_rle_crop_3751404246_0.png', 1350658854: '1744875461_397330_1350658636_9c0ae14b1b40cb91b8156943ff5d9ad7_rle_crop_3751404272_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/87c44a6148b1d2fe73e9f5f16c3a7d83_70495665.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ee8053d3993ee6f698cd44ea3a9e7853_22561355.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/039f81067fc752e3be59b41a6d9e3da9_33675674.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/da29281f969083c11a4b16758af97b6a_22247517.png change filename to text .imagette221259651744875541/ imagette221259651744875541/1744875447_901358_1350658540_f50cf5ce948bf8ba223cd2b0e12f9fd0_rle_crop_3751404155_0.png.png imagette221259651744875541/1744875447_901358_1350658554_4cb30c98c6ad3aaf699d3049f85860b3_rle_crop_3751404122_0.png.png imagette221259651744875541/1744875461_397330_1350658687_d7cc7baa1b2a0a3c8ed2fbedce829367_rle_crop_3751404246_0.png.png imagette221259651744875541/1744875432_2753377_1350658254_cbb5cb1b260cb058a51e82e4cface319_rle_crop_3751403642_0.png.png imagette221259651744875541/1744875461_397330_1350658636_9c0ae14b1b40cb91b8156943ff5d9ad7_rle_crop_3751404272_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/81b0884e829f0a53e031ce71676077bf_73761017.png imagette221259651744875541 22125966 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=22125966 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350658567: '1744875312_2752108_1350658321_ffd18165fd9cb8edfe9031ded5e80b1f_rle_crop_3751399530_0.png', 1350658568: '1744875312_2752108_1350658315_41efa5f37738908e4466a85c8d8466b1_rle_crop_3751399538_0.png', 1350658739: '1744875371_2752707_1350658484_40f16c4358d46158bce28f192efbcb0e_rle_crop_3751400095_0.png', 1350658824: '1744875447_901358_1350658715_2671ad1bb31024f25e6408cf39cc9f76_rle_crop_3751404111_0.png', 1350658825: '1744875447_901358_1350658533_149d1dae93d13d2e5916a2f7a3f685ed_rle_crop_3751404168_0.png', 1350658826: '1744875447_901358_1350658527_7910e86b8571bf76fe9a2afd7dea6386_rle_crop_3751404184_0.png', 1350658906: '1744875493_2753971_1350658242_035ca27d3a8cb629fcdf390f4ec989ea_rle_crop_3751404495_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b3354d7f7b8a9f2169a9c759d650d856_54845919.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/db08fa3d51a0a5d4f25220d849079f64_70935973.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7bdb9ba30a9f2d411e1c71a4f92d225a_27384552.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/c1e9579fd48ca82c010f6fbcd65c0ba9_63788016.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/e7309c86c05c8dc784904e25ae54f145_31266277.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/74b526238accb3bec9d53a0ae560d3f7_7166320.png change filename to text .imagette221259661744875541/ imagette221259661744875541/1744875447_901358_1350658715_2671ad1bb31024f25e6408cf39cc9f76_rle_crop_3751404111_0.png.png imagette221259661744875541/1744875371_2752707_1350658484_40f16c4358d46158bce28f192efbcb0e_rle_crop_3751400095_0.png.png imagette221259661744875541/1744875312_2752108_1350658321_ffd18165fd9cb8edfe9031ded5e80b1f_rle_crop_3751399530_0.png.png imagette221259661744875541/1744875447_901358_1350658527_7910e86b8571bf76fe9a2afd7dea6386_rle_crop_3751404184_0.png.png imagette221259661744875541/1744875447_901358_1350658533_149d1dae93d13d2e5916a2f7a3f685ed_rle_crop_3751404168_0.png.png imagette221259661744875541/1744875493_2753971_1350658242_035ca27d3a8cb629fcdf390f4ec989ea_rle_crop_3751404495_0.png.png imagette221259661744875541/1744875312_2752108_1350658315_41efa5f37738908e4466a85c8d8466b1_rle_crop_3751399538_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/26f882bb4263387c6caddc27a06619a7_84714659.png imagette221259661744875541 22125971 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=22125971 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350658797: '1744875432_2753377_1350658254_cbb5cb1b260cb058a51e82e4cface319_rle_crop_3751403643_0.png', 1350658830: '1744875447_901358_1350658547_b0626e3695b2e67ca2db89c200272cca_rle_crop_3751404137_0.png', 1350658849: '1744875461_397330_1350658687_d7cc7baa1b2a0a3c8ed2fbedce829367_rle_crop_3751404247_0.png', 1350658850: '1744875461_397330_1350658627_8c4c9ae274cc590befe5bc7e9592b97e_rle_crop_3751404294_0.png', 1350658910: '1744875493_2753971_1350658324_80fcbd0e2ed8eebd5955937e67b473bc_rle_crop_3751404454_0.png', 1350658911: '1744875493_2753971_1350658324_80fcbd0e2ed8eebd5955937e67b473bc_rle_crop_3751404453_0.png', 1350658912: '1744875493_2753971_1350658250_50f9f01eb87a2884863bc61d2de21ed9_rle_crop_3751404471_0.png', 1350658913: '1744875493_2753971_1350658242_035ca27d3a8cb629fcdf390f4ec989ea_rle_crop_3751404496_0.png', 1350658914: '1744875493_2753971_1350658238_f7d81d5d4a05c73be92cab6da861b23a_rle_crop_3751404508_0.png', 1350658915: '1744875493_2753971_1350658238_f7d81d5d4a05c73be92cab6da861b23a_rle_crop_3751404507_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8e40e6ad613f4da09aaabff33a69f202_62967911.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/048667543dc211f02afb4c6a8bb107ba_20703500.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/74fa147b141a06c20b6224128337f0f0_65395540.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7d68cd64e9b1d8b19a453b1c2f1cde7d_74824736.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/56e0fb1f2538cce33f5b655d838b608b_41082230.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/997ae5ee48d2173e44d1ed55888e93c9_89564925.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/599028ceca3fafcb2ee8ac954ff9c6e3_6522656.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/533c4ee3f4c1be68baf215d3eb337209_17619552.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b693e54229936f5be972fe710bc615d0_29627444.png change filename to text .imagette221259711744875541/ imagette221259711744875541/1744875493_2753971_1350658238_f7d81d5d4a05c73be92cab6da861b23a_rle_crop_3751404507_0.png.png imagette221259711744875541/1744875493_2753971_1350658238_f7d81d5d4a05c73be92cab6da861b23a_rle_crop_3751404508_0.png.png imagette221259711744875541/1744875493_2753971_1350658242_035ca27d3a8cb629fcdf390f4ec989ea_rle_crop_3751404496_0.png.png imagette221259711744875541/1744875493_2753971_1350658250_50f9f01eb87a2884863bc61d2de21ed9_rle_crop_3751404471_0.png.png imagette221259711744875541/1744875493_2753971_1350658324_80fcbd0e2ed8eebd5955937e67b473bc_rle_crop_3751404453_0.png.png imagette221259711744875541/1744875461_397330_1350658687_d7cc7baa1b2a0a3c8ed2fbedce829367_rle_crop_3751404247_0.png.png imagette221259711744875541/1744875432_2753377_1350658254_cbb5cb1b260cb058a51e82e4cface319_rle_crop_3751403643_0.png.png imagette221259711744875541/1744875447_901358_1350658547_b0626e3695b2e67ca2db89c200272cca_rle_crop_3751404137_0.png.png imagette221259711744875541/1744875493_2753971_1350658324_80fcbd0e2ed8eebd5955937e67b473bc_rle_crop_3751404454_0.png.png imagette221259711744875541/1744875461_397330_1350658627_8c4c9ae274cc590befe5bc7e9592b97e_rle_crop_3751404294_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/874bbf1f98485ab790ed76541e448b1a_69749510.png imagette221259711744875541 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22125958 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22125974,22125975,22125976,22125977,22125978,22125979,22125980,22125981,22125982,22125983,22125984,22125985?tags=mal_croppe,kraft,papier,Carton_brun,Teint_Dans_La_Masse,environnement,cartonnette,autre_refus,plastique,Carton_gris,flou,metal your option no_mail is active, we will not send the real mail to your client args[1350658865] : ('0.04937651369863855',) no score found for photo 1350658865 We are sending mail with results at report@fotonower.com args[1350658862] : ('0.04937651369863855',) no score found for photo 1350658862 We are sending mail with results at report@fotonower.com args[1350658858] : ('0.04937651369863855',) no score found for photo 1350658858 We are sending mail with results at report@fotonower.com args[1350658852] : ('0.04937651369863855',) no score found for photo 1350658852 We are sending mail with results at report@fotonower.com args[1350658844] : ('0.04937651369863855',) no score found for photo 1350658844 We are sending mail with results at report@fotonower.com args[1350658783] : ('0.04937651369863855',) no score found for photo 1350658783 We are sending mail with results at report@fotonower.com args[1350658776] : ('0.04937651369863855',) no score found for photo 1350658776 We are sending mail with results at report@fotonower.com args[1350658770] : ('0.04937651369863855',) no score found for photo 1350658770 We are sending mail with results at report@fotonower.com args[1350658764] : ('0.04937651369863855',) no score found for photo 1350658764 We are sending mail with results at report@fotonower.com args[1350658715] : ('0.04937651369863855',) no score found for photo 1350658715 We are sending mail with results at report@fotonower.com args[1350658687] : ('0.04937651369863855',) no score found for photo 1350658687 We are sending mail with results at report@fotonower.com args[1350658655] : ('0.04937651369863855',) no score found for photo 1350658655 We are sending mail with results at report@fotonower.com args[1350658636] : ('0.04937651369863855',) no score found for photo 1350658636 We are sending mail with results at report@fotonower.com args[1350658632] : ('0.04937651369863855',) no score found for photo 1350658632 We are sending mail with results at report@fotonower.com args[1350658627] : ('0.04937651369863855',) no score found for photo 1350658627 We are sending mail with results at report@fotonower.com refus_total : 0.04937651369863855 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=22125958 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_P22125958_17-04-2025_09_39_00.pdf results_Auto_P22125958_17-04-2025_09_39_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22125958_17-04-2025_09_39_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','22125958','results_Auto_P22125958_17-04-2025_09_39_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22125958_17-04-2025_09_39_00.pdf','pdf','','0.22','0.04937651369863855') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22125958]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627] map_info['map_portfolio_photo'] : {22125958: [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627, 1350658559, 1350658554, 1350658547, 1350658540, 1350658533, 1350658527, 1350658493, 1350658489, 1350658484, 1350658478, 1350658324, 1350658321, 1350658315, 1350658254, 1350658250, 1350658246, 1350658242, 1350658238, 1350658099, 1350658093]} final : False mtd_id 4302 list_pids : [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627] 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, '2729958') ('4302', '22125958', '1350658865', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658862', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658858', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658852', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658844', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658783', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658776', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658770', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658764', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658715', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658687', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658655', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658636', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658632', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658627', None, None, None, None, None, '2729958') 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', '22125958', '1350658865', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658862', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658858', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658852', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658844', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658783', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658776', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658770', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658764', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658715', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658687', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658655', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658636', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658632', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658627', None, None, None, None, None, '2729958')] time used for this insertion : 0.01576852798461914 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.112204313278198 time spend to save output : 0.016040325164794922 total time spend for step 4 : 4.128244638442993 step5:split_time_score Thu Apr 17 09:39: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 : ['22125958'] 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 : [('22125958',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22125958) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350658858: {'path': 'temp/1744875539_3276477_1350658858_7c65dff8a894cfd1040e26dac9833e5a.jpg', 'extension': 'jpg'}, 1350658862: {'path': 'temp/1744875539_3276477_1350658862_39d9dc700cd7c55a67e59d852bef486f.jpg', 'extension': 'jpg'}, 1350658865: {'path': 'temp/1744875539_3276477_1350658865_1cadfc83748d62909ca32fc1529420e6.jpg', 'extension': 'jpg'}, 1350658776: {'path': 'temp/1744875539_3276477_1350658776_a6e5d546503605df21ad2f66a0b62ad4.jpg', 'extension': 'jpg'}, 1350658783: {'path': 'temp/1744875539_3276477_1350658783_da28412a0c54961fcb96f0a5262abdc7.jpg', 'extension': 'jpg'}, 1350658844: {'path': 'temp/1744875539_3276477_1350658844_316252f86915dd0c9ed187d094831de7.jpg', 'extension': 'jpg'}, 1350658852: {'path': 'temp/1744875539_3276477_1350658852_db03805cc2275524cee32f7c96483d42.jpg', 'extension': 'jpg'}, 1350658687: {'path': 'temp/1744875539_3276477_1350658687_d7cc7baa1b2a0a3c8ed2fbedce829367.jpg', 'extension': 'jpg'}, 1350658715: {'path': 'temp/1744875539_3276477_1350658715_2671ad1bb31024f25e6408cf39cc9f76.jpg', 'extension': 'jpg'}, 1350658764: {'path': 'temp/1744875539_3276477_1350658764_355014d82684bea93f7ca9d04d4af7ca.jpg', 'extension': 'jpg'}, 1350658770: {'path': 'temp/1744875539_3276477_1350658770_7b222161fbebf88c606cd2f03e393a61.jpg', 'extension': 'jpg'}, 1350658627: {'path': 'temp/1744875539_3276477_1350658627_8c4c9ae274cc590befe5bc7e9592b97e.jpg', 'extension': 'jpg'}, 1350658632: {'path': 'temp/1744875539_3276477_1350658632_26e4f4b144fd547f43e7b0dd3a159546.jpg', 'extension': 'jpg'}, 1350658636: {'path': 'temp/1744875539_3276477_1350658636_9c0ae14b1b40cb91b8156943ff5d9ad7.jpg', 'extension': 'jpg'}, 1350658655: {'path': 'temp/1744875539_3276477_1350658655_96d8ff1f408dac0e4523951814bd83d0.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 = 22125958; (('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 = 22125958 group by h (('09', 35),) 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=22125958 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 (22125958) 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 (22125958) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17042025 22125958 Nombre de photos uploadées : 35 / 23040 (0%) 17042025 22125958 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 17042025 22125958 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1350658099, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/2ed694cf1db11d49d5c3aab231e44511.jpg', 'username': None, 'uploaded_at': 1744875068, 'text': 'image_17042025_09_30_33_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350658093, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/58c7b8a5f75f1e8a575f63fbdc6fd9b0.jpg', 'username': None, 'uploaded_at': 1744875068, 'text': 'image_17042025_09_30_44_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350658254, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/cbb5cb1b260cb058a51e82e4cface319.jpg', 'username': None, 'uploaded_at': 1744875128, 'text': 'image_17042025_09_30_54_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350658250, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/50f9f01eb87a2884863bc61d2de21ed9.jpg', 'username': None, 'uploaded_at': 1744875128, 'text': 'image_17042025_09_31_04_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 8.106231689453125e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018649101257324219 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22125958, '2025-04-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1721208,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0237886905670166 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= 1721208 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1721208, 'dashboard_run_id': 1730046, 'mtr_portfolio_id': 22125427, 'dashboard_result_id': 9926642, '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_P22125427_17-04-2025_09_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125440, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1730046, 'mtr_portfolio_id': 22125958, 'dashboard_result_id': 9926643, '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_P22125958_17-04-2025_09_36_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125973, '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 = 22125427 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': 2729903, 'mtr_portfolio_id': 22125427, 'created_at': datetime.datetime(2025, 4, 17, 9, 32, 59), 'result': '0.07609948659353487', 'result_long': None, 'result_double': None}] Qualite : 0.07609948659353487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22125427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22125427_17-04-2025_09_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22125427 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_P22125427_17-04-2025_09_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125440, 'pht': 3726}}" where mtr_portfolio_id = 22125427 and dashboard_run_id = 1730046 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`=22125427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9926642, 0.07609948659353487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22125427_17-04-2025_09_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125430, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125436, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125438, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125440, '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 = 22125958 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': 2729958, 'mtr_portfolio_id': 22125958, 'created_at': datetime.datetime(2025, 4, 17, 9, 38, 59), 'result': '0.04937651369863855', 'result_long': None, 'result_double': None}] Qualite : 0.04937651369863855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22125958 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22125958_17-04-2025_09_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22125958 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_P22125958_17-04-2025_09_39_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125973, 'pht': 3726}}" where mtr_portfolio_id = 22125958 and dashboard_run_id = 1730046 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`=22125958 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9926643, 0.04937651369863855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22125958_17-04-2025_09_39_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22125962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22125963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22125964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22125965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22125966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22125967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22125968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22125969, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22125970, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22125971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22125972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22125973, '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 (22125427,22125958) result : ((1350655420,), (1350655426,), (1350655431,), (1350655436,), (1350655470,), (1350655474,), (1350655510,), (1350655527,), (1350656072,), (1350656075,), (1350656210,), (1350656215,), (1350656762,), (1350656786,), (1350656855,), (1350656858,), (1350656909,), (1350656915,), (1350657039,), (1350657044,), (1350657048,), (1350657053,), (1350657256,), (1350657270,), (1350657274,), (1350657278,), (1350657281,), (1350657322,), (1350657359,), (1350657365,), (1350657387,), (1350657436,), (1350657440,), (1350657446,), (1350657600,), (1350657616,), (1350657620,), (1350657623,), (1350657627,), (1350657675,), (1350657678,), (1350657682,), (1350657686,), (1350657689,), (1350657695,), (1350657792,), (1350657823,), (1350657827,), (1350657853,), (1350657857,), (1350658111,), (1350658093,), (1350658099,), (1350658238,), (1350658242,), (1350658246,), (1350658250,), (1350658254,), (1350658315,), (1350658321,), (1350658324,), (1350658478,), (1350658484,), (1350658489,), (1350658493,), (1350658527,), (1350658533,), (1350658540,), (1350658547,), (1350658554,), (1350658559,), (1350658627,), (1350658632,), (1350658636,), (1350658655,), (1350658687,), (1350658715,), (1350658764,), (1350658770,), (1350658776,), (1350658783,), (1350658844,), (1350658852,), (1350658858,), (1350658862,), (1350658865,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17042025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22125958]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627] map_info['map_portfolio_photo'] : {22125958: [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627, 1350658559, 1350658554, 1350658547, 1350658540, 1350658533, 1350658527, 1350658493, 1350658489, 1350658484, 1350658478, 1350658324, 1350658321, 1350658315, 1350658254, 1350658250, 1350658246, 1350658242, 1350658238, 1350658099, 1350658093]} final : True mtd_id 4302 list_pids : [1350658865, 1350658862, 1350658858, 1350658852, 1350658844, 1350658783, 1350658776, 1350658770, 1350658764, 1350658715, 1350658687, 1350658655, 1350658636, 1350658632, 1350658627] Looping around the photos to save general results len do output : 1 /22125958Didn'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, '2729958') ('4302', '22125958', '1350658865', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658862', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658858', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658852', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658844', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658783', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658776', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658770', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658764', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658715', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658687', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658655', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658636', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658632', None, None, None, None, None, '2729958') ('4302', None, None, None, None, None, None, None, '2729958') ('4302', '22125958', '1350658627', None, None, None, None, None, '2729958') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22125958', 'None', None, None, None, None, '2729958'), ('4302', '22125958', '1350658865', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658862', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658858', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658852', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658844', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658783', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658776', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658770', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658764', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658715', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658687', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658655', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658636', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658632', None, None, None, None, None, '2729958'), ('4302', '22125958', '1350658627', None, None, None, None, None, '2729958')] time used for this insertion : 0.015915632247924805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2213301658630371 time spend to save output : 0.016225337982177734 total time spend for step 5 : 0.23755550384521484 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 (2729958) 2.27user 2.38system 0:09.02elapsed 51%CPU (0avgtext+0avgdata 158664maxresident)k 2536inputs+12472outputs (30major+74772minor)pagefaults 0swaps